Fabkit MCP Server

1

Add it to Claude Code

Run this in a terminal.

Run in terminal
claude mcp add --transport http fabkit-mcp https://fabkit-mcp.fabricators.dev/mcp
README.md

Provides AI agents with documentation and code patterns for Fabkit Svelte 5

Fabkit MCP Server

A Model Context Protocol server for the Fabkit Svelte 5 UI library, deployed as a Cloudflare Worker.

Agents (Claude, Cursor, Copilot…) can call this server to get accurate, up-to-date Fabkit documentation without hallucinating component names, props, or icon names.


Tools exposed

Tool Description
list_components All components grouped by category, with optional filter
get_component Full docs for a single component (props, examples, notes)
search_components Full-text search across all component docs
get_theming Complete theming API: initTheme, CSS variables, dark mode
search_icons Search 1500+ Phosphor icons by keyword → exact Ph* names
get_pattern Ready-to-use Svelte code patterns (app-shell, dashboard, …)
list_patterns List all available patterns

Quick start

1. Install dependencies

npm install

2. Run locally

npm run dev
# → http://localhost:5173

3. Deploy to Cloudflare Workers

npm run deploy
# → https://fabkit-mcp.fabricators.dev

Connecting to Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "fabkit": {
      "url": "https://fabkit-mcp.fabricators.dev/mcp",
      "transport": "http"
    }
  }
}

Connecting to Cursor

In .cursor/mcp.json:

{
  "mcpServers": {
    "fabkit": {
      "url": "https://fabkit-mcp.fabricators.dev/mcp"
    }
  }
}

Connecting to Gemini CLI

In ~/.gemini/settings.json:

{
  "mcpServers": {
    "fabkit": {
      "url": "https://fabkit-mcp.fabricators.dev/mcp"
    }
  }
}

Note: Gemini CLI does not support the transport key — use only url.

Connecting to GitHub Copilot CLI

In ~/.copilot/mcp-config.json:

{
  "mcpServers": {
    "fabkit": {
      "type": "http",
      "url": "https://fabkit-mcp.fabricators.dev/mcp",
      "tools": ["*"]
    }
  }
}

Alternatively, run /mcp add inside the CLI and fill in the fields interactively.

Connecting to VS Code

In .vscode/mcp.json (workspace) or ~/.config/Code/User/mcp.json (global):

{
  "servers": {
    "fabkit": {
      "type": "http",
      "url": "https://fabkit-mcp.fabricators.dev/mcp"
    }
  }
}

Note: VS Code uses "servers" (not "mcpServers") as the root key.

Connecting to Continue.dev

In ~/.continue/config.json:

{
  "mcpServers": [
    {
      "name": "fabkit",
      "type": "streamable-http",
      "url": "https://fabkit-mcp.fabricators.dev/mcp"
    }
  ]
}

Connecting to Windsurf

In ~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "fabkit": {
      "serverUrl": "https://fabkit-mcp.fabricators.dev/mcp"
    }
  }
}

Note: Windsurf uses "serverUrl" (not "url") for remote HTTP servers.


MCP Protocol

The server implements MCP 2024-11-05 over Streamable HTTP (POST /mcp).

All requests are JSON-RPC 2.0:

# Initialize
curl -X POST https://fabkit-mcp.fabricators.dev/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{}},"id":1}'

# List tools
curl -X POST https://fabkit-mcp.fabricators.dev/mcp \
  -d '{"jsonrpc":"2.0","method":"tools/list","id":2}'

# Call a tool
curl -X POST https://fabkit-mcp.fabricators.dev/mcp \
  -d '{"jsonrpc":"2.0","method":"tools/call","params":{"name":"get_component","arguments":{"name":"Button"}},"id":3}'

Extending the knowledge base

Edit src/knowledge.ts — add entries to the COMPONENTS array or extend ALL_ICONS.
Edit src/tools.ts — add new entries to the PATTERNS object.
Then redeploy: npm run deploy.


Architecture

src/
  index.ts      ← Cloudflare Worker entry, routing, CORS
  mcp.ts        ← JSON-RPC 2.0 dispatch, tool registry
  knowledge.ts  ← All Fabkit docs embedded as typed data
  tools.ts      ← Tool implementations (pure functions)

Everything is stateless — no KV, no R2, no external APIs.
The Worker cold-starts in < 5ms because all knowledge is bundled inline.

Tools (7)

list_componentsLists all components grouped by category, with optional filter
get_componentProvides full documentation for a single component including props, examples, and notes
search_componentsPerforms full-text search across all component documentation
get_themingRetrieves the complete theming API including initTheme, CSS variables, and dark mode
search_iconsSearches over 1500 Phosphor icons by keyword
get_patternRetrieves ready-to-use Svelte code patterns like app-shells or dashboards
list_patternsLists all available code patterns

Configuration

claude_desktop_config.json
{"mcpServers": {"fabkit": {"url": "https://fabkit-mcp.fabricators.dev/mcp", "transport": "http"}}}

Try it

Search for Fabkit components related to navigation.
Show me the documentation and props for the Button component.
Find a Phosphor icon suitable for a user profile settings menu.
Get the code pattern for a standard dashboard layout.
Explain how to initialize the theme and set up dark mode in Fabkit.

Frequently Asked Questions

What are the key features of Fabkit MCP Server?

Provides accurate, hallucination-free documentation for Fabkit Svelte 5. Full-text search capabilities for components and 1500+ Phosphor icons. Access to ready-to-use Svelte code patterns and templates. Complete theming API documentation including CSS variables. Stateless architecture deployed as a high-performance Cloudflare Worker.

What can I use Fabkit MCP Server for?

Developers building Svelte 5 applications who need instant access to UI component props. Teams standardizing UI implementation by using verified code patterns. Designers and developers searching for consistent icon sets within their IDE. Automating the setup of theme configurations and dark mode implementation.

How do I install Fabkit MCP Server?

Install Fabkit MCP Server by running: npm install && npm run dev

What MCP clients work with Fabkit MCP Server?

Fabkit MCP Server works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep Fabkit MCP Server docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare