ui-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@ui-mcprender a sales dashboard with monthly revenue chart"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
ui-mcp
MCP server that renders flexible, shadcn-styled UI in your local browser. Agents call render_ui to show dashboards, forms, charts, comparisons, and factual answers with numbers or spatial concepts — not just when building apps.
Quick start
npx ui-mcp initThis will:
Register the MCP server in
.cursor/mcp.json(and.mcp.jsonfor Claude Code)Append agent instructions to
AGENTS.md/CLAUDE.mdso the model defaults to rendering (re-runinitto refresh existing snippets)
Reload your editor MCP settings, then ask your agent to render something visual.
Related MCP server: mcp-interactive-ui-server
Tools
Tool | Description |
| Create and open a UI view in the browser |
| Update an existing view by id |
| List active views and URLs |
| Remove a view |
Modes
html— HTML fragment, wrapped in shadcn/Tailwind shelljsx— React component (ApporComponent), compiled in-browser via Babelpage— Full HTML document (you control everything)
Style
The shell applies shadcn CSS variables and Tailwind semantic colors (bg-background, text-primary, etc.). The model is free to build any layout — no component whitelist.
Manual MCP config
{
"mcpServers": {
"ui-mcp": {
"command": "npx",
"args": ["-y", "ui-mcp"]
}
}
}Environment
Variable | Default | Description |
|
| Preferred backend port |
When should agents render?
There is no universal "after final answer" lifecycle hook across MCP clients. The reliable pattern is project instructions:
npx ui-mcp init— writes AGENTS.md / CLAUDE.md with a render-by-default policyCursor rules / project instructions — reinforce the behavior
Agents should call render_ui for most answers — especially numbers, measurements, comparisons, architecture, and workflows. Skip only for truly single-value replies (e.g. a port number) or when the user asks for text only. Re-run npx ui-mcp init to update an existing project's snippet in place.
Development
npm install
npm run build
node dist/bin/ui-mcp.js initLicense
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ezzcodeezzlife/ui-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server