Get the FREE Ultimate OpenClaw Setup Guide →

fabric

The fabric-mcp-server is an MCP server that integrates Fabric patterns with AI coding agents and assistants, exposing them as tools for AI-driven task execution and enhancing capabilities.

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio augmentedivan-fabric-mcp-server node <path-to-fabric-mcp-server>/build/index.js

How to use

The fabric-mcp-server exposes Daniel Miessler's Fabric patterns as individual MCP tools that AI agents can invoke. Each pattern becomes a tool the agent can choose and execute within a task or conversation, enabling Fabric-style pattern execution to augment AI capabilities. To use it with Claude Desktop, Cline, or other MCP-enabled agents, first ensure the server is built and running, then configure your agent to point at the server's index.js entry point. The typical workflow is: your agent lists available Fabric patterns, selects one, and passes input or context to the chosen pattern. The server translates the agent command into a corresponding Fabric pattern invocation and returns the results for the agent to present or act upon. Tools such as analyze_claims, summarize, extract_wisdom, and create_mermaid_visualization are exposed, with many more patterns available in the Fabric repository. You can reference the full pattern list by browsing Fabric’s data/patterns directory.

In practice, you’ll configure the MCP server in your agent’s settings, start the server, and then in your task you’ll select a Fabric pattern as a tool. The server handles executing the underlying Fabric logic and returns structured results suitable for the agent to continue the task or generate user-facing outputs.

How to install

Prerequisites:

  • Node.js and npm installed on your system
  • Git (optional, for cloning the repository)

Installation steps:

  1. Clone the repository (or download the source): git clone https://github.com/<owner>/<fabric-mcp-server-repo>.git cd <fabric-mcp-server-repo>

  2. Install dependencies: npm install

  3. Build the project (TypeScript to JavaScript): npm run build

  4. Run the server (example): npm run start

    or run the compiled entry point directly via node (if you prefer):

    node build/index.js

  5. Integrate with your MCP-enabled agent by configuring the server in the agent’s MCP settings as shown in the README examples.

Notes:

  • Ensure the path to the built index.js is correct when configuring clients (e.g., <path-to-repo>/build/index.js).
  • If you modify environment variables, update the agent configuration accordingly.
  • For production, consider running the server behind a process manager (e.g., PM2) and securing endpoints as needed.

Additional notes

Tips and caveats:

  • The server exposes Fabric patterns as MCP tools; the exact set of available patterns depends on the Fabric repository contents.
  • When configuring clients (Claude Desktop, Cline, etc.), reference the path to the built index.js and keep env vars empty or populate as needed for authentication or customization.
  • If you encounter issues, check that Node.js is in your PATH and that the path to build/index.js is accessible from the agent’s environment.
  • Common issues include mismatched paths, not rebuilding after code changes, and firewall/network restrictions preventing the agent from reaching the MCP server.
  • You can customize or extend the server by adding new patterns to the Fabric data/patterns directory; the MCP server will expose them as tools automatically once included in the repository.
  • For large pattern sets, consider pagination or filtering when listing available tools from your agent to improve discoverability.

Related MCP Servers

Sponsor this space

Reach thousands of developers