MCP server
Wire Claude Desktop, Cursor, or any MCP-aware assistant to manage your 9d9 site.
The 9d9 MCP server exposes your site's deploy controls as tool calls. The assistant can check status, roll back a deploy, attach a domain and keep the brand profile current — all from chat.
Changing the site itself means a new build: the assistant
edits the source and runs npx @9d9dev/cli deploy ./dist
(see the CLI). There's no CMS — every change is a
deploy. Starting from nothing? Use the get-started prompt.
Setup
Pick your tool. Each snippet has a copy button — paste it where indicated, restart the tool, and ask: "Is my 9d9 site live?"
Run this once in your terminal — Claude Code writes the config for you:
claude mcp add 9d9 -- npx -y @9d9dev/mcp Restart Claude Code (or open a new session). /mcp in Claude Code shows the connected servers.
Open Settings → Developer → Edit Config (or edit ~/Library/Application Support/Claude/claude_desktop_config.json on macOS, %APPDATA%\Claude\claude_desktop_config.json on Windows). Add this server:
{
"mcpServers": {
"9d9": { "command": "npx", "args": ["-y", "@9d9dev/mcp"] }
}
} Fully quit Claude Desktop (⌘Q) and reopen. The hammer icon in the chat box will list 9d9's tools.
Edit ~/.cursor/mcp.json for all projects, or .cursor/mcp.json in a single project. Add this server:
{
"mcpServers": {
"9d9": { "command": "npx", "args": ["-y", "@9d9dev/mcp"] }
}
} Open Cursor Settings → MCP and toggle 9d9 on. The tool list appears in the agent panel.
Edit ~/.codeium/windsurf/mcp_config.json and add this server:
{
"mcpServers": {
"9d9": { "command": "npx", "args": ["-y", "@9d9dev/mcp"] }
}
} Open Cascade → click the hammer icon → Refresh. 9d9 appears in the available servers.
Create .vscode/mcp.json in your project (or add to your user-level mcp.json via the command palette → "MCP: Add Server"):
{
"servers": {
"9d9": { "command": "npx", "args": ["-y", "@9d9dev/mcp"] }
}
} Reload the window. In Copilot Chat, switch to Agent mode and 9d9's tools become callable.
Not listed? Any client that speaks MCP can run npx -y @9d9dev/mcp as a stdio server.
The server ships a playbook
via MCP's instructions field, so connected assistants get
orchestration patterns (build a site, update text, attach a domain,
rollback) in their system prompt automatically — no per-client setup.
First-time auth
The MCP server reads .9d9.json from the current working
directory (walking up to find it) — the same file the CLI uses.
Easiest setup: cd into the project, then
9d9 set-key ak_xxx --org=org_xxx. After that the MCP server
picks it up automatically as long as it's launched from inside that repo.
Each repo gets its own binding, so switching sites means switching directories — no global config to leak across projects.
If you can't run a shell command (sandboxed assistants), call the
save_api_key tool directly with the key + org_id.
Tools
Deploys
list_deploys(org_id)— recent deploys with status, file count, timestamps.activate_deploy(org_id, deploy_id)— rollback to a previous deploy.
Site config
attach_domain(org_id, domain, mode)— BYO returns DNS instructions;buyregisters through 9d9.get_status(org_id)— site metadata, brand profile, and whether it's been claimed.update_brand(org_id, brand)— partial-merge update to the brand profile.save_api_key(key, org_id)— write auth to.9d9.jsonin the server's working directory.
Example session
You: The new homepage photo looks wrong on phones — put yesterday's version back.
The assistant calls list_deploys, finds yesterday's deploy, and calls activate_deploy with its id. The previous version is live on every edge within seconds; then it fixes the photo in the source and redeploys with the CLI.