Fabric MCP Server logo

Fabric MCP Server

by ksylvan

The Fabric MCP Server bridges the gap between the Fabric AI framework and Model Context Protocol (MCP) compatible applications. It allows you to use Fabric's patterns, models, and configurations directly within MCP-enabled environments.

View on GitHub

Last updated: N/A

What is Fabric MCP Server?

The Fabric MCP Server is a standalone server that translates MCP requests into calls to a running Fabric instance's REST API. It enables MCP clients, like IDE extensions, to leverage Fabric's AI capabilities.

How to use Fabric MCP Server?

An MCP Host connects to the Fabric MCP Server. The Host discovers available tools via MCP's list_tools() mechanism. When a user invokes a tool, the Host sends an MCP request to the server, which translates it into a REST API call to a running fabric --serve instance. The server then translates the Fabric response back into an MCP response for the Host.

Key features of Fabric MCP Server

  • Seamless Integration with Fabric

  • Enhanced Workflows for LLMs in IDEs

  • Standardization with the MCP protocol

  • Leverages Fabric Core functionality

  • Exposes Fabric Functionality through MCP

Use cases of Fabric MCP Server

  • Code explanation within IDEs using Fabric prompts

  • Code refactoring suggestions using Fabric patterns

  • Creative writing assistance within chat interfaces

  • Integrating Fabric's AI models into various MCP-enabled tools

FAQ from Fabric MCP Server

What is Fabric?

Fabric is an open-source framework for augmenting human capabilities using AI, focusing on prompt engineering and modular AI workflows.

What is MCP?

MCP is an open standard protocol enabling AI applications (like IDEs) to securely interact with external tools and data sources.

What is the purpose of Fabric MCP Server?

It acts as an MCP server, translating MCP requests into calls to a running Fabric instance's REST API (fabric --serve).

What are the prerequisites for running Fabric MCP Server?

Python >= 3.10 and uv (Python package and environment manager).

How do I configure the server?

The server can be configured using environment variables such as FABRIC_BASE_URL, FABRIC_API_KEY, and FABRIC_MCP_LOG_LEVEL.