home / mcp / fabric mcp server
Provides a Fabric MCP server that syncs with the Fabric repository and exposes pattern prompts and strategies for MCP clients.
Configuration
View docs{
"mcpServers": {
"brneto-fabric-mcp-server": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"fabric-mcp-server"
]
}
}
}You set up a Fabric MCP Server to expose Daniel Miessler’s Fabric patterns and strategies to MCP-compliant clients. It automatically syncs with the upstream Fabric repository, letting you use its pattern prompts and strategies directly in your AI workflows through simple, consistent interfaces.
Start by running the server in a local environment to expose Fabric patterns and strategies to MCP clients. You will interact with the server using either an MCP client UI that supports prompts or through the available tools to discover and execute patterns.
Key capabilities you will use: list_patterns to discover all Fabric patterns, list_strategies to learn available strategies and their descriptions, and execute_pattern to run a specific pattern with your provided input and an optional strategy. You can also invoke a pattern directly through supported MCP client UIs using the corresponding prompt (for example, a pattern named after a Fabric folder). When you provide an input (text, URL, etc.) and optionally a strategy, the server composes the prompt by optionally prepending strategy content and appending your input content.
# Prerequisites
- Docker installed and running
# Build the Docker image locally
docker build -t fabric-mcp-server .
# Run the server for manual testing (stdio)
docker run -i fabric-mcp-serverTo integrate with MCP gateways or clients, use the following standard run command: docker run -i --rm fabric-mcp-server to start the server and expose the_stdio interface. Logs will appear on stderr, and you can interact via the MCP Inspector.
Runs a Fabric pattern programmatically with provided input content and an optional strategy to prepend strategy context to the prompt.
Discovers all available Fabric patterns by listing folders under patterns/ and returning their names.
Discovers available strategies and their descriptions from the strategies/ directory.