MCP Server

A hosted Model Context Protocol server that exposes Volt UI components, usage examples, theme info, and CLI commands as tools any compatible agent can call — including finding the right component for a stated need.

What is MCP?

The Model Context Protocol is an open standard that lets LLMs talk to external tools, resources, and prompts. The Volt UI MCP server runs at https://voltui.dev/api/mcp and exposes a spec-compliant Streamable HTTP endpoint. Agents can list components, read detailed metadata, fetch usage examples, and even retrieve reusable prompts.

Quick Setup

Run the interactive installer from your project directory:

npx @voltui/agent

It asks which agent(s) to set up, then writes the right config files automatically. You can also pass the agent directly:

# one agent
npx @voltui/agent claude
npx @voltui/agent cursor
# multiple
npx @voltui/agent cursor copilot
npx @voltui/agent codex gemini opencode
# check what is installed
npx @voltui/agent doctor

Supported Agents

Claude

MCP native

Claude Code gets the MCP server and the skills. Claude Desktop adds the server under Settings → Connectors.

npx @voltui/agent claude

Writes .mcp.json and the Volt skills under .claude/skills/.

OpenAI Codex

MCP + skills

Connects Codex to the hosted server and discovers the Volt skills in your workspace.

npx @voltui/agent codex

Writes a block in .codex/config.toml and the skills under .agents/skills/.

OpenCode

MCP + skills

Connects OpenCode to the hosted server and discovers the Volt skills.

npx @voltui/agent opencode

Writes opencode.json and the skills under .agents/skills/.

Cursor

MCP native

Full MCP support plus a rules block with the digest of each Volt skill.

npx @voltui/agent cursor

Writes .cursor/mcp.json and a .cursorrules block.

Windsurf

MCP native

Codeium's Windsurf editor with native MCP support and a rules block.

npx @voltui/agent windsurf

Writes .codeium/windsurf/mcp_config.json and a .windsurfrules block.

Gemini CLI

MCP + rules

Connects Gemini CLI to the hosted server and gives it the skill digests in GEMINI.md.

npx @voltui/agent gemini

Writes .gemini/settings.json and a GEMINI.md block.

GitHub Copilot

MCP + instructions

Copilot in VS Code connects to the MCP server and reads an instructions file with the digest of each Volt skill.

npx @voltui/agent copilot

Writes .vscode/mcp.json, .github/copilot-instructions.md and .vscode/volt-snippets.code-snippets.

The server describes 44 components.

Manual Configuration

For MCP-native agents, add this entry to your config file:

{
  "mcpServers": {
    "volt-ui": {
      "type": "url",
      "url": "https://voltui.dev/api/mcp"
    }
  }
}