1. Conduid
  2. AI
  3. Grimoire MCP
MCP server · AI

Grimoire MCP

A Model Context Protocol server for managing software development patterns - your personal grimoire of reusable code knowledge

Unclaimed ai
34Low

Scored 7 months ago · breakdown

About Grimoire MCP

Grimoire MCP is an MCP server published by darko-mesaros in the AI category: a Model Context Protocol server for managing software development patterns - your personal grimoire of reusable code knowledge.

The repository has 10 stars and 3 forks, with the last commit 2 months ago. Recent commit activity is the strongest signal that reported issues will get attention.

Install

From source
git clone https://github.com/darko-mesaros/grimoire-mcp

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Tools (4)

create_patternCreate new pattern with metadata and content

Parameters not published.

get_patternGet specific pattern by name

Parameters not published.

list_patternsList all available patterns

Parameters not published.

search_patternsSearch by query, category, framework, or tag

Parameters not published.

Ask AI

✦

Ask AI about Grimoire MCP

Powered by Claude · Grounded in docs

I know everything about Grimoire MCP. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ✓README presentThe repository ships documentation.

5 checks have not been run yet.

README

Grimoire-MCP - Development Pattern Library

As I am leveling up my development skills, I always needed a way to quickly store some best practices I ended up implementing in projects. What if my coding assistant could just save it to some ... ✨ pattern library ✨. Well now it can! Oh, and it can read code patterns too! 🥳

So, the Grimoire-MCP is a Model Context Protocol (MCP) server for managing software development patterns stored as markdown files with YAML frontmatter. Oh, and it's all on your filesystem!

Setup

Required Environment Variable

The server requires the PATTERNS_DIR environment variable to be set ideally via your MCP config, or in the shell:

export PATTERNS_DIR="/path/to/your/patterns"

The server will fail to start if this variable is not set or if the directory doesn't exist.

Pattern File Format

The LLM will create patterns on your behalf, but you are more than welcome to store them yourself as well.

Patterns are stored as markdown files with YAML frontmatter:

---
pattern: example-pattern
category: rust
framework: axum
projects: [project1, project2] # These are the names of the projects this pattern was involved in.
tags: [web, api, error-handling]
---

Your pattern content goes here...

Usage

Available Tools

  • list_patterns - List all available patterns
  • search_patterns - Search by query, category, framework, or tag
  • get_pattern - Get specific pattern by name
  • create_pattern - Create new pattern with metadata and content

Pattern Browser TUI

The project includes a terminal-based pattern browser (browse) as a separate binary target. It lets you browse, search, and read your patterns directly in the terminal without needing an MCP client.

Running the Browser

PATTERNS_DIR="/path/to/your/patterns" cargo run --bin browse

Or build and run the release binary:

cargo build --release
PATTERNS_DIR="/path/to/your/patterns" ./target/release/browse

Keyboard Controls

Key Action
j / ↓ Navigate down
k / ↑ Navigate up
/ Search / filter patterns
Esc Cancel search
Enter Apply search filter
PgUp / PgDn Scroll pattern content
q Quit

Building

cargo build --release

This produces two binaries:

  • ./target/release/grimoire-mcp — the MCP server
  • ./target/release/browse — the TUI pattern browser

MCP Client Configuration

Kiro CLI

Add to your MCP configuration:

{
  "mcpServers": {
    "pattern-library": {
      "command": "/path/to/grimoire-mcp/target/release/grimoire-mcp",
      "env": {
        "PATTERNS_DIR": "/path/to/your/patterns"
      }
    }
  }
}

Cursor IDE

Add to your Cursor settings:

{
  "mcp": {
    "servers": {
      "pattern-library": {
        "command": "/path/to/grimoire-mcp/target/release/grimoire-mcp",
        "env": {
          "PATTERNS_DIR": "/path/to/your/patterns"
        }
      }
    }
  }
}

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or equivalent:

{
  "mcpServers": {
    "pattern-library": {
      "command": "/path/to/grimoire-mcp/target/release/grimoire-mcp",
      "env": {
        "PATTERNS_DIR": "/path/to/your/patterns"
      }
    }
  }
}

MCP Server Development

# Set patterns directory
export PATTERNS_DIR="/home/darko/workspace/kiro-projects/better-agent/pattern-library/patterns"

# Run in debug mode
just debug

# Test with MCP inspector
just mcp-test

README copy captured when this server was indexed; it may lag the repository. The original is authoritative.

Questions

About Grimoire MCP

How do I install Grimoire MCP?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Grimoire MCP safe to use with an AI agent?

Its trust score is 34 out of 100 (low). It passes 1 of the 1 static security checks run so far. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Grimoire MCP still maintained?

Yes — the last commit was 2 months ago. The repository has 10 stars and 3 forks.