Overview
MailGreet MCP uses API key authentication — the same system as the REST API. There are no OAuth flows or session cookies. Create a key in the dashboard, paste it into your MCP client config, and you’re connected. Every MCP request must include your key as a Bearer token:Creating an API Key
Create a new key
Click Create New Key, give it a descriptive name (e.g.
Claude Desktop, n8n Workflow, Read-Only Assistant), and select the permission scopes needed.Paste into your MCP client config
Add the key to your Claude Desktop, Cursor, or n8n config. See Quickstart for format.
Key format
All MailGreet API keys follow this format:mailgreet_ followed by exactly 32 lowercase hex characters — 42 characters total.
Permission Scopes
API keys are scoped to specific resources. When you calltools/list, MailGreet only returns the tools your key has permission to call. Calling a tool without the required scope returns a Forbidden error.
Available scopes
| Scope | Tools unlocked |
|---|---|
subscribers:read | list_subscribers, get_subscriber, get_subscriber_count, get_subscriber_activity, get_single_import, list_segments, get_subscribers_in_segment |
subscribers:write | add_subscriber, update_subscriber, delete_subscriber, forget_subscriber, assign_subscriber_to_group, unassign_subscriber_from_group, import_subscribers_to_group, update_segment, delete_segment |
campaigns:read | get_campaign, list_campaigns, get_campaign_subscribers |
campaigns:write | create_campaign, update_campaign, delete_campaign, schedule_campaign, cancel_campaign |
groups:read | list_groups, get_group_subscribers |
groups:write | create_group, update_group, delete_group |
webhooks:read | list_webhooks, get_webhook |
webhooks:write | create_webhook, update_webhook, delete_webhook |
automations:read | list_automations, get_automation, get_automation_activity |
automations:write | create_automation, delete_automation |
forms:read | list_forms, get_form, get_form_subscribers |
forms:write | update_form, delete_form |
* | Full access — all 44 tools |
Scope patterns
| Pattern in key permissions | What it permits |
|---|---|
* | Every tool |
subscribers:* | All subscriber tools (read + write) |
subscribers:read | Only subscriber read tools |
Recommended key configurations
Read-only AI assistant (safest for shared setups)
Read-only AI assistant (safest for shared setups)
Full automation agent (most powerful)
Full automation agent (most powerful)
The AI can read and write everything.Scopes to enable:Good for: Personal Claude Desktop setup, trusted n8n workflows, developers building on MCP.
Campaign manager only
Campaign manager only
Can create, edit, schedule, and cancel campaigns. Cannot touch automations, forms, or webhooks.Scopes to enable:
Subscriber import bot
Subscriber import bot
Can add, update, and delete subscribers and manage groups. Cannot access campaigns.Scopes to enable:
Revoking a key
Go to Settings → API & Integrations → API Keys and click the revoke button next to any key. Revoked keys stop working immediately — any active MCP session using a revoked key will receive a401 Unauthorized error on its next request.
Security best practices
- Name your keys clearly —
Claude Desktop (personal)is better thanKey 1 - One key per client — use separate keys for Claude Desktop, n8n, and any automation, so you can revoke individual access without disrupting others
- Minimum scope — only grant the scopes each client actually needs
- Never commit keys to source code — use environment variables or secret managers for programmatic clients
- Rotate periodically — create a new key and revoke the old one if you suspect a key was exposed

