Skip to main content
The Macaly MCP server lets AI agents manage your Macaly apps programmatically using the Model Context Protocol — an open standard for connecting AI assistants to external tools. Connect it once, and your agent can create apps, request changes, review the generated code, and publish to production, all from a conversation. This is the reverse of Macaly’s other integrations: instead of the Macaly agent reaching out to your tools, an external agent (Claude, Cursor, ChatGPT, …) reaches into Macaly.
Available on the Pro plan. Every workspace you act on through the MCP server must be on a Pro plan — see Plan features and limits.

Why connect the MCP server

  • Build apps from your favorite AI client. Describe an app in Claude or Cursor and the agent creates it in Macaly, waits for the build, and hands you the preview link.
  • Iterate without switching tools. Request changes, follow the build status, and review what changed — straight from the chat you’re already in.
  • Inspect the generated code. List files, read sources, diff any edit, and revert to an earlier version if something went wrong.
  • Ship when you say so. Publishing is a separate, explicit step. Your agent can take an app live and connect a custom domain — but only when you ask.

What you need

  • A Macaly workspace on the Pro plan — the MCP server is a Pro feature
  • An MCP client that supports remote servers over Streamable HTTP, such as Claude (claude.ai and Desktop), Claude Code, Cursor, ChatGPT, or VS Code

Connect your client

The server is available at:
When you add it, your client opens a browser window where you sign in to Macaly and approve access (OAuth). That’s it — no keys to copy.
  1. In claude.ai or the Claude desktop app, open Settings → Connectors.
  2. Click Add custom connector.
  3. Enter https://www.macaly.com/api/mcp/mcp and click Add.
  4. Click Connect and approve access in the Macaly window that opens.
Connected via OAuth, you can act on any workspace you’re a member of. Ask your agent to “list my Macaly teams” first — most tools take a teamId so the agent knows where to work.

Using an API key instead

On Enterprise plans, you can authenticate with a Macaly API key instead of OAuth — useful for headless agents and automation. Pass the key as a bearer token:
API keys are scoped to a single workspace, so tools that take a teamId figure it out automatically.

Available tools

Workspaces & credits

Apps

Building & iteration

Code inspection

Publishing & domains

Builds are asynchronous: create_app and send_message return immediately, and the agent follows up with wait_for_build or get_build_status until the build completes. Building an app does not publish it — apps are fully previewable before going live.

Build an app end to end

1

Create

Ask your agent to build something. It calls create_app with your description and gets back an app ID.
2

Wait for the build

The agent calls wait_for_build until the build completes — typically a few minutes, longer for complex apps.
3

Iterate

Request changes in plain language. Each one becomes a send_message call followed by another build. Use get_diff to review exactly what changed.
4

Publish

When you’re happy, ask to go live. The agent calls publish_app, then checks get_deployment until your app’s URL is ready.

Example prompts

Plan features and limits

The MCP server is available on the Pro plan. The check applies per workspace: every workspace a tool acts on must be on a Pro plan, so if you’re a member of several workspaces, your agent can only work in the Pro ones. list_teams always works, so the agent can discover which of your workspaces it can act on. Calling a tool against a workspace that isn’t on a Pro plan returns a FORBIDDEN error explaining that the plan doesn’t include the MCP server. Requests are rate limited per account: 120 read calls and 20 write calls per minute. When a limit is hit, the tool returns a RATE_LIMITED error with a retry delay, and well-behaved agents back off automatically.

Permissions and safety

A connected client acts as you. It can see every workspace you’re a member of, and builds it triggers consume real credits — the same as working in the Macaly editor yourself.
  • Builds cost credits. Every create_app and send_message consumes credits from the workspace it runs in. Check balances with get_usage.
  • Publishing is never automatic. The server instructs agents to call publish_app only when you explicitly ask to go live.
  • Destructive actions are flagged. delete_app and revert_to_edit are marked destructive, so most clients ask for confirmation first. Deleting a published app over MCP is blocked entirely — unpublish it first.
  • Your account, your control. Disconnect the server anytime from your client’s connector settings to revoke its access.

Troubleshooting

  • Sign-in window doesn’t appear: make sure your client supports remote MCP servers with OAuth, and that you added the full URL including the /api/mcp/mcp path.
  • A tool returns FORBIDDEN: the workspace you’re acting on isn’t on a Pro plan (the MCP server requires Pro), or you’re passing a teamId for a workspace you’re not a member of.
  • wait_for_build times out: that’s normal for bigger builds — the build keeps running, and the agent just calls wait_for_build again to keep waiting.
  • Need help? Reach out via the chat in Macaly or check the FAQ.