Documentation menu

MCP server

moco-mcp bundles the whole registry into an MCP server, so Claude can browse, search, and install components for you.

Setup

Claude Code

One command:

Terminal
claude mcp add moco -- npx -y moco-mcp

Or add it to your project’s .mcp.json so the whole team gets it:

.mcp.json
{
  "mcpServers": {
    "moco": { "command": "npx", "args": ["-y", "moco-mcp"] }
  }
}

Claude Desktop

Add the same server block to claude_desktop_config.json (Settings → Developer → Edit Config):

claude_desktop_config.json
{
  "mcpServers": {
    "moco": { "command": "npx", "args": ["-y", "moco-mcp"] }
  }
}

The five tools

ToolWhat it returns
list_componentsEvery item with title, description, and tags
search_componentsQuery by name, tag, or description
get_componentFull source files, dependencies, and usage example for one item
get_themeThe token contract, for retheming
get_setupOne-time install instructions

A typical conversation

  1. You: “add a before/after slider to my post”
  2. Claude calls search_components and finds compare
  3. Claude calls get_component and get_setup
  4. Claude writes compare.tsx + compare.css into components/moco/ and wires the import

No CLI, no copy-paste, no tab-switching.

Security posture

  • Read-only. All five tools are annotated read-only — the server never writes to your filesystem. Claude writes the files, under your normal permission flow.
  • No network. The registry is bundled into the package at build time; the server makes no network calls at runtime.
  • Nothing to configure. No tokens, no env vars, no state.