Prerequisites
- A SendLayer account with a verified sending domain (authorize your domain)
- For the API key method, an API key for that domain (managing API keys)
Connection methods
The SendLayer MCP server is hosted athttps://mcp.sendlayer.com. There are two ways to connect:
- Sign in with SendLayer. Assistants that can sign in to remote MCP servers (Claude, ChatGPT, Grok, Claude Code and others) use your SendLayer login. No API key. You choose which sender domains and permissions the assistant gets.
- API key. Editors and CLIs that pass headers (Cursor, Gemini CLI, Windsurf) use an API key, which belongs to one sender domain.
Sign in with SendLayer
- Add a connector with the URL
https://mcp.sendlayer.comin your assistant (steps per assistant below). - The assistant opens the SendLayer sign-in page. Log in.
- Choose what the assistant may use: which sender domains, and which permissions. Send email and read delivery events are on; manage webhooks is off unless you turn it on.
- Approve. You are back in the assistant and the SendLayer tools are available.
Claude
Open Settings, Connectors, Add custom connector. Name it SendLayer, enterhttps://mcp.sendlayer.com as the URL and save. Claude asks you to connect; sign in and approve. The connector then works on claude.ai, in Claude Desktop and on mobile.
ChatGPT
Open Plugins in the sidebar, click Add, then Add custom MCP server. Name it SendLayer, enterhttps://mcp.sendlayer.com as the URL, choose OAuth as the authentication and confirm. Sign in and approve. Enable the SendLayer plugin in a chat to use it.
Grok
Open Connectors on grok.com, click New Connector, choose Custom and enterhttps://mcp.sendlayer.com as the server URL. Sign in and approve when Grok opens the SendLayer page.
Claude Code
Run the following command, then open/mcp, choose sendlayer and click Authenticate:
Disconnect
Disconnect in the assistant’s connector settings, or in your SendLayer account under Account, Connected Apps. A connection unused for 30 days ends on its own.Connect with an API key
Clients that cannot sign in pass the API key as a header. The key belongs to one sender domain, so the tools work with that domain and take nodomain argument. Get the key from app.sendlayer.com.
Cursor
Use the direct link below to install the MCP server in Cursor:
Manual installation
Open the command palette (cmd+shift+p on macOS or ctrl+shift+p on Windows), choose Cursor Settings, select Tools & MCP and click New MCP server.

mcp.json file, add:
YOUR_SENDLAYER_API_KEY with your SendLayer API key.
After saving the file, restart Cursor and verify the MCP server is connected. You can now use commands like “send an email to recipient@example.com” in Agent mode.
Claude Code with an API key
Sign-in above is the simpler path. To use a key instead:Gemini CLI
Open~/.gemini/settings.json and add:
YOUR_SENDLAYER_API_KEY with your SendLayer API key, then run gemini mcp list to check that the sendlayer server is listed.
Windsurf
Open your Windsurf settings page, select the Cascade sidebar menu and click Open MCP Marketplace.
mcp_config.json file.

YOUR_SENDLAYER_API_KEY with your SendLayer API key.
Tools
With sign-in, every tool except
send_email, preview_email, list_domains and query_sendlayer_docs takes a domain: one of the domains you picked when you connected. You can leave it out if you picked only one. send_email and preview_email need a from address at one of those domains.
preview_email takes the same input as send_email and returns a preview_id. When send_email gets that id as previewId, it sends only if the email is exactly the one you previewed. The preview shows remote images as placeholders and runs no scripts.
An email takes at most 10 attachments, 10 MB in total, each as a public https:// link or as base64 content with a filename.
The old tool names send-email, get-events, list-webhooks, create-webhook, delete-webhook and query-sendlayer-docs still work in this release and will be removed in the next one.
Prompts
Three guided prompts come with the server:- Did my email arrive? looks up the recent emails to one address and explains how each was delivered.
- What failed this week? looks up the bounces and rejections of the last 7 days and explains the main reasons.
- Send a test email sends a short test email and checks that it was delivered.
What the tools return
The server stores nothing. It logs one line per request: the method, the tool name, the status and how long it took. It never logs keys, tokens, addresses or message content.
FAQ
What is MCP?
What is MCP?
MCP (Model Context Protocol) is an open protocol that lets AI tools call external services. The SendLayer MCP server exposes SendLayer as a set of tools the assistant can use during a conversation.