# How to Let Your AI Agent Verify an Email Address Before It Sends

**Short answer:** connect an email verification MCP server to your AI agent. It gets a `verify_email` tool that checks whether a mailbox exists, without sending an email, and returns one of six results with a plain-English reason. The agent then sends only to `valid` addresses.

We build BounceLayer, an email verification service, so this guide uses our MCP server. The same steps work with any email verification MCP server, and we list the others at the end.

## What is an email verification MCP server?

An MCP (Model Context Protocol) server gives an AI agent tools it can call. An email verification MCP server gives it a tool that checks an address before the agent uses it: syntax, the domain's mail (MX) records, whether the mailbox exists on the mail server, and whether the address is disposable, role-based (like `info@`) or on a catch-all domain. No email is sent to the address.

## Why does an AI agent need to verify email addresses?

Agents that send email will happily send to an address that doesn't exist. Each one bounces, and enough bounces push a domain's mail into spam. A person would check the address first. An agent needs a tool for that.

## How do I add email verification to Claude, Cursor or another MCP client?

**Claude Code** (one command):

```bash
claude mcp add --transport http bouncelayer https://api.bouncelayer.com/mcp/ \
  --header "X-API-Key: bl_live_YOUR_KEY"
```

**Cursor, Claude Desktop, Windsurf or any other MCP client** (run the npm package):

```json
{
  "mcpServers": {
    "bouncelayer": {
      "command": "npx",
      "args": ["-y", "@bouncelayer/mcp"],
      "env": { "BOUNCELAYER_API_KEY": "bl_live_YOUR_KEY" }
    }
  }
}
```

**Remote MCP URL:** `https://api.bouncelayer.com/mcp/`, with your key in the `X-API-Key` header.

### No API key yet?

The agent can get its own. The server has a `create_agent_account` tool that needs no key and returns one with 25 free credits. It also returns a claim link for the person the agent works for. Claiming the account gives 300 free checks a month.

## What results does the agent get back?

| Result | Meaning | What the agent should do |
| --- | --- | --- |
| `valid` | The mailbox exists | Send |
| `invalid` | It doesn't exist | Don't send |
| `catch_all` | The domain accepts every address, so the mailbox can't be confirmed | Send with care |
| `disposable` | A throwaway address | Don't send |
| `do_not_mail` | A risky address, such as a shared inbox | Leave it out |
| `unknown` | The mail server gave no answer | Try again later (not charged) |

Each result also has an `explanation` in plain English and a `did_you_mean` suggestion when the domain looks mistyped (for example `gmial.com` → `gmail.com`), so the agent can tell the user why and offer the fix.

## What prompt should I give the agent?

> Before you send any email, call verify_email on the recipient. Only send if the result is valid. If it is catch_all, ask me first. If did_you_mean is set, show me the suggestion.

## How do I verify a whole email list?

For more than a few addresses, use `submit_bulk_verification` and then `get_bulk_job` to collect the results. Checking a list one address at a time works, but it is slower and uses more of the agent's context.

All tools: `verify_email`, `submit_bulk_verification`, `get_bulk_job`, `list_bulk_jobs`, `cancel_bulk_job`, `get_credit_balance`, `verify_email_demo`, `create_agent_account`, `get_api_discovery`.

## Which other email verification MCP servers are there?

ZeroBounce, Hunter, Bouncer, Clearout, MyEmailVerifier, EmailListVerify and EmailVerify.io also publish MCP servers. If you already pay one of them, use theirs. We compared how each one connects here: https://bouncelayer.com/compare/email-verification-mcp-servers

## FAQ

**Does verifying an email address send an email to it?**
No. The check asks the recipient's mail server whether the mailbox exists and stops before any message is sent.

**How much does it cost?**
BounceLayer gives 300 free checks a month, with no card. Bought credits never expire, and `unknown` results are not charged.

**Which AI tools can use it?**
Any MCP client: Claude Code, Claude Desktop, Cursor, Windsurf, VS Code and others. It is also listed in the official MCP Registry as `com.bouncelayer/mcp`.

**What does catch_all mean?**
The domain accepts mail for every address, so no check can prove a specific mailbox exists. Treat it as "maybe" and ask before sending.

**Can I use it without an AI agent?**
Yes. The same checks are available as a REST API, with SDKs for Node.js, Python and Go.

## Links

- Docs: https://bouncelayer.com/docs/mcp
- Source (MIT): https://github.com/BounceLayer/bouncelayer-mcp
- npm: https://www.npmjs.com/package/@bouncelayer/mcp
