Tutorial · Claude Code
This guide is for developers and creators who already work in Claude Code and want it to send email for them: a receipt from an app, a quick test message, or the newsletter they wrote. It connects Claude Code to the MAAC Go Email MCP server, practises with a test key that never delivers, then switches to a live key — one terminal command and a few plain-English requests.
The short answer
claude mcp add command points Claude Code at https://edm.cresclab.com/api/mcp with your API key.get_me. A new account answers with key_mode test.send_email records the message but never delivers it or charges for it.sk_live_ key — it needs a verified sending domain, credit or a paid plan — and Claude's email reaches real inboxes. Campaigns still have to be written by a person.Checked 3 November 2026 against MAAC Go Email's MCP documentation and Anthropic's Claude Code documentation; the superscript numbers link to the sources at the end. We make MAAC Go Email. Prices are left out because they change — see pricing.
You need three things, and none of them involves DNS or a payment yet.
claude runs in your terminal. Claude Desktop works too; its set-up is further down.sk_test_. Keys are created and revoked on the Developers page when you are signed in, up to 20 per account. A full key is shown only once, so copy it somewhere safe; if you no longer have it, create another test key there2.Starting with the test key is the point of this tutorial. It records every send without delivering or charging for it, so Claude can go through each step while no email reaches anyone, and you can build the whole workflow before any DNS or payment is in place1.
This tutorial uses MAAC Go Email. If you are still choosing a service, see how other tools' MCP servers compare.
In your terminal, from the project folder where you use Claude Code, run this once. Put your own test key where it says sk_test_...:
claude mcp add --transport http maacgo-email https://edm.cresclab.com/api/mcp --header "Authorization: Bearer sk_test_..."
Each part has a job. --transport http tells Claude Code this is a remote server reached over HTTP, so there is nothing to install. maacgo-email is the name you and Claude use for it. The URL is the hosted endpoint, and --header sends your key with every call3 4.
This adds it to the current project only. Add --scope user after http to use it in every project3:
claude mcp add --transport http --scope user maacgo-email https://edm.cresclab.com/api/mcp --header "Authorization: Bearer sk_test_..."
Avoid --scope project for this server. That scope stores the server in a .mcp.json file at the project root, which Claude Code's documentation suggests checking into version control — and your key would go along with it4.
Start a new Claude Code session so it loads the server. In the terminal, claude mcp list shows a health status next to each server, such as ✔ Connected; inside Claude Code, /mcp shows the tool count for each connected server4. This one has 31 tools3.
Then ask Claude:
Call get_me on maacgo-email.
The answer names your account, its plan and limits, and its key_mode: test or live. With the key from signup it says test. That one word decides everything that follows — a test key records, a live key delivers3.
If Claude reports a tool error instead, the key is the usual suspect; see Troubleshooting. The server has no OAuth, so a wrong key comes back as a plain tool error rather than a sign-in prompt2.
Ask for a real-looking send. Use your own address so the test reads naturally:
Use the maacgo-email MCP server. Send a short email with send_email to me@example.com, subject "Hello from Claude Code", with a one-line HTML body. Then call get_message with the returned id and tell me its status. If test_mode is true, say plainly that nothing was delivered.
With a test key, Claude gets back status: "sent" together with test_mode: true, and the tool result adds a line starting NOT DELIVERED. The message is recorded, but nothing is handed to the mail provider: no inbox receives it, nothing is charged, the suppression list is not checked and no webhook fires2.
So "sent" from a test key means recorded. If you are waiting for the email to land, it will not; that is Step 4.
One caution: the test key skips delivery and nothing else. Templates, contacts, tags and estimates work exactly as they do with a live key, and they change real data in your account2.
While you are in test mode, try the requests you will use later. Have Claude save a reusable template with create_template — {{first_name|there}} fills in a name or falls back to “there” — and send it with template_id and variables. Send to several addresses at once, up to 50, each getting its own copy. Or schedule a send for “tomorrow at 9am” and cancel it with cancel_scheduled_email1 2.
A live key begins sk_live_ and is created on the Developers page. It is issued once your account has one of three things: a verified sending domain, credit or a paid plan. Before that, creating one is refused with live_key_needs_verification2 3.
For real sending, verify a domain. It takes three DNS records — SPF, DKIM and a return-path MX — and is free on every plan. Once the domain is verified, Claude's email goes out from it, and send_email can pick an address on it in from, such as receipts@. Without a verified domain, live mail uses a shared address1 2.
To swap the key, remove the server and add it again with the live key4. If you used --scope user in Step 1, add it again with --scope user:
claude mcp remove maacgo-email
claude mcp add --transport http maacgo-email https://edm.cresclab.com/api/mcp --header "Authorization: Bearer sk_live_..."
Start a new session and send for real:
Call get_me and confirm the key is live. Then send the same short email to my address with send_email, call get_message with the returned id, and tell me whether it was delivered.
A live send is accepted first and delivered after, so have Claude check get_message, which reports whether the message was delivered, bounced or is still in flight, before calling anything “delivered”3. Each live email draws on the monthly free allowance first, then on prepaid credit, and a send through MCP is billed like the same send through the API2 3. Before a large send, quote_cost tells you what it will cost; the current rates are on the pricing page5.
One rule now applies that test mode skipped: anyone who unsubscribed, hard-bounced or complained anywhere on the account is refused, because campaigns and the API share one suppression list. Claude cannot work around it3.
Claude can send or schedule a newsletter or other campaign, but it cannot write one. API keys are not granted campaigns.write, and no MCP tool creates or edits a campaign: a person writes the draft and chooses its audience in the editor, and Claude takes it from there2 3. If you want help with the writing, the editor drafts an issue with AI from a short brief, and you review it6.
Once a draft exists, ask Claude to look before it sends:
Use the maacgo-email MCP server. Call list_campaigns and show me the drafts. For the draft named "November issue", call get_campaign and show me its subject and audience. Run estimate_campaign with that audience and tell me how many people it will reach and how many are skipped. Do not call send_campaign until I reply "send".
estimate_campaign counts who the audience actually reaches after unsubscribes, bounces and exclusions, and it sends and charges nothing. If the draft's audience was built from the segment builder's conditions, the tool cannot express it, and Claude uses the live count that list_campaigns reports instead2.
When the numbers look right, reply “send”. Claude calls send_campaign, which needs the live key: it refuses a test key, because a campaign has no record-only mode. To send later, give Claude a time and it passes it as scheduled_at; the checks and the charge are applied when a scheduled campaign goes out, so keep enough credit until then2.
Treat this step with care. send_campaign mails the whole audience, a campaign can be sent only once, and it cannot be taken back. If credit cannot cover it, the call is refused with a priced breakdown and nothing is queued or charged. Afterwards, campaign_report gives the delivery funnel — sent, delivered, opened, clicked — down to each recipient2 3.
Paste this once into your project's CLAUDE.md, so “email the receipt to Ada” goes to this server instead of a hand-written script3:
When I ask you to send an email, a newsletter, or a transactional message (receipts, one-time codes, order updates), use the maacgo-email MCP server. Call get_me first: a test key records sends without delivering them. For a campaign, run estimate_campaign before send_campaign and tell me the recipient count. If a send is refused for credit, show me the top-up link from the error.
The quickest way, with nothing to install: add MAAC Go Email as a custom connector. In claude.ai, Claude Desktop or Cowork, open Settings → Connectors → Add custom connector, paste https://edm.cresclab.com/api/mcp as the URL, and under Request headers add Authorization with the value Bearer sk_test_.... Claude's Free plan allows one custom connector; on Team and Enterprise an owner adds it7. Then carry on from Step 2: ask Claude to call get_me. Anthropic is still rolling the Request headers field out — its developer docs call it a beta8 — so if your account doesn't show it yet, use the config file below.
If you would rather keep the key in a file, Claude Desktop can also use an entry in its config file. That file starts local servers, so the entry runs mcp-remote, a small open-source bridge, on your machine, and the bridge forwards each call to the hosted endpoint with your key. It needs Node.js 18 or later3.
Settings → Developer → Edit Config opens claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\). Paste this, put your key in place of sk_test_..., save, and restart Claude Desktop3:
{
"mcpServers": {
"maacgo-email": {
"command": "npx",
"args": [
"-y", "mcp-remote", "https://edm.cresclab.com/api/mcp",
"--header", "Authorization:${MAACGO_AUTH}"
],
"env": { "MAACGO_AUTH": "Bearer sk_test_..." }
}
}
}
The key sits in env so the space in “Bearer …” never has to pass through the command line. From there, Steps 2 to 5 work the same: ask Claude Desktop to call get_me, practise with the test key, then swap in the live key in this file3.
ChatGPT connectors are not supported yet. Codex connects directly, with the key in an environment variable; its configuration, and those for Cursor, VS Code and Windsurf, are in the MCP set-up guide3.
Once the server is connected, plain requests work and Claude picks the tool. Every tool calls the public REST API with your key, so the same scopes, allowance, credit and suppression list apply as to a direct API call; there is no privileged path3. All 31 tools appear below.
| Task | Ask Claude, for example | Tools it uses |
|---|---|---|
| Send one email | “Email this receipt to ada@example.com.” | send_email |
| Reuse a design | “Save this as a template called order-receipt, then send it to Ada with her order number.” | create_template, list_templates, get_template, update_template, delete_template |
| Send later | “Send it tomorrow at 9am.” Then, if plans change: “Cancel that.” | send_email with scheduled_at, cancel_scheduled_email |
| Check delivery | “Was the receipt to Ada delivered?” | get_message, list_messages |
| Grow the list | “Add these webinar sign-ups and tag them webinar-nov.” | add_contact, import_contacts, list_contacts |
| Look after contacts | “Tag these five contacts vip, and show me what Ada has opened.” | tag_contacts, contact_activity |
| Respect topics | “Ada wants the weekly digest but not product news.” | list_topics, get_contact_topics, set_contact_topics |
| Check a campaign | “How many people will the November issue reach?” | list_campaigns, get_campaign, estimate_campaign |
| Send a campaign | “Send the November issue tomorrow at 9am.” | send_campaign |
| Read results | “How did the November issue do?” | campaign_report |
| Watch credit | “What would 2,000 emails cost, and how much credit is left?” | quote_cost, wallet_balance, wallet_events |
| Answer mail in an inbox | “Create an inbox called support, then show me what came in today and draft a reply to the first one.” | list_inboxes, create_inbox, list_inbox_messages, get_inbox_message, reply_to_message |
| Know the key | “Is this key test or live?” | get_me |
Only add people who agreed to hear from you. Purchased or scraped lists are not allowed6.
The limits are deliberate. The agent works inside your account; the decisions that cost money or cannot be undone stay with a person2 3.
tag_contacts only adds or removes tags, and set_contact_topics never unsubscribes anyone from your list. delete_template is the only tool that deletes anything.send_email too, and topic settings never make a suppressed contact mailable.send_email only records, and send_campaign refuses a test key outright.Errors come back as a tool error naming a code and a hint, so ask Claude to show you the exact text rather than guess. These are the cases the documentation describes2.
| What you see | What it means | What to do |
|---|---|---|
| “Sent”, nothing arrived | The key is sk_test_: the result has test_mode: true and a NOT DELIVERED line. | Create a live key and swap it in (Step 4). |
unauthorized | The key is missing, revoked or lacks the scope; the error says “invalid or revoked” or “lacks the scope”. It arrives as a tool error, not a sign-in prompt, because the server has no OAuth. | Fix the key in your Claude Code or Claude Desktop config, or create a new one on the Developers page. If the same key still reads fine, ask Claude to call get_me: features.frozen means sending is paused on the account; contact info@cresclab.com. |
test_key_cannot_send_campaign | send_campaign was called with a test key. | Use a live key, or send the campaign yourself from the editor. |
live_key_needs_verification | You tried to create a live key before the account has a verified domain, credit or a paid plan. | Verify a sending domain or add credit first. Test keys work right away. |
insufficient_credit | The free allowance is used up and the prepaid balance is short. Nothing was sent or charged. | Top up from the link in the error (Settings → Billing); an agent cannot pay. |
daily_cap_exceeded | The account reached its daily sending cap. | Wait until tomorrow. If the error says cap_lifts_on_payment, verifying a sending domain or adding credit raises the cap. |
suppressed | The address unsubscribed, hard-bounced or complained. | Do not retry, and do not work around it. |
approval_required | Your workspace requires a campaign to be approved before it goes out. | Ask an admin to approve the draft in the editor. |
no_recipients | The campaign's audience reaches nobody. | Run estimate_campaign: it shows how many were skipped as suppressed, excluded or held back on an account without a verified domain. |
Status holding | send_campaign queued the mail, but the provider has not accepted it yet — for example, the sending domain is not verified. | It is retried and nothing is lost, but it has not been sent yet. |
Yes, once an email service's MCP server is connected. With MAAC Go Email, you add its hosted server to Claude Code with one claude mcp add command and your API key, and Claude sends with the send_email tool. A test key records each email without delivering it; a live key delivers.
No. A key that starts with sk_test_ records every send: send_email returns status sent with test_mode set to true, but nothing reaches an inbox and nothing is charged, and send_campaign refuses a test key. To deliver, create an sk_live_ key on the Developers page; it needs a verified sending domain, credit or a paid plan.
It can send or schedule a newsletter a person already wrote in the MAAC Go Email editor, after estimate_campaign shows how many people it will reach. It cannot create or edit a campaign through the MCP server, because API keys are not granted that permission. The editor has its own AI drafting if you want help writing.
Yes, both. In claude.ai, Claude Desktop or Cowork, add it as a custom connector with the URL https://edm.cresclab.com/api/mcp and your key under Request headers as Authorization: Bearer sk_test_... — nothing to install. Anthropic is still rolling the Request headers field out (its developer docs call it a beta); if your account doesn't show it yet, use Claude Code or the config file. ChatGPT connectors are not supported yet.
Signing up is free, with no credit card, and every account starts with a test key that is never charged. The MCP server costs nothing extra: a live send through it is billed like the same send through the API, from the monthly free allowance first and then prepaid credit. Current plans and rates are on the pricing page.
Every account starts with a test key, so Claude can rehearse every send without emailing anyone.
Start free