Skip to main content
Migma MCP lets agents work with your Migma brands from an editor or agent client. Agents can prepare emails, fetch email IDs, validate output, create campaign drafts, send tests, export approved emails, manage contacts, and inspect results.
Remote MCP is available at https://migma.ai/mcp over Streamable HTTP. Use OAuth connection when your client supports it, or use a bearer API key manually.

Where this lives in Migma

Open My Brands, choose a brand, then open Tools. The app /mcp route redirects to the active brand’s Tools page. Create API keys from Settings → Developers → API Keys.

Choose connection type

Remote MCP

Use this path for clients that support OAuth connection, such as claude.ai custom connectors.
  1. Add Migma as a custom connector with https://migma.ai/mcp.
  2. Follow the client sign-in flow. It opens Migma so you can review and approve access.
  3. On migma.ai/connect/authorize, check the app name, return host, and requested scopes. email:send means the connector can send emails from your account.
  4. Approve the connection. Migma gives the client a scoped API key automatically, so there is no key to copy or paste.
OAuth-created keys appear in Settings → Developers → API Keys and can be revoked there.

Manual API key setup

Use this path when your client does not support OAuth connection or asks you to paste a bearer token.
Some clients ask for the bearer token separately. Use the same Migma API key. Do not put API keys in URLs.

Local MCP

Local MCP is available with npx -y @migma/mcp.
Optional environment variable:
Use MIGMA_PROJECT_ID only for Local MCP when one brand is the default. Remote MCP clients should call migma_list_projects and pass projectId. Remote MCP clients do not use MIGMA_PROJECT_ID. Call migma_list_projects, then pass projectId. For Claude CLI, add the local server with:

Client setup

https://mintcdn.com/migmaai/kT6TJgF40rDP8_qB/images/logos/cursor.png?fit=max&auto=format&n=kT6TJgF40rDP8_qB&q=85&s=1bc8ebb9727a9e7b6671d0c5a7dae482

Cursor

Add Migma MCP to Cursor.
https://mintcdn.com/migmaai/kT6TJgF40rDP8_qB/images/logos/claude-code.png?fit=max&auto=format&n=kT6TJgF40rDP8_qB&q=85&s=21dc5dcc66f09660a16fbea3297333b4

Claude

Connect Claude Desktop or Claude Code.
https://mintcdn.com/migmaai/kT6TJgF40rDP8_qB/images/logos/chatgpt.png?fit=max&auto=format&n=kT6TJgF40rDP8_qB&q=85&s=f88137fa5b3adadac975427b68304728

ChatGPT

Add Migma as a custom ChatGPT MCP connector.
https://mintcdn.com/migmaai/kT6TJgF40rDP8_qB/images/logos/copilot.png?fit=max&auto=format&n=kT6TJgF40rDP8_qB&q=85&s=a1ae89d7f530a9604e469be973f465d4

Copilot

Connect GitHub Copilot to Migma MCP.
https://mintcdn.com/migmaai/kT6TJgF40rDP8_qB/images/logos/codex.png?fit=max&auto=format&n=kT6TJgF40rDP8_qB&q=85&s=a4b7a9b1b86045262a76ff6dd3067637

Codex CLI

Add Migma MCP to Codex CLI.
https://mintcdn.com/migmaai/kT6TJgF40rDP8_qB/images/logos/windsurf.png?fit=max&auto=format&n=kT6TJgF40rDP8_qB&q=85&s=ebbece28d09dcab4e8a49b58e80e243c

Windsurf

Connect Migma MCP to Windsurf.
https://mintcdn.com/migmaai/kT6TJgF40rDP8_qB/images/logos/antigravity.png?fit=max&auto=format&n=kT6TJgF40rDP8_qB&q=85&s=db40bf15f23a3195738b84f99c1b2148

Antigravity

Add Migma MCP to Google Antigravity.
https://mintcdn.com/migmaai/kT6TJgF40rDP8_qB/images/logos/raycast.png?fit=max&auto=format&n=kT6TJgF40rDP8_qB&q=85&s=0517327673bc3a44f7e48532e8fc00f0

Raycast

Use Migma MCP from Raycast AI.
https://mintcdn.com/migmaai/kT6TJgF40rDP8_qB/images/logos/vscode.svg?fit=max&auto=format&n=kT6TJgF40rDP8_qB&q=85&s=a33b2611b16ff0ff7f6a02f6d54c07b8

VS Code

Connect Migma MCP to VS Code.

First tool call

Ask your client to call:
It returns available tools, write/read behavior, idempotency rules, brand scoping, and guided workflows. Agents should call it before choosing tools.

Common workflows

  • List brands and choose projectId
  • Prepare one email or a multi-email series
  • Fetch exact emailId values
  • Validate compatibility, links, spelling, and deliverability
  • Send a test email
  • Create a campaign draft
  • Export approved email to HTML, MJML, Klaviyo, Mailchimp, HubSpot, or PDF
  • Read campaign metrics and logs
  • Manage contacts, lists, segments, and sending domains

Security

  • Prefer OAuth connection for clients that support it.
  • Use scoped API keys.
  • Review scopes before approval. email:send allows test and live sends.
  • Revoke OAuth-created and manually created keys from Settings → Developers → API Keys.
  • Keep human approval enabled before sends, exports, audience changes, and campaign changes.
  • Never place API keys in query parameters.
  • Treat MCP like direct API access. Tool calls use the same Migma permissions as SDK, CLI, and REST API requests.

Troubleshooting

Resources

npm Package

Local MCP package.

Agent Registration

Let agents request scoped access.