Skip to main content
The Builder MCP Server lets you build and run your own software on Mihu — described in plain language, from your own AI client (Claude Desktop, Claude Code, Cursor, or any MCP client). It is the customer-facing integration and app builder, delivered over the Model Context Protocol. Ask it for a CRM, a connector to another service, a data migration, a webhook handler, or an automation agent, and it generates the code, reviews and tests it, deploys it to an isolated cloud sandbox, and hands you a live HTTPS URL. This is different from the Mihu MCP Server: that one operates your existing agents, contacts, and campaigns; the Builder MCP creates and runs brand-new apps for you.

What the Builder MCP can do

CapabilityExample tools
Describe & build an appcreate_agent, answer_agent, approve_agent, get_agent, list_agents
Ship your own codedeploy_code, list_deployments, get_deployment_files
Quality & safetyreview_deployment, test_deployment, get_qa_report
Operate a running appstart_deployment, stop_deployment, set_auto_stop, delete_deployment
Inspect & debugget_logs, exec_command, create_ssh, recreate_ssh, revoke_ssh
Files & secretscreate_upload_link, store_credentials, list_credentials
Costget_spending
Every app runs in its own isolated sandbox with a public preview URL. Each connection is bound to one tenant and scoped to it — no other tenant is reachable.

Get your connection details

You get everything you need from the app. Open Builder Mode and go to the Credentials tab — the Builder connection panel there shows your three values:
ValueWhere it comes from
ServerThe platform URL, e.g. https://builder.mihu.ai
TenantYour workspace’s builder tenant name
TokenYour tenant key — masked by default; click the eye icon to reveal and copy it
The token is created automatically the first time you use the builder. You can roll it any time from the Credentials tab (Recreate token), or delete it to revoke access — a new one is minted automatically the next time a builder is used. Keep it secret: it authorizes everything for your tenant.

Before you start

Make sure you have:
  • access to your Mihu tenant,
  • an MCP-compatible client (Claude Desktop, Claude Code, Cursor, or a custom client),
  • Python with the MCP package installed: pip install mcp,
  • and your Server, Tenant, and Token from Builder Mode → Credentials.

Run the server (stdio)

Run mcp_server.py with your three values as environment variables:
MIHU_API_URL=<Server> \
MIHU_TENANT=<Tenant> \
MIHU_TENANT_KEY=<Token> \
python mcp_server.py
For example:
MIHU_API_URL=https://builder.mihu.ai \
MIHU_TENANT=acme \
MIHU_TENANT_KEY=acme_xxx \
python mcp_server.py

Register it with your MCP client

Claude Desktop

In Settings → Developer → Edit Config, add an MCP server:
{
  "mcpServers": {
    "mihu-builder": {
      "command": "python",
      "args": ["/absolute/path/to/mcp_server.py"],
      "env": {
        "MIHU_API_URL": "https://builder.mihu.ai",
        "MIHU_TENANT": "<your tenant>",
        "MIHU_TENANT_KEY": "<your token>"
      }
    }
  }
}

Claude Code

claude mcp add mihu-builder \
  --env MIHU_API_URL=https://builder.mihu.ai \
  --env MIHU_TENANT=<your tenant> \
  --env MIHU_TENANT_KEY=<your token> \
  -- python /absolute/path/to/mcp_server.py

Build flow (asynchronous — poll after each write)

Building is asynchronous, so always poll after a write:
  1. Describe it — call create_agent with a one-sentence prompt.
  2. Poll — call get_agent (~every 2–3s) while status: processing.
  3. Answer questions — while status: gathering, the builder asks what it needs (credentials, size, schedule); call answer_agent and keep polling.
  4. Approve — when status: awaiting_approval, call approve_agent to build, deploy, and run automated checks (AI code review + tests).
  5. Live — once status: deployed, the app is running with a preview URL. Operate it with start_deployment / stop_deployment / get_logs / exec_command, or ask for changes (the builder rebuilds the live app).
You can also skip the conversation and ship your own files directly with deploy_code.

Test the connection

Try these once connected:
  • “List my builders.”
  • “Build a small JSON API that stores and returns leads.”
  • “Show the logs for my last deployment.”

Troubleshooting

SymptomFirst check
401 from the platformWrong tenant or wrong/expired token — re-copy it from Builder Mode → Credentials.
403 / cannot see a builderEach token is tied to one tenant. You only see that tenant’s builders.
Preview URL doesn’t resolveThe builder is stopped — start it; a preview URL only resolves while running.
Build keeps failingAsk the builder to “try again” or “build a simpler version”; it self-heals and retries.
Token leakedRecreate it from the Credentials tab — the old one stops working immediately.

Support