MCP server
Trame UI, inside your AI coding agent
The Trame UI MCP server lets your agent search every block, see it, read its props, check what it writes and install it for you, in Vue or React.
Works with Claude Code, Cursor, VS Code, Windsurf, Zed, Lovable and more. Included with Pro and Team.
Why the MCP server
No more improvised UI
An agent that cannot see the catalogue writes generic markup. With the server, every section starts from a tested block.
Search by intent
search_blocks ranks the 1586 blocks by what a section does, and narrows by family, role, page or plan.
search_blocks
See it before installing
Every result comes with a screenshot and a live preview of each variant, light and dark.
get_block
Whole-page planning
From a page kind, an ordered outline: the block for each section, why it is there, and what to drop without real content.
compose_page
Every prop, documented
Variants with when to use each, and every prop with its kind, values and whether it is required.
get_block
No made-up props
The agent checks its props against the block’s schema, and any word left from the demo is flagged.
check_props
Installed in one step
The exact shadcn command for Vue or React, the components.json snippet and the setup, for your package manager.
get_install_command
Four moves to your first page
Your agent signs in with your Trame UI account; the shadcn CLI installs the blocks with your project’s key.
Add the server
One command or a few lines of configuration in your agent: Claude Code, Cursor, VS Code or Windsurf.
Sign in once
The first time, your agent opens trame-ui.com in the browser. Sign in with your Pro or Team account and it is connected.
Once per project
Add your key to the project
Create a key on your dashboard and put it in the project’s .env as TRAME_KEY. The shadcn CLI sends it when it installs a block.
Ask for a page
« A pricing page with three plans and a FAQ. » Your agent finds the blocks, reads their props and installs them.
Add Trame UI to your agent
The server lives at https://mcp.trame-ui.com/mcp. Pick your agent, paste, and sign in when the browser opens.
claude mcp add --transport http trame https://mcp.trame-ui.com/mcp.cursormcp.json
JSON{
"mcpServers": {
"trame": {
"url": "https://mcp.trame-ui.com/mcp"
}
}
}.vscodemcp.json
JSON{
"servers": {
"trame": {
"type": "http",
"url": "https://mcp.trame-ui.com/mcp"
}
}
}mcp_config.json
JSON{
"mcpServers": {
"trame": {
"serverUrl": "https://mcp.trame-ui.com/mcp"
}
}
}codex mcp add trame --url https://mcp.trame-ui.com/mcpgemini mcp add --transport http -s user trame https://mcp.trame-ui.com/mcpopencode.json
JSON{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"trame": {
"type": "remote",
"url": "https://mcp.trame-ui.com/mcp"
}
}
}One command, in your project.
Connect the agent you already use
Any client that supports remote MCP servers with sign-in works. Each of these has its own guide.
Claude Code
One command in your project.
Claude Desktop
A custom connector, also on claude.ai.
Cursor
A few lines in .cursor/mcp.json.
VS Code
For GitHub Copilot’s agent mode.
Windsurf
In Cascade’s MCP config.
Codex CLI
OpenAI’s coding agent in the terminal.
Zed
A remote context server.
OpenCode
A remote server in opencode.json.
Gemini CLI
One command, then /mcp auth.
Lovable
A custom connector, signed in with OAuth.
v0
A custom MCP server in your chats.
Bolt
A custom connector with MCP OAuth.
Your agent’s Trame playbook
The agent skill is one short file of rules your agent reads before building a page. Install it once per project; the MCP prompts build_page, add_section and pick_theme follow the same steps.
# Claude Code: a skill in the project
mkdir -p .claude/skills/trame
curl -fsSL https://trame-ui.com/agents/trame/SKILL.md -o .claude/skills/trame/SKILL.md
# Cursor: a project rule
curl -fsSL https://trame-ui.com/agents/trame.mdc -o .cursor/rules/trame.mdc
# any other agent: AGENTS.md
curl -fsSL https://trame-ui.com/agents/AGENTS.trame.md >> AGENTS.md- Search before writing markup
compose_page for a page, search_blocks for a section; by hand only when nothing fits.
- Your content only
No invented reviews, logos or figures: a prop without real content stays absent.
- Check before coding
check_props on every block, until no error and no demo word is left.
- Tokens only
No hex colours, no palette classes, no dark: — the theme does it.
Your key, for installing blocks
The MCP server describes the blocks; the code comes from the registry, which the shadcn CLI reads with your key. Create it on your dashboard and add it to your project’s .env yourself: never paste it into the chat.
Your key, from your dashboard. Keep .env out of git.
.env
ShellTRAME_KEY=trame_…components.json
JSON{
"registries": {
"@trame": {
"url": "https://trame-ui.com/r/vue/{name}.json",
"headers": {
"Authorization": "Bearer ${TRAME_KEY}"
}
}
}
}Questions
The MCP server, in short
What is the Trame UI MCP server?
A remote MCP server that lets AI coding agents search the Trame UI blocks, read their props and variants, check the props they write, and get the exact shadcn command to install them in Vue or React.
Which coding agents are supported?
Any client that supports remote MCP servers with sign-in: Claude Code, Claude Desktop, Cursor, VS Code, Windsurf, Codex CLI, Zed, OpenCode, Gemini CLI, Antigravity, Kilo Code, Cline, Junie, Warp, Goose, Lovable, v0, Bolt and Replit each have a setup guide.
Do I need a paid plan?
The MCP server is part of Pro and Team. Components, themes and the free blocks install with the shadcn CLI on any plan.
Is my code sent anywhere?
No. The server only describes blocks; it never reads your project. Your agent installs the code with the shadcn CLI, which reads your key from .env.
What is the agent skill?
A short file of rules your agent reads before building a page: search the blocks first, fill them with your real content only, check the props, use theme tokens. It installs as a Claude Code skill, a Cursor rule or an AGENTS.md section.
How does my agent avoid made-up props?
It calls check_props with the props it wrote: the server validates them against the block’s schema and flags any words left from the demo, before any code is written.