Skip to content
RefineUI

MCP

Model Context Protocol server — search RefineUI docs, fetch component pages, and read design rules from AI tools.

@refineui/mcp is a stdio MCP server for editors and agents that support the Model Context Protocol. It embeds a build-time index of this documentation site so agents can query pages without pasting all of llm.txt into context.

npm install -D @refineui/mcp

Add to your MCP host config (see mcp.example.json):

{
"mcpServers": {
"refineui": {
"command": "bunx",
"args": ["@refineui/mcp"]
}
}
}

Example for monorepo contributors (after bun run build:mcp):

{
"mcpServers": {
"refineui": {
"command": "node",
"args": ["packages/mcp/lib/server.js"]
}
}
}
ToolPurpose
search_docsKeyword search across documentation
get_doc_pageFetch a page by slug (components/button, …)
list_componentsAll component doc pages
list_foundationsFoundation / token doc pages
get_llm_indexFull llm.txt content
get_design_rulesFull DESIGN.md (Stitch alpha)
list_tokensToken categories and semantic text roles
get_index_metaIndex generation timestamp and page count
run_doctorRead-only workspace diagnostics (setup, tokens, composition)
URIContent
refineui://llm.txtMachine-readable docs index
refineui://DESIGN.mdStitch-compatible design identity
refineui://design-rulesAlias of DESIGN.md
DESIGN.mdllms.txtSkillMCP
FormatTokens YAML + proseStatic link indexAgent instructionsLive tools + resources
Best forVisual identity / UI generationDiscovery of pagesRouting + rulesDynamic search & page fetch
UpdatesDeploy with siteDeploy with siteskills add from GitHubnpm package / rebuild index

Use them together: DESIGN.md for look & feel, Skill for behavior, MCP for lookup, llms.txt as the curated index URL.

bun run build:mcp

Package: packages/mcp