Integrates with Daniel Miessler's Fabric repository on GitHub, syncing patterns and strategies to expose powerful AI prompts and prompt engineering strategies for various tasks like extracting wisdom, summarizing, and more.
Fabric MCP Server (Docker)
A Model Context Protocol (MCP) server that exposes Daniel Miessler's Fabric patterns and strategies to MCP-compliant clients. It automatically syncs with the upstream Fabric repository, allowing you to use its powerful prompts directly within your AI workflow.
Features
Dynamic Sync: Clones or updates the Fabric repository every time the server starts.
Pattern Prompts: Automatically creates an MCP prompt for every folder in
patterns/.Strategy Support: Every prompt includes an optional
strategyargument to prepend context fromstrategies/.User Input: Every prompt requires an
inputargument for user-provided content (text, URL, etc.).List Strategies Tool: Exposes a
list_strategiestool to discover available strategies and their descriptions.
Prerequisites
Docker installed and running.
Build
Build the Docker image locally:
Running the Server
1. Manual Test (Stdio)
To test if the server starts and syncs the repository correctly:
Note: The server communicates via JSON-RPC over stdin/stdout. You will see logs on stderr and can interact via the MCP Inspector.
2. Access via MCP Gateway (Claude Desktop, etc.)
To use this server with a gateway like Claude Desktop, add the following to your claude_desktop_config.json (usually located at ~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
3. Usage with MCP Gateway "Run" Command
If you are using a gateway that supports running servers via a direct command string, use:
4. Usage via Docker MCP Gateway
If you are using the Docker MCP Gateway CLI, you can run this server directly using:
5. Global Registration (Docker MCP Catalog)
To make this server visible to all Docker MCP clients (like the docker mcp CLI) using the configuration files in ~/.docker/mcp/:
Build the Image:
docker build -t fabric-mcp-server .Create a Local Catalog: Create a file named
local.yamlin your catalogs directory (usually~/.docker/mcp/catalogs/local.yaml):version: 3 name: local-catalog displayName: Local Catalog registry: fabric: title: Fabric description: Fabric patterns and strategies type: server image: fabric-mcp-server:latest tools: - list_strategies prompts: [] # One prompt per pattern in the Fabric repository resources: {} metadata: category: productivity tags: - fabric - ai - prompts owner: localEnable the Server: Edit your registry file (usually
~/.docker/mcp/registry.yaml) and add thefabricentry underregistry::registry: # ... other servers ... fabric: ref: ""Verify: Run
docker mcp list(if available) or simply try running it:docker mcp gateway run fabric
How it Works
Startup: The server clones
https://github.com/danielmiessler/fabricinto the container.Prompts: It scans folders like
extract_wisdom,summarize, etc. inpatterns/.Execution:
When you select a prompt (e.g.,
extract_wisdom), it reads thesystem.mdfile.If you provide a
strategy(e.g.,cot), it fetches the strategy JSON, extracts the prompt content, and prepends it to the system message.The
inputargument content is appended to the end of the prompt.
Tools: Use
list_strategiesto discover available strategies and their descriptions.