Skip to main content

Overview

The SendLayer MCP server exposes tools for sending email and managing webhooks/events using the SendLayer Node.js SDK. You can use it from AI tools like Cursor and Claude to run local scripts, chat with an AI model, and send results to yourself or your team without wiring up HTTP calls manually.

What Is MCP?

MCP (Model Context Protocol) is a protocol that allows AI tools to interact with external services and data sources. It’s a way to extend the capabilities of AI tools by allowing them to use external tools and data sources.

Tools

  • send-email: Send a message (plain text or HTML) with CC/BCC, reply-to, tags, headers, and attachments.
  • get-events: Query events with optional filters.
  • list-webhooks: List registered webhooks.
  • create-webhook: Create a webhook.
  • delete-webhook: Delete a webhook by ID.

Prerequisites

Connecting to the MCP Server

The easiest way to get started is to connect to the hosted SendLayer MCP server. No local installation is required.

Cursor

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

Manual Installation

If you’re not using the direct link, open the command palette (cmd+shift+p on macOS or ctrl+shift+p on Windows) and choose Cursor Settings. Then, select Tools & MCP from the left sidebar and click New MCP server. Cursor MCP Server Manual Installation In the mcp.json file, add the following config:
{
  "mcpServers": {
    "sendlayer": {
      "type": "url",
      "url": "https://mcp.sendlayer.com",
      "headers": {
        "x-sendlayer-api-key": "YOUR_SENDLAYER_API_KEY"
      }
    }
  }
}
Be sure to replace YOUR_SENDLAYER_API_KEY with your actual SendLayer API key from app.sendlayer.com. After saving the file, restart Cursor and verify the MCP server is connected. You can now use commands like “send an email to [email protected]” in Agent mode.

Claude Code

Run the following command on your terminal to configure the MCP server:
claude mcp add --scope user --transport http sendlayer-mcp https://mcp.sendlayer.com --header "Authorization: Bearer YOUR_SENDLAYER_API_KEY"
Be sure to replace YOUR_SENDLAYER_API_KEY with your actual SendLayer API key.

Gemini-CLI

Open a terminal and run the following command to edit your ~/.gemini/settings.json file:
nano ~/.gemini/settings.json
Then, add the following lines to the file and save it:
{
  "mcpServers": {
    "sendlayer": {
      "httpUrl": "https://mcp.sendlayer.com",
      "headers": {
        "x-sendlayer-api-key": "YOUR_SENDLAYER_API_KEY",
        "Content-Type": "application/json"
      },
      "timeout": 5000
    }
  }
}
Be sure to replace YOUR_SENDLAYER_API_KEY with your actual SendLayer API key. To test the connection, run the following command:
gemini mcp list
You should see the sendlayer server in the list. You can now use the sendlayer server to send emails and manage webhooks/events.

Features

  • Send plain text and HTML emails
  • Send emails with attachments
  • Add CC and BCC recipients
  • Customize the sender email (verified domains only)
  • Create, list, and delete webhooks
  • Retrieve and filter email events