Before you start
You need two things:- A MailGreet account — sign up free
- A MailGreet API key — create one in Settings → API & Integrations → API Keys
When creating your API key, select the permission scopes you need. For general AI assistant use, selecting all scopes or using
* (full access) is fine for a private personal key. See Authentication for scope details.Option 1: Claude Desktop
Edit claude_desktop_config.json
Create or open Replace
claude_desktop_config.json and add the MailGreet server:claude_desktop_config.json
mailgreet_YOUR_API_KEY_HERE with your actual API key.Restart Claude Desktop
Quit Claude Desktop completely and reopen it. The config is loaded at startup.
Example prompts to try
Once connected, Claude can handle natural language requests like these:Option 2: Cursor
Create the MCP config file
For project-level access, create
.cursor/mcp.json in your project root.
For global access (available in all projects), create ~/.cursor/mcp.json..cursor/mcp.json
Reload the window
Press
Cmd+Shift+P (macOS) or Ctrl+Shift+P (Windows/Linux), then run Reload Window.Option 3: Windsurf
Windsurf uses a global MCP config file: Config file location:~/.codeium/windsurf/mcp_config.json
mcp_config.json
Option 4: n8n AI Agent
n8n supports MCP tools natively via the MCP Client Tool node.Add the MCP Client Tool
Under Tools in the AI Agent node, click Add Tool and select MCP Client Tool.
Configure the tool
Fill in the following settings:
| Field | Value |
|---|---|
| Server URL | https://api.mailgreet.com/mcp |
| Authentication | Custom Header |
| Header Name | Authorization |
| Header Value | Bearer mailgreet_YOUR_API_KEY_HERE |
Write your agent prompt
The AI Agent will automatically call
Agent prompt:
tools/list and discover all MailGreet tools it has permission to use.Example workflow:Trigger: New row added to Google SheetsAgent prompt:
“Add the subscriber from the sheet row to MailGreet and assign them to the ‘Newsletter’ group. Email:The agent will automatically call{{ $json.email }}, Name:{{ $json.name }}.”
add_subscriber → assign_subscriber_to_group.Example n8n use cases
- CRM sync: When a deal closes in your CRM, add the contact to MailGreet and assign them to an onboarding group
- Form submissions: When someone fills a Typeform, add them as a MailGreet subscriber with custom field data
- Scheduled reports: Every Monday, ask the agent to summarize your subscriber growth and campaign stats from the past week
- Bulk cleanup: Filter a spreadsheet of emails and ask the agent to unsubscribe or delete them from MailGreet
Option 5: Direct HTTP (custom clients)
For developers building their own MCP clients or testing manually.Step 1 — Handshake
Step 2 — Discover available tools
Step 3 — Call a tool
Troubleshooting
Claude doesn't show the tools indicator
Claude doesn't show the tools indicator
- Make sure you fully quit and reopened Claude Desktop (not just closed the window)
- Check that your
claude_desktop_config.jsonis valid JSON (no trailing commas, correct braces) - Verify the API key starts with
mailgreet_
Getting 401 Unauthorized errors
Getting 401 Unauthorized errors
Only some tools are visible
Only some tools are visible
This is by design. MailGreet only returns tools your API key has permission to call. If you expect to see campaign tools but don’t, your key may be missing
campaigns:read or campaigns:write scope. See Authentication → Permission Scopes.Getting rate limit errors (429)
Getting rate limit errors (429)
MailGreet allows 120 MCP requests per minute. If you’re running automated workflows in n8n with a high volume, throttle your calls or add a delay between steps.
Cursor doesn't find the MCP server
Cursor doesn't find the MCP server
- Confirm the file is at
.cursor/mcp.json(project) or~/.cursor/mcp.json(global) - Run Reload Window after any config change
- Check that the JSON is valid — Cursor silently ignores malformed config files

