logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

fabric-mcp-gateway

Provides an interface layer to expose Daniel Miessler's Fabric automation sequences as callable endpoints for Model Context Protocol (MCP) compatible artificial intelligence systems, dramatically improving AI capacity for executing complex, pre-defined operational workflows.

Author

fabric-mcp-gateway logo

adapoet

MIT License

Quick Info

GitHub GitHub Stars 14
NPM Weekly Downloads 0
Tools 1
Last Updated 2026-02-19

Tags

automationpatternsfabricfabric patternsautomation seamlessadapoet fabric

fabric-mcp-gateway: Unlocking Fabric Automation for AI Agents

Introduction

This repository details the fabric-mcp-gateway, an implementation of a Model Context Protocol (MCP) server dedicated to making the robust pattern library from Daniel Miessler's Fabric framework accessible to intelligent agents. By serving these scripts as discrete tools, AI assistants (like those powered by Cline or Claude Desktop) gain the ability to invoke sophisticated, established automation logic directly, boosting productivity and accuracy.

Fabric Gateway MCP server badge

Understanding the Model Context Protocol (MCP)

The Model Context Protocol (MCP) establishes a standardized communication structure enabling AI models to seamlessly interact with external functionalities, such as databases, remote APIs, or local utilities. The fabric-mcp-gateway adheres to this specification, acting as the bridge that translates high-level AI requests into concrete executions of Fabric routines.

Core Capabilities

  • Fabric Tool Exposure: Transforms every actionable sequence within the Fabric repository into an isolated, addressable tool for MCP clients.
  • Workflow Execution: Allows AI agents to initiate and manage complex, multi-step Fabric operations within their task execution context.
  • Augmented Intelligence: Significantly expands the operational scope of AI assistants beyond intrinsic capabilities by leveraging proven automation blueprints.
  • Broad Compatibility: Designed to interface smoothly with leading MCP consumers, including Claude Desktop environments and the Cline command-line interface.

Available Toolsets

The gateway furnishes a comprehensive inventory of Fabric routines ready for invocation. Examples of integrated functionalities include: - claim_analyzer - text_condenser - wisdom_extractor - diagram_generator_mermaid - And numerous others...

For a complete enumeration, inspect the directory structure corresponding to the [fabric/patterns](https://github.com/danielmiessler/Fabric/tree/main/data/patterns) source area.

Deployment Instructions

  1. Source Acquisition: Clone the fabric-mcp-gateway repository onto your local workstation.
  2. Dependency Resolution: Navigate into the project folder and execute npm install to fetch required packages.
  3. Compilation Step: Run npm run build to generate the production-ready JavaScript bundle from the source code.

Operational Guide

To integrate the fabric-mcp-gateway with your preferred AI framework: 1. Confirm the gateway is successfully built and running as a background service. 2. Integrate the server connection details into your AI agent's configuration file. 3. Initiate a new session or workflow, explicitly selecting the desired Fabric pattern tool.

The subsequent setup particulars are contingent upon the host AI environment.

Configuration Details: Claude Desktop Integration

To activate the gateway functionality within Claude Desktop:

  1. Prerequisite: Ensure the build process detailed in the Deployment Instructions is complete.

  2. Locate Configuration File: Modify the appropriate MCP settings file for Claude Desktop, typically found at:

    • Windows: %APPDATA%\Claude\claude_desktop_config.json
    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Linux: ~/.config/Claude/claude_desktop_config.json
  3. Inject Server Definition: Append the following object structure to the mcpServers section of your JSON configuration:

{ "mcpServers": { "fabric-mcp-gateway": { "command": "node", "args": [ "/build/index.js" ], "env": {} } } }

Remember to substitute <absolute-path-to-fabric-mcp-gateway> with the real directory location.

  1. Refresh Application: A restart of Claude Desktop is necessary for the new tool provider to initialize.

Configuration Details: VS Code with Cline Utility

For integration with Cline running inside Visual Studio Code:

  1. Prerequisite: Finalize the software build steps.

  2. Locate Cline Settings: Update the Cline MCP configuration file. Path variations are OS-dependent:

    • 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
  3. Add Gateway Definition: Employ this configuration structure:

{ "fabric-mcp-gateway": { "command": "node", "args": [ "/build/index.js" ], "env": {}, "disabled": false, "autoApprove": [], "transportType": "stdio", "timeout": 60 } }

Adjust <absolute-path-to-fabric-mcp-gateway> appropriately, remembering platform-specific path escaping for Windows.

  1. Apply Changes: Reload the VS Code window or restart the Cline extension.

Optimization Tips for AI Agent Utilization

For Claude Desktop Operators

  • Simply instruct Claude verbally to invoke a specific Fabric utility when required.
  • Query Claude to output a manifest of currently accessible patterns if tool names are ambiguous.
  • Once configured, the tools become transparently available for task execution.

For Cline Users

To maximize efficiency with Cline, incorporate the directive use fabric-mcp-gateway at the culmination of your textual input, or implement the following prescriptive logic block within your .clinerules configuration file:

markdown

Fabric Gateway Automation Rule

  1. Inventory Listing: Upon initiation of a new directive, generate a complete roster of pattern identifiers sourced from the Fabric repository.
  2. User Selection Prompt: Solicit user confirmation specifying one of these paths: a) Input a pattern designator to delegate execution to the fabric-mcp-gateway tool. b) Explicitly opt out of utilizing the fabric-mcp-gateway for the current objective.

This rule set standardizes and accelerates the selection mechanism for tool invocation within Cline sessions.

For Other MCP-Compliant Systems

  • Refer to the specific documentation for your AI agent regarding MCP interface configuration.
  • The foundational server registration format remains consistent with the examples provided.
  • Validate that your agent natively supports the MCP protocol and mechanism for tool invocation.

Diagnostics and Problem Resolution

  • Confirm the fabric-mcp-gateway entry is accurately registered in the host agent's settings.
  • Check service logs to confirm the gateway process is active and responsive.
  • Scrutinize console output for any stack traces or operational failures.
  • Validate the file path pointing to build/index.js is absolutely correct and accessible.
  • Ensure that a functioning Node.js runtime environment is accessible via the system's PATH variable.

Contributions

We enthusiastically welcome contributions to enhance the fabric-mcp-gateway. Kindly review the guidelines detailed in the CONTRIBUTING.md documentation before submitting pull requests.

Licensing

The fabric-mcp-gateway is distributed under the terms of the MIT License.


Contextual Note on Business Tools: The integration of systems like Fabric into automated agents aligns with modern business requirements to enhance efficiency, reduce manual overhead, and ensure reliable execution of complex tasks, mirroring the evolution of software applications from MIS to cloud-based solutions that boost organizational output.

See Also

`