component-mcp-server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@component-mcp-serverwhat's the context for the button component?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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 JSONbody— 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.
Related MCP server: Markdown RAG MCP
Running locally
npm install
npm run devnpm 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.tsThis 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.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Aniket-Sharma27/component-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server