lerpa
ver1.0.0
node20.11
branch⎇ main
uptime14d 03:42:17
cpu3.2%
mem14 MB
teams4,213
utc00:00:00
LIVE
$npx -y @lerpa/mcp-server

MCP Server

@lerpa/mcp-server is a Model Context Protocolserver that exposes the Lerpa UI registry to AI agents. Point your editor's assistant at it and it can search the catalog and pull component source on its own — no copy-paste round trips.

What it provides

The server runs over stdio and exposes three tools:

list_components
List registry components, optionally filtered by category (ai, buttons, cards, forms, creative, feedback, navigation, tables, calendars, ecommerce, dashboard, auth, account, docs, blog).
get_component
Get the full registry item JSON for one component by id, including its embedded source code.
search_components
Fuzzy search across all items by name and description; returns up to 50 matches.

You can run it directly to confirm it starts:

npx -y @lerpa/mcp-server

Universal config

Most MCP clients share the same mcpServers shape. Drop this into your client's MCP config and you're done — the per-tool sections below are just where each client keeps that file.

mcp config (shared shape)
{
  "mcpServers": {
    "lerpa": {
      "command": "npx",
      "args": ["-y", "@lerpa/mcp-server"]
    }
  }
}

Cursor

Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json in your project:

~/.cursor/mcp.json
{
  "mcpServers": {
    "lerpa": {
      "command": "npx",
      "args": ["-y", "@lerpa/mcp-server"]
    }
  }
}

Claude Code

Register it with the CLI:

claude mcp add lerpa -- npx -y @lerpa/mcp-server

Or commit a project-scoped .mcp.json at the repo root using the universal shape above so your whole team gets it.

Windsurf (Codeium)

Add to ~/.codeium/windsurf/mcp_config.json:

~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "lerpa": {
      "command": "npx",
      "args": ["-y", "@lerpa/mcp-server"]
    }
  }
}

VS Code (Copilot agent mode)

VS Code uses a servers key. Add .vscode/mcp.json in your project:

.vscode/mcp.json
{
  "servers": {
    "lerpa": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@lerpa/mcp-server"]
    }
  }
}

OpenAI Codex CLI

Codex configures MCP via TOML. Add to ~/.codex/config.toml:

~/.codex/config.toml
[mcp_servers.lerpa]
command = "npx"
args = ["-y", "@lerpa/mcp-server"]

Google Antigravity

Open the in-app MCP settings and add a server using the universal mcpServers JSON shape:

Antigravity → MCP settings
{
  "mcpServers": {
    "lerpa": {
      "command": "npx",
      "args": ["-y", "@lerpa/mcp-server"]
    }
  }
}

Trae (ByteDance)

Use the MCP marketplace / settings and add a custom server with the same mcpServers shape:

Trae → MCP settings
{
  "mcpServers": {
    "lerpa": {
      "command": "npx",
      "args": ["-y", "@lerpa/mcp-server"]
    }
  }
}

Continue

Continue uses YAML. Add to ~/.continue/config.yaml:

~/.continue/config.yaml
mcpServers:
  - name: lerpa
    command: npx
    args:
      - "-y"
      - "@lerpa/mcp-server"

Cline

Add to Cline's cline_mcp_settings.json using the universal shape:

cline_mcp_settings.json
{
  "mcpServers": {
    "lerpa": {
      "command": "npx",
      "args": ["-y", "@lerpa/mcp-server"]
    }
  }
}

Zed

Zed calls them context servers. Add to your settings.json:

Zed settings.json
{
  "context_servers": {
    "lerpa": {
      "command": {
        "path": "npx",
        "args": ["-y", "@lerpa/mcp-server"]
      }
    }
  }
}

Gemini CLI

Add to ~/.gemini/settings.json using the universal mcpServers shape:

~/.gemini/settings.json
{
  "mcpServers": {
    "lerpa": {
      "command": "npx",
      "args": ["-y", "@lerpa/mcp-server"]
    }
  }
}

JetBrains AI & Warp

Both expose an in-app MCP settings panel. Add a new server with the universal mcpServers JSON shape shown above.


Running locally (before npm publish)

Until @lerpa/mcp-server is published to npm, run the built server by absolute path instead of npx. Build it first with pnpm --filter @lerpa/mcp-server build, then point your client at dist/index.js:

mcp config (local)
{
  "mcpServers": {
    "lerpa": {
      "command": "node",
      "args": ["/abs/path/packages/mcp-server/dist/index.js"]
    }
  }
}

For brand-new tools like Antigravity and Trae, use the in-app MCP settings panel and paste the same mcpServers JSON — swapping npx for the local node form when running unpublished.

The MCP server is backed by the same registry as the CLI, so anything an agent finds, it can install. For a guided overview, see the tutorial.

lerpa · running
turbopack142ms
a11yAAA
tokens14
network14kb