# Mailboxlayer — how to use (mcp.ai)

Connect your Mailboxlayer account and use 1 tools for email straight from your AI agent. Connect with your own API key. A simple REST-based JSON API for email address validation and verification.

## Option A — via MCP (recommended)
Remote MCP endpoint (HTTP, streamable): `https://api.mcp.ai/p_mailboxlayer?ms=1787293740000`
Add it as a custom/remote MCP connector in your client (Claude, Cursor, VS Code…), then authenticate when prompted. Once connected, ask the agent to use the server's tools (e.g. `mailboxlayer_check_email`).

## Option B — via direct REST API
Base URL: `https://api.mcp.ai/api/mailboxlayer`
Auth: `Authorization: Bearer sk_live_…` — create a workspace API key at https://mcp.ai/settings/api-keys
Discover endpoints: `GET https://api.mcp.ai/api/mailboxlayer/_endpoints`

### Endpoints
- `POST https://api.mcp.ai/api/mailboxlayer/check/email` — Tool to validate a single email address. Use when you need to check syntax, domain, SMTP, and meta-flags.
  - body: { mx?: integer, free?: integer, role?: integer, smtp?: integer, email: string, format?: integer, catch_all?: integer, access_key: string, disposable?: integer }

## Example prompts
- "What can I do in Mailboxlayer?"
- "Show me a summary of my Mailboxlayer account"

## More
- Page: https://mcp.ai/mailboxlayer
- Agent spec (llms.txt): https://mcp.ai/mailboxlayer/llms.txt
- Postman collection: https://mcp.ai/mailboxlayer/postman.json
