MailboxValidator MCP Server is a simple Model Context Protocol (MCP) server implementation of the MailboxValidator API, used to return validation results for email addresses.
Purpose: This tool is mainly used for email validation, helping users determine whether an email address is likely reachable, thereby reducing bounce rates in marketing campaigns.
Main capabilities:
- Comprehensive email validation: checks the email address's syntax, DNS, MX servers, high risk, suppression list, etc., to determine whether the email is reachable.
- Disposable email check: checks whether the email address is from a temporary/disposable email provider.
- Free email check: checks whether the email address is from a free email provider.
Usage: This MCP server requires an API key. Users can register for a free API key and enjoy up to 300 queries per month. Setup also requires Node.js and npm, which can be downloaded from the Node.js website.
Steps to use with Claude Desktop:
- Download the repository locally.
- Run the following command inside the project folder to install dependencies and build the server.
- Make sure Claude Desktop is installed. If it is not yet installed, Windows and macOS users can download it here, and Linux users can follow this guide.
- Open claude_desktop_config.json. If this file does not exist yet, follow this guide to create it.
- Add the following content to claude_desktop_config.json: Note to replace the path of index.js with the actual path of the MailboxValidator MCP server on your local machine.
- Get the API key: log in to the dashboard and obtain it from there. Replace <YOUR_API_KEY> in the above content with the actual API key.
- After saving the changes, restart Claude Desktop, and you should see it in the "Search and Tools" menu.
In Claude Desktop's chat, simply enter a query about an email address. Some example queries:
- Is (email) a valid email address?
- Is (email) a fake email?
- Is (email) a free email?
In Claude Desktop, the model will automatically generate output based on the results returned by the MailboxValidator MCP server.
Environment variable: MAILBOXVALIDATOR_API_KEY
The free MailboxValidator API key allows up to 300 email queries per month. If you need more, you can sign up for a paid API plan.
Tool description:
validate_email Description: Validates the given email address. It helps users determine whether an email address is likely reachable by checking syntax, DNS, MX servers, disposable lists, and more. Parameters: email (str): The email address to validate. Returns: A JSON string containing validation data. The results include the following fields:
- Syntax: Checks whether the email address conforms to the format an email address should have.
- DNS & MX Server: Checks whether the domain's DNS specifies an MX server.
- Network & Connectivity: Attempts to connect to the MX server to ensure it is operational.
- Greylisting: Checks whether the MX server uses greylisting, which may cause emails sent to that address to bounce.
- Disposable List: Checks whether the email domain comes from a temporary or disposable email provider.
- High Risk & Suppressed List: Checks whether the email username appears high risk, or whether the email address is on a suppression list.
- Others: Checks the email's reputation score, etc. If the request fails, the tool will return an error message string.
check_disposable_email Description: Checks whether the given email address comes from a disposable email provider. Parameters: email (str): The email address to check. Returns: A JSON string containing disposable email data. The results include the following fields:
check_free_email Description: Checks whether the given email address comes from a free email provider. Returns: A JSON string containing free email data. The results include the following fields:
- Free Email List: Checks whether the email domain comes from a free email provider.
License: See LICENSE file.
Applicable scenarios: Suitable for scenarios where email addresses need to be validated in marketing campaigns and bounce rates need to be reduced, especially when integrating with MCP-supporting clients such as Claude Desktop.
Limitations:
- Requires an API key; the free key allows up to 300 queries per month.
- Requires a Node.js and npm environment.
- The current material mainly describes the integration method with Claude Desktop; support for other clients is not yet provided.