Email verification MCP server for AI agents
Give your AI agent a way to check email addresses during a task. mailfloss hosts an email verification MCP server at https://api.mailfloss.com/mcp. Connect a compatible client using OAuth or an API key to verify an address, submit a batch and check results. Verification uses your account’s credits; some tools also change account settings.
The tools call the mailfloss v1 REST API with your credentials and account scope. They use the same credits, rate limits and error format.
What can your agent do?
- Verify one address or submit a batch for verification.
- Retrieve batch results and check remaining credits.
- Inspect existing integrations and manage supported settings when you permit it.
Connect
There are two ways to authenticate: sign in with OAuth, or paste an API key.
Sign in (OAuth)
Add the server with no credentials. Your client opens a browser, you sign in to the mailfloss dashboard, and you approve the connection.
claude mcp add --transport http mailfloss https://api.mailfloss.com/mcpIn Claude, use mailfloss in the connector directory. In ChatGPT, add https://api.mailfloss.com/mcp as a custom connector where available on your account. Check your client’s current connection options. Any MCP client that supports OAuth works the same way, as long as its redirect URI is one we accept: a loopback address (http://localhost, http://127.0.0.1 or http://[::1], any port) or the callback of a supported client. Other clients can use an API key.
The connection acts as you, with your dashboard role's access. Access tokens last one hour and refresh automatically. To disconnect an app, open Account Settings → Connected apps and click Disconnect. An MCP sign-in token works only on /mcp. To use OAuth with the REST API, follow Build an app.
API key
Authenticate with your API key as a Bearer token, exactly as for the REST API. Get the key from the mailfloss dashboard under Developers → API keys.
Claude Code
claude mcp add --transport http mailfloss https://api.mailfloss.com/mcp \
--header "Authorization: Bearer YOUR_API_KEY"Cursor: add to ~/.cursor/mcp.json (or the project's .cursor/mcp.json):
{
"mcpServers": {
"mailfloss": {
"url": "https://api.mailfloss.com/mcp",
"headers": { "Authorization": "Bearer YOUR_API_KEY" }
}
}
}Any client that supports MCP Streamable HTTP with custom headers works the same way. The key must be in the Authorization header. A key in the URL may appear to connect, but tool calls fail with 401. A request with no credential gets 401 Unauthorized. One JSON-RPC request per POST (no batching); each POST counts once against your API rate limit. The REST call made by a tool is not counted again.
Tools
Tool | REST call | Cost |
|---|---|---|
verify_email | GET /v1/verify | 1 credit per call |
start_batch_verification | POST /v1/batch-verify | 1 credit per email |
get_batch_status | GET /v1/batch-verify/{id}/status | free |
get_batch_results | GET /v1/batch-verify/{id}/results | free |
cancel_batch | POST /v1/batch-verify/{id}/cancel | changes the account (refunds unprocessed credits) |
get_organization | GET /v1/organization | free |
get_account | GET /v1/account | free |
list_integrations | GET /v1/integrations | free |
get_integration | GET /v1/integrations/{type} | free |
get_connection | GET /v1/integrations/{type}/connections/{id} | free |
update_settings | PATCH /v1/integrations/{type}/connections/{id} | changes the account |
disconnect_integration | DELETE /v1/integrations/{type}/connections/{id} | changes the account |
resync_integration | POST /v1/integrations/{type}/connections/{id}/sync | refreshes stored audiences |
test_integration | POST /v1/integrations/{type}/connections/{id}/test | free |
get_usage_report | GET /v1/reports/usage | free |
list_jobs | GET /v1/jobs | free |
No tool takes email-platform credentials. Connect a new platform in the mailfloss dashboard, or over REST with POST /v1/integrations/{type}/connections; the tools above then work with that connection.
Tools that spend credits or change the account say so in their description. Read-only tools carry readOnlyHint: true. test_integration carries readOnlyHint: false, because checking a connection can renew an expiring OAuth token. verify_email, start_batch_verification, cancel_batch, update_settings, disconnect_integration and resync_integration carry destructiveHint: true. These annotations are hints. Whether your client asks you to confirm a credit-spending or account-changing call depends on its own permission settings, so check them before you turn on auto-approval.
A tool's result is the REST response body. When the REST call fails, the tool returns an error result whose text is the v1 error envelope. Branch on error.code as you would with the REST API.
Example tasks
- “Check my remaining credits.”
- “Verify this address and explain the returned result.”
- “Check the results of this batch and show the undeliverable addresses.”
- “List my connected email platforms.”
Operations without an MCP tool
Keyword rules, webhooks, users, erasures, account updates, the activity timeline and single-job details (GET /v1/jobs/{id}) do not have MCP tools. Use the email verification API and its reference for those operations.