Execute AI Agent Fabric Patterns
An MCP server exposing Daniel Miessler's Fabric prompt patterns as tools for Claude Desktop, Cline, and other agents.
Why it matters
Empower AI agents with Daniel Miessler's Fabric patterns, enabling direct execution of advanced analytical and content generation tasks to extend AI assistant capabilities.
Outcomes
What it gets done
Integrate Fabric patterns as executable tools for AI agents.
Allow users to select and run specific Fabric patterns within AI tasks.
Enhance AI assistant functionality through pattern execution.
Provide tools for claim analysis, content summarization, wisdom extraction, and visualization.
Install
Add it to your toolbox
Run in your project directory:
curl -fsSL https://spark.entire.vc/get/vb-fabric-mcp-server | bash Capabilities
Tools your agent gets
Fabric pattern for analyzing claims
Fabric pattern for creating content summaries
Fabric pattern for extracting wisdom from content
Fabric pattern for creating Mermaid visualizations
Overview
fabric-mcp-server MCP Server
This MCP server exposes Daniel Miessler's Fabric prompt patterns as individually callable tools for Claude Desktop, Cline, and other MCP-compatible AI agents. Use it when an AI assistant needs access to Fabric's prompt pattern library. Requires Node.js to build and per-client MCP configuration.
What it does
An MCP server that exposes Daniel Miessler's Fabric patterns - a library of AI prompt patterns for tasks like analysis, summarization, and extraction - as individual tools for MCP-compatible AI agents. Every pattern in Fabric's data/patterns directory becomes a selectable tool, with examples including analyze_claims, summarize, extract_wisdom, and create_mermaid_visualization among many others. Users select and execute a Fabric pattern directly within an AI assistant's task or conversation instead of running Fabric's own CLI separately, working across Claude Desktop, Cline in VS Code, and other MCP-compatible agents.
When to use - and when NOT to
Use it when an AI assistant needs access to Fabric's curated library of prompt patterns - summarizing content, extracting key claims or wisdom from text, generating a Mermaid diagram, or any other pattern published in the Fabric repository - without leaving the conversation. It requires Node.js to build and run the server, and each MCP client (Claude Desktop, Cline, etc.) needs its own configuration pointing at the built server.
Capabilities
The server does not maintain its own pattern list - it mirrors whatever is present in Fabric's own data/patterns directory, so the exact tool count and available patterns are determined entirely by the upstream Fabric project rather than by this server's own release cadence.
How to install
git clone <fabric-mcp-server-repo>
cd fabric-mcp-server
npm install
npm run build
For Claude Desktop, add to claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"fabric-mcp-server": {
"command": "node",
"args": ["<path-to-fabric-mcp-server>/build/index.js"],
"env": {}
}
}
}
For Cline in VS Code, add a similar entry to cline_mcp_settings.json with transportType "stdio" and a timeout of 60 seconds. Cline users can add a .clinerules rule that lists Fabric pattern names at the start of every new task and prompts the user to pick one, streamlining pattern selection. Troubleshooting steps include verifying Node.js is installed and on PATH, confirming the build/index.js path is correct, and checking console output for errors if the server doesn't respond.
Who it's for
Developers and AI power users who already value Daniel Miessler's Fabric pattern library and want those patterns available as native tools inside Claude Desktop, Cline, or any other MCP-compatible AI agent, instead of switching to Fabric's standalone CLI. The project also documents an MCP protocol primer, explaining that MCP standardizes how AI models interact with external tools and resources such as databases, APIs, and file systems, of which fabric-mcp-server is one example. Distributed under the MIT License.
Source README
fabric-mcp-server
Table of Contents
- Introduction
- What is Model Context Protocol (MCP)?
- Features
- Tools
- Installation
- Usage
- Configuration for Claude Desktop
- Configuration for VS Code with Cline
- Tips for Using with Different AI Agents
- Troubleshooting
- Contributing
- License
Introduction
The fabric-mcp-server is a Model Context Protocol (MCP) server designed to expose Daniel Miessler's Fabric patterns as tools for integration with AI coding agents and assistants. This integration enhances AI capabilities by leveraging AI-driven pattern execution from the Fabric repository. The server works with various AI platforms including Claude Desktop, Cline, and other MCP-compatible AI agents.
What is Model Context Protocol (MCP)?
The Model Context Protocol (MCP) is a specification that facilitates communication between AI systems and external tools or resources. It standardizes the way AI models interact with various capabilities such as databases, APIs, and file systems. MCP servers, like fabric-mcp-server, implement this protocol to make tools and resources accessible to AI models, thereby expanding their functional scope.
Features
- Exposes Fabric Patterns as Tools: The server makes all Fabric patterns available as individual tools within MCP-compatible AI agents.
- Pattern Execution: Users can select and execute Fabric patterns directly within AI assistant tasks.
- Enhanced Capabilities: Integrates AI-driven pattern execution to augment AI assistant functionality.
- Cross-Platform Compatibility: Works with Claude Desktop, Cline, and other MCP-compatible AI agents.
Tools
The fabric-mcp-server exposes a wide range of Fabric patterns as tools. Some examples include:
analyze_claimssummarizeextract_wisdomcreate_mermaid_visualization- And many more...
To see the full list of available patterns, you can list the directories in the [fabric/patterns](https://github.com/danielmiessler/Fabric/tree/main/data/patterns) directory.
Installation
- Clone the Repository: Clone the
fabric-mcp-serverrepository to your local system. - Install Dependencies: Navigate into the
fabric-mcp-serverdirectory and runnpm install. - Build the Project: Run
npm run buildto compile the TypeScript code.
Usage
To use the fabric-mcp-server with AI agents:
- Ensure the server is installed and running.
- Configure the MCP server in your AI agent's settings file.
- Create a new task or conversation and select a Fabric pattern to use.
The specific configuration steps vary depending on which AI agent you're using. See the sections below for detailed instructions.
Configuration for Claude Desktop
To use fabric-mcp-server with Claude Desktop:
Complete Installation: Follow the installation steps above to build the project.
Configure Claude Desktop: Add the MCP server configuration to your Claude Desktop settings. The configuration file is typically located at:
- Windows:
%APPDATA%\Claude\claude_desktop_config.json - macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json
- Windows:
Add Server Configuration: Add the following to your
claude_desktop_config.json:
{
"mcpServers": {
"fabric-mcp-server": {
"command": "node",
"args": [
"<path-to-fabric-mcp-server>/build/index.js"
],
"env": {}
}
}
}
Replace <path-to-fabric-mcp-server> with the actual path to the fabric-mcp-server directory on your system.
- Restart Claude Desktop: Restart Claude Desktop to apply the changes.
Configuration for VS Code with Cline
To use fabric-mcp-server with Cline in VS Code:
Complete Installation: Follow the installation steps above to build the project.
Configure Cline Settings: Add the MCP server configuration to your Cline settings file. The file path varies by operating system:
- Windows:
C:\Users\<username>\AppData\Roaming\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json - macOS:
~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json - Linux:
~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
- Windows:
Add Server Configuration: Use the following configuration:
{
"fabric-mcp-server": {
"command": "node",
"args": [
"<path-to-fabric-mcp-server>/build/index.js"
],
"env": {},
"disabled": false,
"autoApprove": [],
"transportType": "stdio",
"timeout": 60
}
}
Replace <path-to-fabric-mcp-server> with the actual path to the fabric-mcp-server directory on your system. For example:
- Windows:
"C:\\path\\to\\fabric-mcp-server\\build\\index.js" - macOS/Linux:
"/path/to/fabric-mcp-server/build/index.js"
- Restart VS Code: Restart VS Code or reload the Cline extension to apply the changes.
Tips for Using with Different AI Agents
For Claude Desktop Users
- Simply mention that you'd like to use a Fabric pattern in your conversation
- Ask Claude to list available patterns if you're unsure which one to use
- The patterns will be automatically available as tools once configured
For Cline Users
To maximize the benefits of fabric-mcp-server with Cline, add use fabric-mcp-server at the end of your prompts or consider adding the following rule to your .clinerules file:
# Fabric MCP Server Rule
1. **List Fabric Patterns**: When a new task is created, list all pattern names from the Fabric repository.
2. **Prompt for Pattern Selection**: Ask the user to select one of the following options:
a) Enter a pattern name from the list to use the `fabric-mcp-server` tool with the specified pattern.
b) Choose not to use `fabric-mcp-server` for the task.
This rule streamlines the tool selection process for new tasks in Cline.
For Other MCP-Compatible Agents
- Consult your specific AI agent's documentation for MCP server configuration
- The basic server configuration should be similar to the examples above
- Ensure your agent supports the MCP protocol and tool execution
Troubleshooting
- Ensure the
fabric-mcp-serveris correctly configured in your AI agent's settings. - Verify that the server is running and reachable.
- Check the console output for any error messages.
- Make sure the path to the build/index.js file is correct and accessible.
- Verify that Node.js is installed and available in your system PATH.
FAQ
Common questions
Discussion
Questions & comments · 0
Sign In Sign in to leave a comment.