Protect new mailboxesFresh mailboxes burn fast on a dirty list

Verify every lead before the first send and keep bounces low from day one.

Verify 25 emails free →
Product Bulk verificationReal-time APISignup form widget Catch-all detectionRole and disposable flagsFree email checker
Solutions Cold email agenciesSales teams and SDRsEmail marketersDevelopers and SaaS InstantlySmartleadApollolemlistClayHubSpotMailchimpWoodpeckerReply.ioSaleshandyZapierGoogle SheetsMaken8n All integrations
Mailboxes Google Workspace mailboxesOutlook mailboxesNew cold domain checklist
Compare vs ZeroBouncevs NeverBouncevs Emailable Pricing comparedCredit expiry comparedAll comparisons
Resources GuidesBounce rate benchmarksHow many bounces burn a domain?MX records MX lookupDomain health reportEmail list cleanerAll MX Tools
Pricing
Home / Developers / MCP server

MCP server for AI tools

Let your AI assistant check emails and clean lists for you, using the same API key and credits as the REST API.

Updated 2026-11-24

Illustration for "MCP server for AI tools"

TL;DR

  • Server URL: https://mailexchange.com/api/mcp, Streamable HTTP transport, MCP protocol version 2025-03-26.
  • Auth: Authorization: Bearer mx_live_..., the same key as the REST API, created in your account.
  • Five tools: verify_email, verify_emails (up to 100,000), get_list, get_list_results, get_account.
  • Credits: one per unique address; duplicates and unknown results not charged. No extra fee for MCP.

You already ask your AI assistant to tidy spreadsheets and draft outreach. With an MCP connection it can also check whether the addresses are real before anything is sent: "verify this list and drop the ones that will bounce" becomes one request instead of an export, an upload and a re-import.

What MCP is, in one paragraph

The Model Context Protocol is an open standard for connecting AI applications to outside tools. A client (the AI app) talks to a server using JSON-RPC messages. Remote servers use the Streamable HTTP transport: one endpoint, and every client message is a new HTTP POST to it, per the MCP transport specification (checked 2026-11-22). Mail Exchange runs exactly that: a single POST endpoint at /api/mcp that returns plain JSON responses. The assistant asks the server for its tool list, reads each tool's description and input schema, and decides when to call one.

Streamable HTTP: every client message is a new HTTP POST to one endpoint (MCP specification 2025-03-26, checked 2026-11-22). The tools call the same service as the REST API.

Tools your AI can use

ToolInputsWhat it does
verify_emailemailChecks one address and returns state (deliverable, risky, undeliverable or unknown), reason and flags. Costs 1 credit.
verify_emailsemails (array), optional nameStarts verifying a list of up to 100,000 addresses and returns a list id. Duplicates are not charged.
get_listlist_idProgress and counts per state for a list.
get_list_resultslist_id, optional offset, limitPer-address results for a finished list, 1,000 at a time by default.
get_accountnoneCredit balance and usage.

Results are the same JSON objects the REST API returns: state, reason, score and the accept_all, role, free and disposable flags. If a mail server is slow, verify_email answers with "state": "pending" and a list_id after about 20 seconds, and the assistant can read the final result with get_list_results. The meaning of each state is in email verification statuses.

Connect it

  1. Get an API key. Create an API key in your Mail Exchange account under Account, API keys. It is shown once, so copy it.
  2. Add the server to your client. Use the URL https://mailexchange.com/api/mcp with the Streamable HTTP transport.
  3. Send the key as a header. Set the Authorization header to Bearer followed by your key.
  4. Check the connection. Ask the client to list its tools. You should see verify_email, verify_emails, get_list, get_list_results and get_account.
  5. Ask in plain language. For example: verify these 200 addresses with Mail Exchange and tell me how many will bounce.

Claude Code

claude mcp add --transport http mailexchange https://mailexchange.com/api/mcp \
  --header "Authorization: Bearer mx_live_YOUR_KEY"

Add --scope user to make it available in every project, or --scope project to share it through a .mcp.json file. Run /mcp to check the connection; claude mcp add doesn't validate the key itself (Claude Code MCP docs, checked 2026-11-22).

