zerobounce

ZeroBounce MCP Server

Community zerobounce
Updated

ZeroBounce MCP for coding agents and AI developers

ZeroBounce MCP Server

npm versionLicense: MITMCPMCP Badge

Connect your AI assistant to your ZeroBounce account. The ZeroBounceModel Context Protocol server lets Claude, ChatGPT, Cursor,VS Code and any other MCP client validate and score email addresses, find emails and domains,clean lists in bulk, run inbox placement tests and manage Warmup.

The easiest way to use it is the hosted server at https://mcp.zerobounce.net/mcp. You signin with your ZeroBounce account, so there is nothing to install and no API key to copy. Thisrepository is the open-source version of the same tools: the@zerobounce/mcp package, which you runyourself with an API key (Run it yourself).

Features

  • Email validation: one address, up to 200 in one call, or whole CSV files in bulk
  • AI scoring: how likely an address is to engage, for one address or a bulk file
  • Email finder and domain search: a work email from a name and domain, or a domain's email format
  • Activity data: whether an address has been active recently
  • List Evaluator: a free quality estimate of a list before you validate it
  • Allow and block filters on your account
  • Amazon S3 and SFTP/FTP bulk jobs: validate, score and export files already in your storage
  • Inbox placement testing: whether a campaign lands in the inbox or in spam at each provider
  • Warmup: sending accounts, engagement rules, seeds, statistics and SPF/DKIM/DMARC checks
  • Credits and API usage for your account

Tools that spend credits or change your account say so in their description, and deletes aremarked destructive, so your assistant asks before calling them. See Tools.

Connect to the hosted server

Add https://mcp.zerobounce.net/mcp to your client as a remote (HTTP) MCP server. No API key orheader goes in the configuration: the first time the client connects, it opens ZeroBounce in yourbrowser to sign in. Cline's step-by-step file is llms-install.md.

Claude (claude.ai and the desktop app): Settings → Connectors → Add custom connector,with the URL https://mcp.zerobounce.net/mcp.

Claude Code:

claude mcp add --transport http zerobounce https://mcp.zerobounce.net/mcp

ChatGPT: add a custom connector (app) with the URL https://mcp.zerobounce.net/mcp and OAuthauthentication, where your plan allows custom connectors.

