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
Recommended: OAuth connector setup
Use this path for clients that support OAuth connection, such as claude.ai custom connectors.- Add Migma as a custom connector with
https://migma.ai/mcp. - Follow the client sign-in flow. It opens Migma so you can review and approve access.
- On
migma.ai/connect/authorize, check the app name, return host, and requested scopes.email:sendmeans the connector can send emails from your account. - Approve the connection. Migma gives the client a scoped API key automatically, so there is no key to copy or paste.
Manual API key setup
Use this path when your client does not support OAuth connection or asks you to paste a bearer token.Local MCP
Local MCP is available withnpx -y @migma/mcp.
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

Cursor
Add Migma MCP to Cursor.

Claude
Connect Claude Desktop or Claude Code.

ChatGPT
Add Migma as a custom ChatGPT MCP connector.

Copilot
Connect GitHub Copilot to Migma MCP.

Codex CLI
Add Migma MCP to Codex CLI.

Windsurf
Connect Migma MCP to Windsurf.

Antigravity
Add Migma MCP to Google Antigravity.

Raycast
Use Migma MCP from Raycast AI.
VS Code
Connect Migma MCP to VS Code.
First tool call
Ask your client to call:Common workflows
- List brands and choose
projectId - Prepare one email or a multi-email series
- Fetch exact
emailIdvalues - 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:sendallows 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.