Skip to main content

Prerequisites

Connection methods

The SendLayer MCP server is hosted at https://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

  1. Add a connector with the URL https://mcp.sendlayer.com in your assistant (steps per assistant below).
  2. The assistant opens the SendLayer sign-in page. Log in.
  3. 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.
  4. Approve. You are back in the assistant and the SendLayer tools are available.
The assistant can only use the domains and permissions you chose. To add a domain later, connect again and allow it. Every action runs as your account.

Claude

Open Settings, Connectors, Add custom connector. Name it SendLayer, enter https://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, enter https://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 enter https://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 no domain argument. Get the key from app.sendlayer.com.

Cursor

Use the direct link below to install the MCP server in Cursor: Install MCP Server This opens the MCP server installation page in Cursor. Enter your SendLayer API key and click Install. Cursor MCP Server Installation

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. Cursor MCP Server Manual Installation In the mcp.json file, add:
Replace 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:
Replace 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. Windsurf MCP Marketplace Click the settings icon to open the mcp_config.json file. Windsurf MCP Settings Add the following and save:
Replace 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

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.