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
Installation
- Clone this repository:
- Install dependencies using uv (recommended) or pip:
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:
Or create a .env
file in the project root:
Usage
Running the Server
Method 1: Direct Python execution
Method 2: Using FastMCP CLI
Method 3: Install for Claude Desktop
Using with uv
If you're using uv, you can also run the server with:
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:
Response:
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:
Response:
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
Contributing
- 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
This server cannot be installed
atdata-email-verification-mcp-server
Related MCP Servers
- -securityAlicense-qualityAccess MCP Server by CDataLast updated -MIT License
- -securityAlicense-qualityAmazon Athena MCP Server by CDataLast updated -MIT License
- MIT License
- -securityAlicense-qualityMicrosoft Exchange MCP Server by CDataLast updated -MIT License