Sitemap

What Is MCP, and Why Does Your AI Agent Need to Verify Emails?

5 min readAug 11, 2026

--

A practical guide to the Model Context Protocol, and how to give any AI agent real-time email verification in under five minutes.

Press enter or click to view image in full size

What is MCP?

MCP (Model Context Protocol) is an open standard, introduced by Anthropic in November 2024, that defines how AI applications connect to external tools and data sources.

Instead of building a custom integration for every tool an AI agent might need one for Claude, a different one for Cursor, another for a custom LangChain pipeline. A single MCP server exposes a standard set of callable tools that any MCP-compatible client can use the same way.

If you’ve built anything with AI agents, you’ve felt the pain MCP solves: every new capability means writing another wrapper, in another framework, and maintaining all of them forever. MCP collapses that into one integration per capability, not one per framework.

The problem MCP doesn’t solve on its own: hallucinated confidence

Here’s a failure mode that’s easy to miss. An AI agent doing lead research finds j.martinez@acmecorp.com. It follows every convention the company uses for email addresses. It looks completely legitimate.

It might not exist.

The agent has no way to know unless something actually checks and an agent that hands back a plausible, unverified email with total confidence is arguably worse than one that admits it doesn’t know. Nothing about the output signals that it’s a guess.

MCP gives agents a standard way to call tools. It doesn’t give them a way to verify emails by default, that has to be a tool someone builds and exposes over the protocol.

How MailValid’s MCP server closes that gap

MailValid runs a hosted MCP server over the Streamable HTTP transport. It’s authenticated the same way as the REST API - an API key and billed identically: a verify_email call through MCP costs exactly what the same call costs through the REST API. No separate pricing, no separate credit pool.

Connecting a client directly (Claude Code, Cursor, VS Code)

claude mcp add --transport http mailvalid https://mailvalid.io/mcp/ \
--header "X-API-Key: mv_live_your_key_here"

Connecting via the launcher (Claude Desktop and other stdio-only clients)

{
"mcpServers": {
"mailvalid": {
"command": "npx",
"args": ["-y", "@mailvalid/mcp"],
"env": { "MAILVALID_API_KEY": "mv_live_your_key_here" }
}
}
}

Once connected, the agent has eight tools available:

Available MCP Tools

verify_email
Auth: API key
Cost: 1 credit*
Full verification — syntax, DNS/MX, SMTP mailbox check, disposable/role/catch-all detection, and confidence score.

submit_bulk_verification
Auth: API key
Cost: Reserves N credits
Queue a list of emails for asynchronous verification.

get_bulk_job
Auth: API key
Cost: Free
Check the status and results of a bulk verification job.

list_bulk_jobs
Auth: API key
Cost: Free
List recent bulk verification jobs.

cancel_bulk_job
Auth: API key
Cost: Free
Cancel a job and release reserved credits.

get_credit_balance
Auth: API key
Cost: Free
Check your remaining verification credits.

verify_email_demo
Auth: None
Cost: Free
Syntax, disposable, and role-based checks only. No SMTP verification. Rate-limited per IP.

get_api_discovery
Auth: None
Cost: Free
Provides machine-readable discovery URLs.

Get Sachin’s stories in your inbox

Join Medium for free to get updates from this writer.

* Free for unknown results and recently cached repeats.

Two of those tools need no API key at all, you can confirm the whole connection works before you’ve wired in a real account.

What this actually changes for an agent’s workflow

Without MCP-based verification, checking an email means a separate manual step, someone (or some other script) runs the address through a tool after the agent has already reported it.

With the MCP server connected, verification becomes something the agent does as part of its own reasoning, mid-task:

Prompt: “Find the head of growth at Acme Corp and confirm the email is deliverable before you give it to me.”

The agent calls verify_email, gets back a syntax/DNS/MX/SMTP-level result with a confidence score, and only then reports — with the verification data attached, not a bare guess dressed up as a fact.

Concrete use cases

  • Lead research agents return a confidence-scored list instead of a plausible-sounding one — the difference between “here are 50 emails” and “here are 50 emails, 41 confirmed deliverable, 6 flagged catch-all, 3 invalid.”
  • CRM cleanup agents check whether a contact’s email still resolves before flagging the record as stale, rather than guessing from inactivity alone.
  • Data enrichment pipelines treat verification as one call in a longer agent-orchestrated chain: find → verify → enrich → write back.
  • Signup abuse triage lets an agent inspect a batch of suspicious signups and explain why — disposable domain, catch-all, role-based — instead of a human eyeballing a spreadsheet.

Setting it up, step by step

  1. Create a free MailValid account at mailvalid.io/register — 100 credits included, no card required.
  2. Generate an API key from the dashboard.
  3. Add the server to your MCP client’s config (direct connection or launcher, depending on what your client supports — see above).
  4. Confirm the connection (in Claude Code: /mcp).
  5. Test with verify_email_demo first, before wiring in your real key.
  6. Let the agent call verify_email as part of its own task logic — most agents will do this automatically once the tool is available and the task calls for it.

Full setup instructions — including Cursor, VS Code, and Windsurf configs — are documented at mailvalid.io/docs#mcp.

Frequently asked questions

What does MCP stand for, and who created it? MCP stands for Model Context Protocol. Anthropic introduced it in November 2024 as an open standard for connecting AI applications to external tools and data sources.

Is MCP the same thing as a plugin? No. Most plugin systems are single-platform — a ChatGPT plugin doesn’t work in Claude, and vice versa. MCP is a shared protocol: one server, any compatible client.

Does using the MCP server cost more than the REST API? No. Billing is identical — the same credit balance, the same per-verification cost, whether the call comes through MCP or a direct REST request.

Can I test this before connecting a real account? Yes. verify_email_demo and get_api_discovery require no authentication at all.

Which clients does MailValid’s MCP server support? Any MCP-compatible client. Claude Code, Cursor, VS Code (via GitHub Copilot), Claude Desktop, and Windsurf are explicitly documented with working configs; any other client supporting Streamable HTTP or stdio will work with the standard JSON configuration shown above.

Why does almost no other email verification provider have an MCP server yet? MCP is genuinely new — most vendors haven’t caught up. If you’re building agentic workflows today, that’s either an argument to build your own wrapper (which you’ll then maintain forever) or to use one of the few that already exist.

Last updated: 11 August 2026.

If you’re building AI agents that touch email addresses in any capacity — outreach, enrichment, CRM hygiene, signup handling — MailValid’s MCP server is worth wiring in before you write your own REST wrapper.

--

--