Cursor — import this repo as a marketplace (Customize → Add Marketplace,https://github.com/zerobounce/zerobounce-mcp), then install ZeroBounce. The pluginconnects to the hosted server ("type": "http") and adds skills, rules, agents, and commands.See docs/CURSOR_MARKETPLACE.md.

Or add the URL manually in ~/.cursor/mcp.json or .cursor/mcp.json in a project:

{
  "mcpServers": {
    "zerobounce": {
      "url": "https://mcp.zerobounce.net/mcp"
    }
  }
}

VS Code (.vscode/mcp.json):

{
  "servers": {
    "zerobounce": {
      "type": "http",
      "url": "https://mcp.zerobounce.net/mcp"
    }
  }
}

Cline (~/.cline/data/settings/cline_mcp_settings.json, shared by the IDE extension andthe CLI; CLINE_MCP_SETTINGS_PATH overrides it). In the IDE, Cline panel → MCP Servers →Configure → Configure MCP Servers opens the file your version uses. Older versions of theVS Code extension kept it in VS Code's storage instead, underCode/User/globalStorage/saoudrizwan.claude-dev/settings/ (seedocs/configuration-cline.md). Set "type": "streamableHttp": without it Cline usesthe legacy SSE transport, which this server does not serve. Leave the API key out. Cline doesnot open the browser on its own: after you save, the server's row under MCP Servers →Configure says it requires authentication. Click Authenticate there to sign in. In theCLI, run cline mcp and choose Authorize OAuth.

{
  "mcpServers": {
    "zerobounce": {
      "type": "streamableHttp",
      "url": "https://mcp.zerobounce.net/mcp",
      "disabled": false,
      "autoApprove": []
    }
  }
}

After sign-in, ask How many ZeroBounce credits do I have left? and thenValidate [email protected] (a sandbox address; it does not spend credits). Full steps are indocs/configuration-cline.md. Agents installing the server followllms-install.md.

Gemini CLI — install the extension from this repo; it connects to the hosted server andsigns you in with OAuth on first use. It also adds the GEMINI.md context (when tools spendcredits, confirming deletes) and the zerobounce skills:

gemini extensions install https://github.com/zerobounce/zerobounce-mcp

Then ask your assistant, for example:

How many ZeroBounce credits do I have left?
Validate [email protected]

Signing in and choosing permissions

The hosted server uses OAuth 2.1 with dynamic client registration, so clients set themselves upautomatically. When you connect, ZeroBounce shows a consent page where you:

  1. Sign in to your ZeroBounce account.
  2. Choose what the assistant may do. Reading your account (credit balance, usage, bulk filestatus and results, filters, inbox placement tests) is always granted. Each of these isoptional:
    • Spend credits: validate and score emails, look up activity data, find emails and domains.
    • Change account data (marked high risk): upload and delete bulk files, start S3/SFTP jobs,manage filters and inbox placement tests, and run batch validation.
    • Warmup: the Warmup tools, using your team's Warmup API key. Offered to Owners andAdmins once the team has generated a Warmup key.
  3. Pick the tools within those permissions, and the API region: Default, US or EU.Single-address calls use that region's API. Bulk files, the Inbox Placement Tester and Warmuphave no regional hosts and always use the global ones.

Your assistant only sees, and can only call, the tools you approved. To change them later, or toget tools added in a server update, disconnect and connect again. Account Owners, Admins and Devscan connect; team members without API access cannot.

Each connection is limited to 300 requests and 60 credit-spending tool calls per minute.

For AI agents, https://mcp.zerobounce.net/llms.txtdescribes how to connect and lists every tool.

Hosted or self-hosted?

Hosted (mcp.zerobounce.net) Self-hosted (@zerobounce/mcp)
Setup Add a URL, sign in Install Node.js 22+ and the npm package
Credentials OAuth sign-in; no key in your config Your API key (and Warmup key) in the config or environment
Permissions Chosen per connection on the consent page Everything the API key can do
Clients Any client that supports remote MCP servers (Claude, ChatGPT, Cursor, VS Code, ...) stdio clients, or your own HTTP deployment
Tools Same tool names, titles and annotations Same tool names, titles and annotations; argument names are camelCase (fileId, ipAddress) and bulk uploads take CSV text

Use the hosted server unless you need to run everything on your own machine or network, pin aspecific version, or use a client without remote MCP support.

Run it yourself

The npm package runs the same tools locally over stdio, or as your own HTTP server, with yourZeroBounce API key.

Quick start

Requires Node.js 22 or later (check with node --version).

  1. Install the MCP server globally

    npm install -g @zerobounce/mcp
    

    This installs the zerobounce-mcp command.

  2. Get your ZeroBounce API key from the ZeroBounce dashboard(Getting your API key).

  3. Add it to your MCP client (Cursor, VS Code, Claude Desktop, etc.):

    {
      "mcpServers": {
        "zerobounce": {
          "command": "zerobounce-mcp",
          "args": ["--api-key=YOUR_API_KEY"]
        }
      }
    }
    
  4. Start using it in your AI assistant:

    Validate the email address "[email protected]"
    

Getting your API key

Your ZeroBounce API key is available in the ZeroBounce dashboard:

  • Sign in to your ZeroBounce account
  • Navigate to the API / Developer or Integrations section
  • Create or copy an API key for this integration
  • Use different keys for development, staging, and production when possible

Note: Treat your API key like a password. Do not share it or commit it to version control.The hosted server needs no key: you sign in instead.

Over stdio the server also starts without a key: it lists its tools and prompts, so a client oran MCP directory can see what it offers, and every tool call answers "ZeroBounce API key isrequired" until you set ZEROBOUNCE_API_KEY or --api-key and restart it. A key that is setbut contains control or invisible characters is still refused at startup.

Warmup API key

Warmup is a separate ZeroBounce product with its own API key and its own host(https://warmup-api.zerobounce.net). The validation key above is not accepted there, sothe Warmup tools need a second key:

{
  "mcpServers": {
    "zerobounce": {
      "command": "zerobounce-mcp",
      "args": ["--api-key=YOUR_API_KEY", "--warmup-api-key=YOUR_WARMUP_API_KEY"]
    }
  }
}

ZEROBOUNCE_WARMUP_API_KEY works in place of the flag, the same way ZEROBOUNCE_API_KEYdoes, and the flag wins when both are set.

The Warmup key is optional. Leave it out and the 25 warmup_* tools are not advertisedat all, so a client never sees a tool that cannot work. Supply it and the server exposes 75tools instead of 50.

In HTTP mode the Warmup key is a per-request header, X-ZeroBounce-Warmup-Api-Key — seeYour own HTTP server.

--warmup-url (or ZEROBOUNCE_WARMUP_API_URL) points the Warmup client at a differenthost, which is how the test suite reaches a stub. There is no regional Warmup host:warmup-api-us and warmup-api-eu do not resolve, so only an explicit https:// URL isaccepted and shorthands such as us are refused.

MCP Client Configuration

Most MCP-compatible clients use the same basic configuration shape. A minimal example looks like:

{
  "mcpServers": {
    "zerobounce": {
      "command": "zerobounce-mcp",
      "args": ["--api-key=YOUR_API_KEY"]
    }
  }
}

Alternatively, supply the key through the ZEROBOUNCE_API_KEY environment variable instead of the flag:

{
  "mcpServers": {
    "zerobounce": {
      "command": "zerobounce-mcp",
      "env": { "ZEROBOUNCE_API_KEY": "YOUR_API_KEY" }
    }
  }
}

The --api-key flag takes precedence when both are set.

Command-line options

zerobounce-mcp --help (-h) and --version (-v) print and exit; neither needs a key. The keycan also be given as -k <key> (same as --api-key). An unknown option or a stray argument isrefused with Unknown argument: ... and the server does not start, so a misspelt --api-ky isnever silently ignored.

Referencing an existing environment variable

Some clients let you reference a variable that already exists in their own environment,rather than writing the key into the config file:

{
  "mcpServers": {
    "zerobounce": {
      "command": "zerobounce-mcp",
      "env": { "ZEROBOUNCE_API_KEY": "${ZEROBOUNCE_API_KEY}" }
    }
  }
}

⚠️ This only works if the variable is present in the environment of the clientprocess itself — not merely in your shell. A desktop client started from a macOSDock icon, Spotlight, or a Windows Start-menu shortcut does not read ~/.zshrc,~/.bashrc, or ~/.profile, so an export placed there will be invisible to it.

When the variable is missing, some clients pass the unresolved text${ZEROBOUNCE_API_KEY} through as the key. That value is non-empty, so this serveraccepts it and starts normally: the client reports the server as connected and listsevery tool, but each API call fails with api_key is invalid. The symptom looks likean expired key or a ZeroBounce outage, while the actual cause is that the referencewas never expanded.

To confirm, check whether the variable is really visible to GUI applications:

launchctl getenv ZEROBOUNCE_API_KEY   # macOS; empty output means it is not set

On macOS you can publish it to the GUI session, expanding the value through aninteractive shell so it does not silently resolve to an empty string:

zsh -ic 'launchctl setenv ZEROBOUNCE_API_KEY "$ZEROBOUNCE_API_KEY"'

Restart the client afterwards — it only inherits the variable if it is launched afterthe change. Note that launchctl setenv does not survive a reboot; make it permanentwith a login LaunchAgent, or avoid the problem entirely by writing the key literallyinto the config as shown above.

Select your client below for detailed, client-specific setup steps:

  • Cursor plugin – Hosted MCP (type: http) plus skills, rules, agents, and commands (Customize → Add Marketplace, then install ZeroBounce)
  • Cursor – Manual MCP config, including self-hosted @zerobounce/mcp
  • Cline – Hosted server in cline_mcp_settings.json with "type": "streamableHttp", or local npx @zerobounce/mcp
  • VS Code – Configure ZeroBounce MCP for Visual Studio Code
  • Other / generic clients – Configure ZeroBounce MCP for Claude Desktop, Continue, Zed, and others

Regional API hosts

ZeroBounce serves the main API from three hosts. Pick one with --url, or withthe ZEROBOUNCE_API_URL environment variable:

zerobounce-mcp --url us      # https://api-us.zerobounce.net/v2
zerobounce-mcp --url eu      # https://api-eu.zerobounce.net/v2
zerobounce-mcp               # https://api.zerobounce.net/v2 (default)

An explicit https:// URL is also accepted, which is how you point the serverat a test double. A non-https or malformed URL is refused outright rather thanquietly replaced with production, so the server never sends your key to a hostyou did not choose.

This setting applies to the main API only. There is no regional bulk orwarmup host, so the bulk file jobs, the List Evaluator, the Inbox PlacementTester and the Warmup API are unaffected by it.

In HTTP mode the host is fixed when the server starts and cannot be setper request: the API key arrives from the caller, so a request that could alsochoose the host could point that key at a server of its own choosing.

Your own HTTP server

The server can also run as a stateless Streamable HTTPendpoint, for hosting it on your own infrastructure or a remote MCP platform. (To useZeroBounce's own hosted server instead, see Connect to the hosted server.)

npm run build
PORT=3000 node dist/index.js --http
  • MCP endpoint: POST /mcp. A browser GET returns 405 Method Not Allowed, which is expected.
  • Health check: GET /health
  • Enable it with --http or MCP_TRANSPORT=http. The port comes from --port or PORT (default 3000).
  • The server binds to 127.0.0.1 by default, so it is only reachable from the same machine. In acontainer or on a hosting platform, terminate HTTPS at a trusted proxy, setMCP_TLS_TERMINATED=true, and bind all interfaces with --host 0.0.0.0 or MCP_HOST=0.0.0.0.Keep the connection between the proxy and this HTTP listener on a trusted private network.
  • The Host header must name the server: the loopback names for a loopback bind, the bindaddress itself, or a name given with --allowed-host <name> (repeatable) orMCP_ALLOWED_HOSTS (comma-separated). A cross-origin Origin header is refused with 403.This blocks DNS-rebinding attacks from web pages. On a wildcard bind (0.0.0.0) set your publichost name this way; without it the server accepts any Host and logs a warning.
  • A repeated X-ZeroBounce-Api-Key, X-ZeroBounce-Warmup-Api-Key or Authorization header, or anX-ZeroBounce-Api-Key that differs from the bearer token, is refused with 400.

In HTTP mode each caller supplies their own ZeroBounce API key on every request, either asX-ZeroBounce-Api-Key: <key> or Authorization: Bearer <key>. ZEROBOUNCE_API_KEY and--api-key are ignored, so a hosted deployment never spends a shared key's credits. A requestwithout a key is rejected with 401.

A caller who also wants the Warmup tools adds X-ZeroBounce-Warmup-Api-Key: <warmup key>.That key is a credential in its own right, so it travels per request exactly like thevalidation key: ZEROBOUNCE_WARMUP_API_KEY and --warmup-api-key are ignored in HTTP mode,and a key is never carried over from one request to the next. A request that omits it simplygets a server with no warmup_* tools; the validation tools still work.

{
  "mcpServers": {
    "zerobounce": {
      "url": "https://your-host.example.com/mcp",
      "headers": {
        "X-ZeroBounce-Api-Key": "your_api_key_here",
        "X-ZeroBounce-Warmup-Api-Key": "your_warmup_api_key_here"
      }
    }
  }
}
Deploying from GitHub

Most hosted MCP platforms that build from a GitHub repository need these settings:

Setting Value
Repository / Branch zerobounce/zerobounce-mcp / main
Runtime / Preset Node.js (MCP TypeScript SDK)
Repository Root Directory (empty)
Build Command npm ci && npm run build
Start Command node dist/index.js --http --host 0.0.0.0
Port 3000
Environment Variables MCP_TLS_TERMINATED=true (required; set PORT only if you change the port)

The server refuses to bind anything but loopback (127.0.0.1, ::1 or localhost) unlessMCP_TLS_TERMINATED=true is set, and exits with Non-loopback HTTP binding requires MCP_TLS_TERMINATED=true and a trusted TLS-terminating proxy. Set it only when the platformterminates HTTPS in front of the server, because every request carries a caller's API key.

Tools

The ZeroBounce MCP server provides the following tools, organized by category.

Tool names, titles and annotations match the hosted ZeroBounce MCP server(mcp.zerobounce.net), so a model sees the same tools whichever server it is connected to.Every tool carries a title and readOnlyHint / destructiveHint / idempotentHint /openWorldHint annotations, and its description says when to use it and whether it spendscredits (CREDITS:) or changes the account (WRITE:). Tools that delete or overwrite data(bulk file deletes, delete_filter, delete_inbox_placement_test, and the warmup updatesand deletes) are marked destructiveHint: true, so clients ask before calling them.

Two endpoints are deliberately not exposed, as on the hosted server: setting the InboxPlacement webhook (it applies to the whole API key and is set in the ZeroBounce dashboard),and the Warmup API's SMTP configuration test (it takes the mailbox's SMTP password, whichwould pass through the conversation).

Validation Tools

validate (alias validate_email)

Validate a single email address. Returns status, sub-status and hygiene fields. Optional:ipAddress, timeout (3-60 seconds), activityData, verifyPlus, domainInfo (addsdomain_website_exists and the WHOIS domain_registrant_company_name) and usePost.

validate_batch

Validate multiple email addresses in batch. More efficient for validating multiple emails at once.

Account Tools

get_credits (alias get_account_credits)

Get the number of credits remaining in your ZeroBounce account.

get_api_usage

Get API usage statistics for a date range. Shows validation counts by status and sub-status.

Bulk Validation File Tools

send_file

Send a CSV file for bulk email validation. Takes fileContent and fileName, plus theoptional returnUrl, hasHeaderRow (sent as false when left out), removeDuplicate,allowPhase2 and the 0-based column indexes emailAddressColumn, firstNameColumn,lastNameColumn, genderColumn and ipAddressColumn. A returnUrl, when given, mustbe an HTTPS callback URL on a public host (port 443, no credentials, no private or special-purposeaddress); the server refuses anything else before the request. Returns a file ID for tracking.

file_status

Get the status of a bulk validation file upload.

get_file

Get the results of a completed bulk validation file. Optional downloadType (phase_1,phase_2 or combined) and activityData. scoring_get_file takes downloadType too.

delete_file

Delete a bulk validation file from your account.

AI Scoring Tools

scoring_send_file

Send a CSV file for bulk AI email scoring. Takes fileContent and fileName, plus theoptional returnUrl, hasHeaderRow (sent as false when left out), removeDuplicate andthe 0-based emailAddressColumn. returnUrl follows the same rules as forsend_file: HTTPS, port 443, public host, no credentials. Returns a file ID for tracking.

scoring_file_status

Get the status of a bulk AI scoring file upload.

scoring_get_file

Get the results of a completed bulk AI scoring file.

scoring_delete_file

Delete a bulk AI scoring file from your account.

score_email

Score a single email address in real time (/v2/scoring). Returns the address and itsnumeric score. Set usePost to send the key and address form-encoded over POST insteadof in the query string.

Email Finder Tools

find_email_format

Find an email address based on domain, name, and/or company.

send_email_finder_file

Send a CSV file for bulk email finding. Takes fileContent and fileName, plus the 0-basedcolumn indexes domainColumn, firstNameColumn, middleNameColumn, lastNameColumn andfullNameColumn, and hasHeaderRow (sent as false when left out). firstNameColumn orfullNameColumn is required: the API needs a name to work from. The endpoint takes nocallback URL. Returns a file ID for tracking.

email_finder_file_status

Get the status of a bulk email finder file upload.

email_finder_get_file

Get the results of a completed bulk email finder file.

email_finder_delete_file

Delete a bulk email finder file from your account.

Domain Search Tools

find_domain

Search for email addresses in a domain.

send_domain_search_file

Send a CSV file for bulk domain search. Takes fileContent and fileName, plus the 0-baseddomainColumn and hasHeaderRow (sent as false when left out). The endpoint takes nocallback URL. Returns a file ID for tracking.

domain_search_file_status

Get the status of a bulk domain search file upload.

domain_search_get_file

Get the results of a completed bulk domain search file.

domain_search_delete_file

Delete a bulk domain search file from your account.

Activity Data Tools

get_activity

Get activity data for an email address to see if it has been active recently.

Warmup Tools

These 25 tools cover every documented operation of the Warmup APIexcept test_smtp_configuration, which takes an SMTP password.They are only advertised when a Warmup API key is configured — seeWarmup API key. They never use the validation key.

Sending accounts

warmup_list_sending_accounts

List every sending account belonging to the Warmup key's team.

warmup_get_sending_account

Get one sending account by fromAddress.

warmup_add_sending_account

Add a from-address to warmup. onboardingModel: "self_managed" runs your own mailbox andrequires engagementRuleId (0-4). "zb_managed" has ZeroBounce provision the mailbox andtakes emailContent and managedSending instead; it rejects engagementRuleId.

warmup_update_sending_account

Change an account's engagementRuleId (0-4), statusId (0-8; 4 Paused, 5 Disabled) andautoEnable flag. autoEnable: true is accepted only for an account that is not active.

warmup_delete_sending_account

Remove a sending account. Destructive: the account and its warmup history go with it.

warmup_change_from_address

Move an account and its history from oldFromAddress to newFromAddress. Despite the/smtp-credentials path it uses, no SMTP credentials are stored.

warmup_list_from_addresses

List the registered from-addresses. Optional searchFrom (letters, digits and . - _ @ +only), offset and limit.

Engagement rules

warmup_get_engagement_rules

The rule catalogue: -1 Custom, 0 Default, 1 Slow Pace, 2 Repair, 3 Boost, 4 Protect.

warmup_set_engagement_rule

Set a standard rule (ruleId 0-4) on an address (cFrom).

warmup_get_custom_engagement

An address's custom rule, including can_update and the remaining_seconds of the cooldown.

warmup_create_custom_engagement

Create a custom rule from replyPct (5-45), importantPct (5-40) and clickPct (0-70, andat most importantPct x 1.75). Starts a 7-day cooldown before the rule can be updated.

warmup_update_custom_engagement

Update a custom rule. During the 7-day cooldown the API answers with HTTP 429.

warmup_delete_custom_engagement

Delete a custom rule and fall back to a standard rule (engagementRuleId 1-4).

Seeds, progress and statistics

warmup_get_seeds

The seed list.

warmup_download_seeds

The seed list as CSV text (columns seed,provider), returned as-is rather than wrappedin JSON.

warmup_get_seed_count

The number of seeds.

warmup_get_progress_today

Today's warmup progress.

warmup_get_sent_today

Messages sent today.

warmup_get_emails_per_day

The current daily sending volume.

warmup_get_statistics

Statistics for a fromAddress. An address with no history returns zeros.

warmup_get_statistics_per_day

Daily statistics between startDate and endDate (YYYY-MM-DD), inclusive.

warmup_get_statistics_detailed

Detailed statistics for an address (cFrom).

warmup_download_statistics

An address's statistics as CSV text, returned as-is rather than wrapped in JSON.

warmup_get_from_address_statistics

Statistics for one from-address.

Diagnostics

warmup_check_domain_dmarc

SPF, DKIM and DMARC status of a from-address's domain, with an optional dkimSelector.

fromAddress must be a full email address such as [email protected]. The live APIanswers Please provide a valid email address for a bare domain, although the public docsdescribe a domain. A bare domain is rejected before the call is made.

Inbox Placement Tester Tools

The Inbox Placement Tester (bulkapi.zerobounce.net/api/ipt) reports where a campaignactually lands at each mailbox provider: inbox, spam, or missing. You create a test,send your campaign to the seed addresses it returns, then read the results back.

This API authenticates with an Authorization: Bearer header rather than an api_keyparameter, so the key never appears in a request URL. It uses the same ZeroBounce APIkey as the rest of the server; no extra configuration is needed.

get_inbox_placement_providers

List the seed providers and their seed addresses available for new tests.

get_inbox_placement_test_types

List the supported test types and which one is the default.

create_inbox_placement_test

Start a test. Takes name (unique, at most 64 characters) and optionally testType(1 = Email, which also requires senderEmail; 2 = Unique ID; 3 = Auto Alias), the seedsto use (providerIds, seedIds, or providers as [{ id, maxSeeds }] to cap seedsper provider). Results also go to the API key's saved webhook, which is set in theZeroBounce dashboard.

get_inbox_placement_test

Get one test and its placement results by testId.

list_inbox_placement_tests

List tests, newest first. Filters: status (running or finished), createdAfterand createdBefore (ISO 8601), page, and pageSize (1 to 100).

delete_inbox_placement_test

Delete a finished test. A running test cannot be deleted.

get_inbox_placement_webhook

Get the webhook URL finished results are posted to for this API key. No tool changes it:set, change or remove it in the ZeroBounce dashboard.

List Evaluator Tools

send_list_evaluator_file

Upload a CSV to the List Evaluator and get back a file_id.

get_list_evaluator_result

Fetch the evaluation for a file_id.

send_evaluated_file

Submit a finished evaluation for bulk validation. Takes the List Evaluator'sfileId -- despite what the public docs show, this endpoint is not a fileupload, and an upload is rejected with "file_id: This field is required".

S3 and SFTP/FTP Bulk Tools

These run a bulk job over a file that already sits in your storage, so nothingis uploaded through the MCP server. The bucket, server, path and protocol allcome from your ZeroBounce account settings.

Every job tool takes the same arguments:

Argument Required Notes
fileName yes Object key (S3) or path on the server (SFTP/FTP)
returnUrl yes HTTPS callback notified when the job finishes. The API refuses a job without one. Only use a URL you control: it receives your bulk results. Refused: credentials in the URL, a port other than 443, whitespace or control characters, and loopback, private, link-local, metadata or other special-purpose addresses (IPv6 forms that embed an IPv4 address included). Host names are not resolved: ZeroBounce's servers make the callback
hasHeaderRow no Defaults to false
removeDuplicates no Omitted when not given
list_s3files

List the files in your S3 bucket. Optional bucket and search filters.

validate_s3file / score_s3file / email_finder_s3file / domain_search_s3file

Run bulk validation, AI scoring, email finder or domain search over an object inyour S3 bucket.

validate_sftpfile / score_sftpfile / email_finder_sftpfile / domain_search_sftpfile

The same four jobs over a file on your SFTP/FTP server.

export_s3file

Export a completed bulk job to S3. Takes fileId and an optionalexportBucket; without a bucket the API uses the output bucket configured onyour account.

export_sftpfile

Export a completed bulk job back to your SFTP/FTP server. Takes fileId and anoptional exportPath -- a path, not a bucket; without it the API uses theexport path configured on your account.

Filter Tools

add_filter

Add a custom allow or block list filter. Takes rule, target, and value.

list_filters

List the custom filters on the account. Uses GET by default; set usePost to send POST.

delete_filter

Delete a custom filter. Takes the same rule, target, and value that created it.

Tool Availability

On the hosted server, a connection lists the tools you approved on the consent page. When you runthe package yourself:

The ZeroBounce SDK (@zerobounce/zero-bounce-sdk 5.0.1) is bundled into dist/index.js, soevery tool is available in every install and nothing depends on an SDK on your machine. Thetool list changes only with the keys you supply: the 25 Warmup tools need a Warmup API key(see above), so a server started without one exposes 50 tools. As a safety net the server stillhides a tool whose SDK method is missing from the bundle, rather than advertise one it cannotrun. Call the MCP tools/list method to see exactly what your server exposes.

Resources

The server provides the following resources:

zerobounce://config

Current ZeroBounce API configuration: the main API base URL and whether a validation key isconfigured, plus the Warmup base URL and whether a Warmup key is configured. Keys themselvesare never included.

Prompts

Ready-made prompts your client can offer (MCP prompts/list). Each one only writes the request;the tool calls it leads to work as usual.

Prompt Arguments What it asks for
check_email_before_sending email Validate one address and say whether it is safe to send to
clean_email_list emails Check credits, validate the list (batch or bulk file) and group it into keep, review and remove
find_work_email first_name, last_name (optional), company Find someone's work email from their name and company or domain. This spends credits
inbox_placement_test sender_email Set up an inbox placement test, confirming before it uses a test, and list the seed addresses

Usage Examples

Validation examples use sandbox addresses, which do not spend credits: [email protected],[email protected], [email protected], [email protected]. Finding an email,checking activity, scoring, and bulk jobs do spend credits. Run those only on addresses, names,and domains you meant to check.

Basic Email Validation

Validate a single email:

Validate the email address "[email protected]"

Validate with IP address for better accuracy:

Validate "[email protected]" from IP address "192.168.1.1"

Validate multiple emails in batch:

Check if these emails are valid: ["[email protected]", "[email protected]", "[email protected]"]

Account Management

Check remaining credits:

How many credits do I have left in my ZeroBounce account?

Get usage statistics:

Show me my ZeroBounce API usage for January 2024

Show usage from specific dates:

Get my API usage from 2024-01-01 to 2024-01-31

AI Email Scoring

Score emails via CSV upload:

Use AI to score the quality and deliverability of these email addresses and return the results as a CSV: [paste CSV content]

Email Finding

These calls spend credits.

Find an email by name and domain:

Find the email for John Doe at example.com

Find email by name and company:

Find the email for John Doe at Example Corp (example.com)

Domain Search

Search for emails in a domain:

Search for all email addresses at example.com

Search with filters:

Find emails for people named John at example.com

Activity Data

This call spends one credit.

Check email activity:

Check if [email protected] has been active recently

Bulk Operations

Upload a file for bulk validation:

Bulk validate the emails in this CSV file: [paste CSV content]

Check bulk validation status:

Check the status of my bulk validation file abc123

Get bulk validation results:

Get the results for my completed bulk validation file abc123

Status Values

validate_email and validate_batch return one of these status values, as listed in theZeroBounce status codes reference:

  • valid: Email address is valid and safe to email
  • invalid: Email address is invalid; remove it from your list
  • catch-all: The domain accepts mail for any address, so the mailbox cannot be confirmed
  • spamtrap: Email address is believed to be a spam trap
  • abuse: Email address belongs to someone known to report mail as spam
  • do_not_mail: Email address you should avoid mailing (role-based, disposable, toxic, and so on)
  • unknown: The address could not be validated, for example because the mail server is offline

Sub-Status Values

sub_status explains a result further. It is empty when there is nothing to add, and not everyinvalid or unknown result has one.

status sub_status values
valid alias_address, leading_period_removed, alternate, gold, accept_all, role_based_accept_all, ai_agent_mailbox, allowed
invalid does_not_accept_mail, failed_syntax_check, possible_typo, mailbox_not_found, no_dns_entries, mailbox_quota_exceeded, unroutable_ip_address
catch-all ai_agent_mailbox
do_not_mail role_based, disposable, role_based_catch_all, mx_forward, global_suppression, possible_trap, toxic, blocked
unknown antispam_system, exception_occurred, failed_smtp_connection, forcible_disconnect, greylisted, mail_server_did_not_respond, mail_server_temporary_error, timeout_exceeded

allowed and blocked come from your own custom filters: an address thatmatches an allow rule is returned as valid / allowed, and one that matches a block ruleas do_not_mail / blocked.

Security Best Practices

With the hosted server no API key leaves your ZeroBounce account. Grant only the permissions theassistant needs, and disconnect it (or connect again with fewer tools) when you no longer use it.

Protecting Your API Key (self-hosted)

Your ZeroBounce API key is sensitive and should be protected:

  1. Never Commit API Keys: Add configuration files with API keys to .gitignore

    mcp.json
    .env
    
  2. Use Separate Keys: Use different API keys for development, staging, and production

  3. Rotate Keys Regularly: Periodically rotate your API keys from the ZeroBounce dashboard

  4. Monitor Usage: Regularly check your API usage to detect unauthorized access

Development

For local development on this MCP server:

  • Install dependencies:

    npm install
    
  • Build the project:

    npm run build
    
  • Install the CLI globally (optional, for local testing):

    npm install -g .
    

    After this, you can use the zerobounce-mcp command in your MCP client config, for example:

    {
      "mcpServers": {
        "zerobounce": {
          "command": "zerobounce-mcp",
          "args": ["--api-key=YOUR_API_KEY"]
        }
      }
    }
    
  • Run the tests:

    npm run typecheck && npm run build && npm test
    

    npm test runs test-http.js, test/client-key.test.ts, test/cli.test.ts andtest/redaction.test.ts. They runoffline against a fake API, need no API key, and check routing, auth, every tool, per-requestAPI key isolation, that no object holds the key in an inspectable property, and thecommand-line flags.

    The stdio test against the live ZeroBounce API is separate and spends credits. Run it with areal key (a placeholder key is blocked by Cloudflare rather than rejected by the API):

    npm run test:live -- --api-key="$ZEROBOUNCE_API_KEY"
    

Error Handling

The server handles errors gracefully and returns descriptive error messages:

Common Errors

Error Cause Solution
Missing API key API key not provided Add the --api-key argument or set ZEROBOUNCE_API_KEY
Invalid API key API key is incorrect or expired Verify your API key in the ZeroBounce dashboard
api_key is invalid on every call, though the server connects Config used ${ZEROBOUNCE_API_KEY} but the client could not expand it, so the literal placeholder was sent as the key See Referencing an existing environment variable — publish the variable to the client's environment, or write the key literally into the config
Network errors Cannot connect to ZeroBounce API Check your internet connection and firewall settings
Rate limiting Too many requests Wait and retry, or upgrade your ZeroBounce plan
Invalid email format Email address format is invalid Check the email address format
Invalid date format Date not in YYYY-MM-DD format Use the correct date format (e.g., "2024-01-31")
Insufficient credits Not enough credits in account Add credits to your ZeroBounce account
File not found Bulk validation file ID is invalid Verify the file ID from the upload response

Error Response Format

A tool that fails returns an ordinary MCP tool result with isError set, and the message astext prefixed with Error: :

{
  "content": [{ "type": "text", "text": "Error: api_key is invalid" }],
  "isError": true
}

Messages longer than 1000 characters are truncated, and an HTML error page from the API isreported as a one-line summary instead of the page itself.

In HTTP mode, a request rejected before it reaches a tool (a missing API key, or a method otherthan POST) gets a JSON-RPC error with the matching HTTP status (401, 405):

{
  "jsonrpc": "2.0",
  "error": { "code": -32000, "message": "Method not allowed." },
  "id": null
}

License

MIT. See LICENSE.

Made with ❤️ for the MCP community

MCP Server · Populars

MCP Server · New

    PanStudio

    ZulipChat MCP Server

    ZulipChat MCP Server - A Model Context Protocol server that bridges AI agents with Zulip Chat. Built with FastMCP for lightning-fast performance, featuring comprehensive chat management and intelligent summarization. Transform your Zulip workspace into an AI-powered collaboration hub!

    Community PanStudio
    United-Compute

    GPU Price Tracker: open data

    This project tracks the market prices and performance metrics of various GPUs.

    Community United-Compute
    Graphify-Labs

    graphify

    Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local deterministic AST parsing, every edge explained, no vector store.

    Community Graphify-Labs
    superdesigndev

    Treg (OpenRouter for Tools)

    OpenRouter for agent tools. Join community here: https://discord.gg/6mQYYfFMAn

    Community superdesigndev