Introduction
Connect Claude Code, Codex, Cursor, or Gemini CLI to the Marmo MCP — one config block and your agent starts designing with real components.
Marmo doesn't ship its own AI. It upgrades the agent you already use: connect it and it reads live component APIs, composition patterns, and generation rules instead of guessing.
npx marmoui initWrites the config for every detected client — Claude Code (.mcp.json), Cursor (.cursor/mcp.json), VS Code (.vscode/mcp.json), Gemini CLI (.gemini/settings.json) — merging into existing files without touching anything else. --global adds user-level configs (Windsurf); --token <token> wires a Pro token. Free tier needs no account and no token.
On Claude Code, install the plugin instead — it bundles the MCP connection plus the marmo-ui skill and /marmo-ui:* commands (init, design-md, build) that enforce the find → generate → validate workflow:
/plugin marketplace add mahmoudilyan/marmoui
/plugin install marmo-ui@marmoui-pluginsEveryone else: restart your agent and skip to step 3.
Prefer to wire it yourself? Add this server entry:
{
"mcpServers": {
"marmo-ui": {
"url": "https://mcp.marmoui.com/mcp"
}
}
}claude mcp add --transport http marmo-ui https://mcp.marmoui.com/mcpAdd the JSON block above to .cursor/mcp.json in your project (or ~/.cursor/mcp.json globally).
codex mcp add marmo-ui --url https://mcp.marmoui.com/mcpgemini mcp add marmo-ui https://mcp.marmoui.com/mcpAdd the JSON block above to ~/.codeium/windsurf/mcp_config.json.
Client only speaks stdio, or you want one command that works everywhere? Bridge with mcp-remote:
npx -y mcp-remote https://mcp.marmoui.com/mcpAs an MCP server entry:
{
"mcpServers": {
"marmo-ui": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://mcp.marmoui.com/mcp"]
}
}
}Your agent will usually do this itself, but for reference:
npm install @marmoui/ui// app entry
import '@marmoui/ui/style.css';The plugin adds the marmo-ui skill and /marmoui:* slash commands, and wires the required generation workflow (find the right primitive → generate → validate) so you don't have to prompt it manually:
/plugin marketplace add mahmoudilyan/marmoui
/plugin install marmo-ui@marmoui-pluginsPrompt your agent:
Build a billing dashboard with a data table, usage charts, and a filter toolbar using Marmo UI.
The agent looks up real props via the MCP, composes @marmoui/ui components, and validates the output before reporting done. No invented props, no template defaults.
Free Core MCP generates with the default Marmo look. Pro adds on-brand generation — feed the MCP your DESIGN.md (brand color, type, tokens, component overrides) and every connected agent generates UI in your style. No DESIGN.md yet? Run /marmo-ui:init — it detects your existing tokens or interviews you for the basics (layout, primary color, fonts) and writes one. After purchase, generate your personal MCP token at /connect and add it as a Bearer header:
{
"mcpServers": {
"marmo-ui": {
"url": "https://mcp.marmoui.com/mcp",
"headers": {
"Authorization": "Bearer <your-token>"
}
}
}
}claude mcp list, Cursor MCP settings).get_knowledge_version; if the gitSha looks old, retry in a minute.@marmoui/ui, never @chakra-ui/react or @radix-ui/*.