Mailboxlayer MCP server for AI agents

Live

API KEY

EMAIL VALIDATION

Developer Tools

Mailboxlayer gives your agent email address validation in your Mailboxlayer account: check syntax, typos, MX records, and SMTP mailbox status for one address or many, and flag catch-all, role-based, disposable, and free-provider addresses.

  • Per-user credentials: each call uses the actual user's API key, never a shared bot.
  • Encrypted per-tenant vault: AES-256, resolved at request time, never in LLM context.
  • Scoped before every call: pre-call scope check, 90-day SIEM-exportable audit chain.
Mailboxlayer
agent · Acme Q3
Run
Is sam@mailnator.io a real mailbox?
S
mailboxlayer_email_check
480ms
Email validation agent
The format is valid, but the domain looks like a disposable provider and the SMTP check did not confirm the mailbox, so the score is low.
Sources: Mailboxlayer check, 1 address
mailboxlayer
1 address
18:29
Message Claude...

Tools your email validation agent reaches for on Mailboxlayer, scoped per user.

CALL ANY TOOL
2 tools for email validation in Mailboxlayer: verify one address or a list of addresses and read format, MX, SMTP, catch-all, role, disposable, free, and score results.
mailboxlayer_email_bulk_check
Check email bulk
Verify several email addresses in one call, with the same checks as Verify Email Address. Needs a Mailboxlayer plan that includes bulk checks. Returns an array with one result per address. Use this for lists. Use Verify Email Address for one.
Parameters
Name
Type
Required
Description
email
string
Required
Email addresses to verify, comma-separated. Example: support@apilayer.com,sales@apilayer.com.
smtp
integer
Optional
1 (default) to run the SMTP mailbox check, 0 to skip it for a faster answer. Example: 0. One of: `0`, `1`.
mailboxlayer_email_check
Check email
Build your Agent
Same auth pattern across LangChain, OpenAI, Anthropic, and Google ADK.
Python · LlamaIndex
import { ScalekitClient } from "@scalekit-sdk/node";
import { createReactAgent } from "@langchain/langgraph/prebuilt";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

// Mailboxlayer tools scoped to this user
const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["mailboxlayer"], toolNames: [
    "mailboxlayer_email_check",
    "mailboxlayer_email_bulk_check"] },
  pageSize: 100,
});

const agent = createReactAgent({ llm, tools });
await agent.invoke({ messages: [{ role: "user", content: "Verify this list of addresses and tell me which are disposable or have no MX record" }] });
import OpenAI from "openai";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const openai = new OpenAI();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["mailboxlayer"] }, pageSize: 100,
});

const res = await openai.chat.completions.create({
  model: "gpt-5",
  messages: [{ role: "user", content: "Verify this list of addresses and tell me which are disposable or have no MX record" }],
  tools,
});

// Execute the tool call with the user's vaulted Mailboxlayer API key
await sk.tools.executeTool(res.choices[0].message.tool_calls[0], "user_123");
import Anthropic from "@anthropic-ai/sdk";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const anthropic = new Anthropic();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["mailboxlayer"] }, pageSize: 100,
});

const msg = await anthropic.messages.create({
  model: "claude-sonnet-5",
  max_tokens: 1024,
  messages: [{ role: "user", content: "Verify this list of addresses and tell me which are disposable or have no MX record" }],
  tools,
});

// Tool call runs with the user's vaulted Mailboxlayer API key
await sk.tools.executeTool(msg.content, "user_123");
import { Agent } from "@google/adk/agents";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["mailboxlayer"] }, pageSize: 100,
});

const agent = new Agent({
  name: "email_validation_agent",
  model: "gemini-2.5-pro",
  instruction: "Mailboxlayer tools scoped to this user",
  tools,
});

