---
title: "MCP"
description: "Connect coding agents to edbn/ui with the MCP server."
docs: https://ui.edbn.me/docs/components/mcp
---

# MCP

Connect your coding agent to edbn/ui. It can search every component, table, chart, PDF template, email template, form, block, and page template, read working examples, and install them with one command, using as few tokens as possible.

Server URL: https://ui.edbn.me/mcp

## Set up your agent

Free items need no token. For Pro tables, charts, PDFs, emails, forms, blocks, and templates, create a token in your dashboard (https://ui.edbn.me/dashboard/tokens) and send it as `Authorization: Bearer <token>`. It is the same token the shadcn CLI uses, and installs made with it appear in your dashboard.

### Claude Code

Free:

```bash
claude mcp add --transport http edbn https://ui.edbn.me/mcp
```

Pro:

```bash
claude mcp add --transport http edbn https://ui.edbn.me/mcp \
  --header "Authorization: Bearer $EDBN_TOKEN"
```

### Codex

Free:

```bash
codex mcp add edbn --url https://ui.edbn.me/mcp
```

Pro:

```bash
codex mcp add edbn --url https://ui.edbn.me/mcp --bearer-token-env-var EDBN_TOKEN
```

Codex reads the token from the EDBN_TOKEN environment variable when it starts.

### Cursor

Free, in `.cursor/mcp.json`:

```json
{
  "mcpServers": {
    "edbn": { "url": "https://ui.edbn.me/mcp" }
  }
}
```

Pro, in `.cursor/mcp.json`:

```json
{
  "mcpServers": {
    "edbn": {
      "url": "https://ui.edbn.me/mcp",
      "headers": { "Authorization": "Bearer ${env:EDBN_TOKEN}" }
    }
  }
}
```

Restart Cursor after exporting EDBN_TOKEN so it can read the variable.

### VS Code

Free, in `.vscode/mcp.json`:

```json
{
  "servers": {
    "edbn": { "type": "http", "url": "https://ui.edbn.me/mcp" }
  }
}
```

Pro, in `.vscode/mcp.json`:

```json
{
  "inputs": [
    {
      "type": "promptString",
      "id": "edbn-token",
      "description": "edbn/ui token",
      "password": true
    }
  ],
  "servers": {
    "edbn": {
      "type": "http",
      "url": "https://ui.edbn.me/mcp",
      "headers": { "Authorization": "Bearer ${input:edbn-token}" }
    }
  }
}
```

VS Code asks for the token once and stores it securely.

### Windsurf

Free, in `~/.codeium/windsurf/mcp_config.json`:

```json
{
  "mcpServers": {
    "edbn": { "serverUrl": "https://ui.edbn.me/mcp" }
  }
}
```

Pro, in `~/.codeium/windsurf/mcp_config.json`:

```json
{
  "mcpServers": {
    "edbn": {
      "serverUrl": "https://ui.edbn.me/mcp",
      "headers": { "Authorization": "Bearer ${env:EDBN_TOKEN}" }
    }
  }
}
```

### Claude Desktop

Free:

```text
Settings → Connectors → Add custom connector → https://ui.edbn.me/mcp
```

Pro, in `claude_desktop_config.json`:

```json
{
  "mcpServers": {
    "edbn": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://ui.edbn.me/mcp", "--header", "Authorization:${EDBN_AUTH}"],
      "env": { "EDBN_AUTH": "Bearer edbn_your_token" }
    }
  }
}
```

Custom connectors cannot send a token, so Pro access goes through mcp-remote.

### Any agent

Free:

```bash
npx add-mcp https://ui.edbn.me/mcp
```

Pro:

```bash
npx add-mcp https://ui.edbn.me/mcp \
  --header "Authorization: Bearer $EDBN_TOKEN"
```

add-mcp writes the config for the agents you choose, including Claude Code, Codex, Cursor, and VS Code.

## Tools

- `search`: The whole catalog, grouped by kind, or ranked matches for a query.
- `get_item`: Install command, dependencies, files, and examples for up to five items. No code.
- `get_example`: Working usage code from an item's docs demos, within a size budget.
- `get_source`: Exact files to copy, dependencies first, for projects that can't run the shadcn CLI.
- `get_setup`: Project requirements, the base install, and the registry entry for Pro items.

Agents get the cheapest path by default: they find an item, run the one-line install command, and read the files it wrote. Examples and source come back only when asked, within a size budget, so a large chart or template never fills the context by accident.

Each call is recorded to improve the catalog: the tool, the item names, and the search terms, never your token, IP address, or code. See the Privacy policy: https://ui.edbn.me/privacy

## Try asking

- "Add a country combobox to the signup form using edbn/ui."
- "Build a revenue page with an edbn area chart and a sortable data table."
- "Generate invoice PDFs from our orders with the edbn invoice template."

## Without MCP

Agents that cannot use MCP can read https://ui.edbn.me/llms.txt, a short plain-text guide to installing edbn/ui with the shadcn CLI. Code you get through the MCP server is covered by the License: https://ui.edbn.me/license