Cursor

Put this in .cursor/mcp.json in a project, or ~/.cursor/mcp.json for all projects. Cursor can read the key from an environment variable so it stays out of the file (Cursor MCP docs, checked 2026-11-22):

{
  "mcpServers": {
    "mailexchange": {
      "url": "https://mailexchange.com/api/mcp",
      "headers": { "Authorization": "Bearer ${env:MAILEXCHANGE_API_KEY}" }
    }
  }
}

Claude (web and desktop apps)

Add a custom connector with the server URL, choose no sign-in, and put Authorization: Bearer mx_live_YOUR_KEY under request headers. Claude's help center describes request headers for "fixed credentials such as API keys that Claude sends on every request" and lists which plans can add custom connectors (custom connectors guide, checked 2026-11-22).

Other clients

Any client that supports Streamable HTTP and custom headers can connect the same way. If a client only offers OAuth sign-in, it can't use a bearer key yet; use the REST API from a script instead.

The exact command or config depends on the client; Claude Code and Cursor examples are above.

What to ask, and what happens

You askThe assistant calls
"Is [email protected] real?"verify_email
"Verify the emails in this CSV and give me the deliverable ones."verify_emails, then get_list until done, then get_list_results
"How many credits do I have left?"get_account
"Which of these leads are catch-all?"A list check, then a filter on reason = low_deliverability

Worked example: 200 conference leads

Say you paste 200 addresses from a conference export into Claude Code and ask which ones are safe for an Instantly campaign. The assistant calls verify_emails once, polls get_list, reads the results and sorts them: deliverable to send, catch-all to a separate low-volume batch, role addresses to review, undeliverable dropped. You spend 200 credits, minus any duplicates and unknowns.

How big are those buckets in practice? In Mail Exchange's checks of 779,784 unique business addresses (17 Oct to 22 Nov 2026), 18.1% were catch-all, 7.8% role and 7.6% undeliverable. The sample is mostly B2B PR, media and marketing lists sent through our API, not a random sample of all email, so your list will differ. It does mean the assistant needs a plan for catch-alls, not just "keep the good ones": see catch-all emails in cold outreach.

One list check instead of 200 single calls. Duplicates are not charged and unknown results are refunded.

Good practice

  • Use a dedicated key for each AI client, so you can revoke one without breaking your scripts. An account can hold up to 10 active keys.
  • Keep keys out of shared files. Use environment variables where the client supports them, and don't commit .mcp.json files that contain a key.
  • Send big lists as one list. Ask for a list check rather than letting the assistant call verify_email hundreds of times.
  • Check the balance first for large jobs; get_account costs nothing.

New to Mail Exchange? The free trial gives you 25 checks to try from your assistant, and plans start at $49 a month for 10,000 verifications and daily checks on 10 sending domains. See pricing.

Frequently asked questions

What is an email verification MCP server?

It is a server that speaks the Model Context Protocol, so an AI assistant such as Claude Code, Cursor or Claude can call email verification as a tool. Mail Exchange's server lives at https://mailexchange.com/api/mcp and exposes five tools: verify_email, verify_emails, get_list, get_list_results and get_account.

Does the MCP server cost extra?

No. It uses the same credits as the REST API: one credit per unique address, duplicates not charged, unknown results refunded. Plans start at $49 a month for 10,000 verifications and daily checks on 10 sending domains, and every plan includes MCP.

Which AI tools can connect to it?

Any MCP client that supports the Streamable HTTP transport and lets you send an Authorization header. Claude Code supports this with claude mcp add and a header flag, Cursor with a url and headers entry in mcp.json, and Claude custom connectors through request headers.

Does the assistant send emails to check addresses?

No. Mail Exchange never sends an email. The checks stop at the SMTP RCPT TO step, before any message content, exactly as with the REST API.

Can I use the API instead?

Yes. The MCP tools call the same service as the REST API at https://mailexchange.com/api/v1, so anything the assistant does you can also script directly.

Start your free trial →