await agent.run("Verify this list of addresses and tell me which are disposable or have no MX record");
Try these prompts
Copy any prompt into your agent. Each maps directly to a Mailboxlayer tool. Click to copy, paste into your agent, done.
Check one address
Copy the prompt
Copied
Verify sam@example.com.
Copy the prompt
Copied
Does jane@gmial.com have a typo, and what is the suggested fix?
Copy the prompt
Copied
Is info@acme.io a role-based address?
Check a list
Copy the prompt
Copied
Verify these 25 addresses in one call.
Copy the prompt
Copied
Which of these addresses are disposable?
Copy the prompt
Copied
Which of these addresses have an MX record?
Deliverability signals
Copy the prompt
Copied
Show the score for sam@example.com.
Copy the prompt
Copied
Is this domain catch-all?
Copy the prompt
Copied
Is this address from a free provider?
SEE HOW AUTH WORKS
Each user connects their own Mailboxlayer API key once, and Scalekit sends it with every call. Keys stay vaulted, every call is scope checked, and every action is logged.
1
Authorize
Your user connects
Mailboxlayer
once. We tie it to their identity and the access they approved, with no shared bot account and no org-wide access
Who:
user ‘A’
when:
Once per user
access:
Limited to user
2
Store
Their
Mailboxlayer
credential lives in a vault scoped to them. User A's data is never reachable by an agent acting for user B, even on the same connection
vault:
encrypted
scope:
per-user
tenants:
isolated
3
Resolve
When your agent calls a
Mailboxlayer
tool, we fetch the right credential server-side. It never touches your agent, never appears in the LLM context, never shows up in your logs
speed:
~40ms
check:
before every call
seen by:
nobody
4
Audit
Every
Mailboxlayer
tool call is logged: who triggered it, which tool ran, what came back. 90 days of history, tied to the user who authorized it
history:
90 days
export:
SIEM-ready
logged:
every call
Test other agents
See the same per-user auth pattern across other developer tools connectors.
GTM and RevOps Teams
Outbound prospecting agent
Searches Apollo for prospects matching your ICP, scores and ranks them, drafts personalized outreach in Gmail, and logs every send to Google Sheets. Mail goes out as the rep, not from a shared inbox.
GTM and RevOps Teams
CRM AI agent
Reads the Granola transcript after every call, extracts next steps and updates the HubSpot record, drafts the follow-up in Gmail, and confirms in Slack, all on the rep's own delegated OAuth.
Test other agents
See the same per-user auth pattern across other developer tools connectors.
SALES
Outbound prospecting agent
Search Apollo for ICP matches, rank them, draft personalised Gmail outreach, and log every send to Google Sheets.
GTM
CRM AI agent
Turn each Granola call transcript into a HubSpot record update, a drafted Gmail follow-up, and a Slack recap.
Why Scalekit
Secure your agent's access. Connectors ship in minutes
01.
Shared tokens break per-user analytics
A shared Mailboxlayer API key looks fine in a demo. In production every address check looks like one service account, and you cannot tell which user triggered it. Scalekit resolves the credential of the actual user who triggered the agent, never a shared bot.
// shared key
audit → bot_service_account

// scalekit
audit → user_abc ✓
02.
Authentication is not authorization
03.
Multi-tenancy is architectural
04.
Mailboxlayer today. Ten connectors tomorrow.
“Our agents act across Salesforce, Gong, Google Drive, and more, on behalf of every customer. Scalekit behind the scenes meant we can keep adding tools without ever rebuilding how credentials or tool calling work.”
Venu Madhav Kattagoni
Head of Engineering / Von
FAQs
Frequently Asked Questions
Does the agent access Mailboxlayer as the user or through a shared key?
As the user. Each user connects their own Mailboxlayer API key once, and Scalekit sends it with every call. Every validation in your audit trail is attributed to that user, not a shared service account.
Where is the Mailboxlayer API key stored?
In Scalekit's managed AES-256 token vault, namespaced per tenant. To rotate it, the user reconnects with a new API key. Revocation is a single dashboard action. Credentials never appear in prompts, logs, or LLM context.
Can I limit what the agent does in Mailboxlayer?
Yes, though both tools only read: neither creates, changes, or deletes anything. Filter by tool name in listScopedTools to expose just mailboxlayer_email_check, for example, and leave out mailboxlayer_email_bulk_check. Scalekit also enforces scope checks before every API call.
What happens when a user revokes Mailboxlayer access?
The connection is invalidated on the next tool call. Subsequent requests for that user fail closed with a clear error. Other users in the tenant remain unaffected. The event is logged for audit.
Which tool should the agent use for a list of addresses?
mailboxlayer_email_bulk_check verifies several addresses in one call and returns one result per address, but it needs a Mailboxlayer plan that includes bulk checks. mailboxlayer_email_check verifies one address.
Start in your coding agent
Up and running in one command
Install the Scalekit skill in your editor of choice. Connector, auth, tools, prompt, all wired up
Claude Code REPL
/plugin marketplace add scalekit-inc/claude-code-authstack
/plugin install agentkit@scalekit-auth-stack
Cursor Code REPL
# ~/.cursor/mcp.json
{
""mcpServers"": {
""mailboxlayer"": {
""url"": ""https://mcp.scalekit.com/mailboxlayer"",
""headers"": { ""Authorization"": ""Bearer $SCALEKIT_TOKEN"" }
}
}
}
Codex Code REPL
# ~/.codex/config.toml
[mcp_servers.mailboxlayer]
url = ""https://mcp.scalekit.com/mailboxlayer""
auth_env = ""SCALEKIT_TOKEN""
Copilot Code REPL
# .vscode/mcp.json
{
""servers"": {
""mailboxlayer"": {
""url"": ""https://mcp.scalekit.com/mailboxlayer"",
""type"": ""http""
}
}
}