component-mcp-server

component-mcp-server

Exposes design system component documentation to LLM clients via MCP, allowing listing and retrieving component contexts from Markdown files with YAML frontmatter.

Category
Visit Server

README

component-mcp-server

A standalone Model Context Protocol (MCP) server that exposes our design system's component documentation to LLM clients.

Component docs live as Markdown files (with YAML frontmatter) in contexts/. The server reads them at request time — no build step is needed to add or update a component.

Tools

list_components

No input. Scans the contexts/ directory for all .md files and returns their names (without the .md extension) as a JSON array. Use this to discover what components are documented before requesting one.

get_component_context

Input: { componentName: string }

Looks up contexts/<componentName>.md (case-insensitive). If found, returns:

  • frontmatter — the parsed YAML frontmatter as structured JSON
  • body — the raw markdown body (frontmatter stripped)
  • raw — the full original file content (frontmatter + body together), so a caller can just read it as plain documentation

If the component isn't found, returns an error object listing the currently available component names so the caller can retry with a valid one.

Running locally

npm install
npm run dev

npm run dev runs the server directly via tsx (fast iteration, no build step). The server communicates over stdio, so it won't print anything on its own — it's meant to be driven by an MCP client.

Other scripts:

npm run build   # compile TypeScript to dist/
npm run start   # run the compiled server (node dist/index.js)

Testing standalone with MCP Inspector

npx @modelcontextprotocol/inspector npx tsx src/index.ts

This opens a web UI where you can call list_components and get_component_context directly and inspect the responses.

Connecting to Claude Code

claude mcp add --transport stdio component-mcp -- npx tsx <absolute path to src/index.ts>

Replace <absolute path to src/index.ts> with the full path on your machine, e.g. C:\Users\you\path\to\component-mcp-server\src\index.ts. Once added, Claude Code can call list_components and get_component_context directly.

Adding a new component

Drop a new <name>.md file into contexts/, following the same frontmatter + markdown body structure as contexts/button.md. No code changes are required — list_components and get_component_context will pick it up automatically.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured