atdata-email-verification-mcp-server
This server provides email verification services using AtData's SafeToSend API to validate email addresses and filter out invalid and high-risk ones, helping improve email campaign performance.
Core Features:
Single email verification: Check individual email addresses for validity, deliverability, risk level, and detailed verification status
Batch email verification: Process multiple emails simultaneously with detailed results for each address and summary statistics (total count, success rate, failures)
Risk level analysis: Evaluate the risk associated with each email address (low, medium, high)
Deliverability assessment: Determine whether an email can actually receive messages
Technical Capabilities:
Flexible API key management: Supports environment variables (ATDATA_API_KEY) or direct parameter input
Comprehensive error handling: Manages missing API keys, invalid formats, authentication errors, bad requests, rate limiting, and network issues
Multiple deployment options: Can be run via Python execution, FastMCP CLI, uv package manager, or installed for Claude Desktop
Benefits: Improves email campaign metrics by achieving higher open rates, clicks, and conversions through identification and filtering of invalid or risky email addresses.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@atdata-email-verification-mcp-server verify if john.doe@company.com is a valid email address"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
AtData SafeToSend MCP Server
A Model Context Protocol (MCP) server that provides email verification services using AtData's SafeToSend API. This server allows you to verify email addresses to filter out invalid and high-risk ones, resulting in higher open rates, clicks, and conversions.
https://docs.atdata.com/reference/safe-to-send
Features
Email Verification: Verify individual email addresses using AtData's SafeToSend API
Batch Verification: Verify multiple email addresses at once with summary statistics
Comprehensive Error Handling: Detailed error messages for different failure scenarios
Environment Variable Support: Secure API key management through environment variables
Rate Limiting Awareness: Proper handling of API rate limits
Related MCP server: email-verify
Installation
Clone this repository:
git clone <repository-url>
cd atdata-mcp-serverInstall dependencies using uv (recommended) or pip:
# Using uv
uv sync
# Using pip
uv pip install .Setup
Get AtData API Key
Sign up for an AtData account at https://atdata.com
Obtain your API key from the AtData dashboard
Set up your API key as an environment variable:
export ATDATA_API_KEY="your-api-key-here"Or create a .env file in the project root:
ATDATA_API_KEY=your-api-key-hereUsage
Running the Server
Method 1: Direct Python execution
python server.pyMethod 2: Using FastMCP CLI
fastmcp run server.pyMethod 3: Install for Claude Desktop
fastmcp install server.pyUsing with uv
If you're using uv, you can also run the server with:
{
"mcpServers": {
"atdata-email-verification-mcp-server": {
"command": "uv",
"args": ["run", "python", "server.py"],
"cwd": "/path/to/your/atdata-email-verification-mcp-server",
"env": {
"ATDATA_API_KEY": "your_api_key_here"
}
}
}
}Available Tools
1. verify_email
Verify a single email address.
Parameters:
email(string, required): The email address to verifyapi_key(string, optional): AtData API key (uses environment variable if not provided)
Example:
{
"email": "user@example.com",
"api_key": "your-api-key" # Optional if ATDATA_API_KEY is set
}Response:
{
"success": True,
"email": "user@example.com",
"verification_result": {
"email": "user@example.com",
"status": "valid",
"deliverable": True,
"risk_level": "low",
# Additional verification details from AtData API
}
}2. batch_verify_emails
Verify multiple email addresses in batch.
Parameters:
emails(array of strings, required): List of email addresses to verifyapi_key(string, optional): AtData API key (uses environment variable if not provided)
Example:
{
"emails": ["user1@example.com", "user2@domain.com", "invalid@email"],
"api_key": "your-api-key" # Optional if ATDATA_API_KEY is set
}Response:
{
"results": [
{
"success": True,
"email": "user1@example.com",
"verification_result": { /* verification details */ }
},
{
"success": True,
"email": "user2@domain.com",
"verification_result": { /* verification details */ }
},
{
"error": "Bad request. Please check the email format.",
"email": "invalid@email",
"status_code": 400
}
],
"summary": {
"total": 3,
"successful": 2,
"failed": 1,
"success_rate": 66.67
}
}Error Handling
The server provides comprehensive error handling for various scenarios:
Missing API Key: Returns error when no API key is provided
Authentication Errors: Handles invalid API keys (401 status)
Bad Requests: Handles invalid email formats (400 status)
Rate Limiting: Handles API rate limit exceeded (429 status)
Network Issues: Handles connection errors and timeouts
Unexpected Errors: Catches and reports any unexpected exceptions
API Documentation
This server is based on the AtData SafeToSend API. For more details about the underlying API, see:
Development
Project Structure
atdata-mcp-server/
├── src/
│ └── server.py # Main MCP server implementation
├── pyproject.toml # Project configuration and dependencies
├── uv.lock # Locked dependencies
└── README.md # This fileContributing
Fork the repository
Create a feature branch
Make your changes
Add tests if applicable
Submit a pull request
License
This project is licensed under the MIT License. See the LICENSE file for details.
Support
For issues related to:
This MCP Server: Open an issue in this repository
AtData API: Contact AtData support or check their documentation
FastMCP Framework: Check the FastMCP documentation
Available Tools
2 toolsbatch_verify_emailsA
Verify multiple email addresses using AtData's SafeToSend API.
This tool allows you to verify multiple email addresses in batch,
processing each one individually through the SafeToSend API.
Args:
emails: List of email addresses to verify
api_key: AtData API key (if not provided, will try to get from ATDATA_API_KEY env var)
Returns:
Dictionary containing:
- results: List of verification results for each email
- summary: Summary statistics of the batch verification
Inputs: emails (required), api_key.
verify_emailA
Verify an email address using AtData's SafeToSend API.
This tool verifies email addresses to filter out invalid and high-risk ones,
which results in higher open rates, clicks, and conversions.
Args:
email: The email address to verify
api_key: AtData API key (if not provided, will try to get from ATDATA_API_KEY env var)
Returns:
Dictionary containing the verification results including:
- email: The email address that was verified
- status: The verification status
- deliverable: Whether the email is deliverable
- risk_level: Risk assessment of the email
- additional verification details
Inputs: email (required), api_key.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
The two tools have clearly distinct purposes: verify_email handles single email verification, while batch_verify_emails processes multiple emails in batch. There is no overlap or ambiguity between them, as each serves a specific use case within the email verification domain.
Both tools follow a consistent verb_noun naming pattern (verify_email and batch_verify_emails) that clearly indicates their function. The naming is predictable and readable, with no deviations in style or convention.
With only 2 tools, the server feels under-scoped for a comprehensive email verification service. While the tools cover basic verification, there are likely missing operations such as checking verification status, managing API keys, or handling bulk results that would enhance completeness.
The toolset is severely incomplete for an email verification domain. It lacks essential operations like checking verification history, managing batch jobs, or providing domain-level insights. The current tools only offer basic verification without supporting common workflows or lifecycle management.
Maintenance
Related MCP Connectors
MCP server for NeverBounce — business email verification, credits and bulk jobs.
Cloudflare Workers MCP server: email-validator
Unofficial Emailable MCP — wraps the Emailable email verification API (emailable.com)
Related MCP Servers
- AlicenseAqualityCmaintenanceEmail validation MCP server using MailboxValidator API to determine validity of an email address.343 npm1MIT
- AlicenseAqualityDmaintenanceEnables real-time email verification via MCP tools, checking syntax, MX, disposable domains, and optional SMTP probe to determine deliverability with a VALID/RISKY/INVALID verdict.23 npmMIT
- AlicenseNot gradedqualityCmaintenanceMCP server for verifying B2B contact records via email syntax and DNS/MX checks, serving verified data with per-tenant isolation.Apache 2.0
- AlicenseNot gradedqualityDmaintenanceComprehensive email validation MCP server that checks syntax, MX records, disposable domains, role-based accounts, SPF/DKIM, typo suggestions, and risk scoring.MIT