SendLayer MCP Server
Enables sending emails and managing webhooks through the SendLayer API. Supports plain text and HTML emails with attachments, CC/BCC recipients, and webhook event management for email delivery tracking.
README
SendLayer MCP Server
This MCP server exposes tools for sending email and managing SendLayer webhooks/events using the SendLayer Node.js SDK.
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.
As an example, you could use this to run local scripts, chat with Claude, or process data and send the results to yourself or your team.
Built with:
Features
- Send plain text and HTML emails
- Send emails with attachment
- Add CC and BCC recipients
- Customizable sender email (requires verification)
- Creating and managing webhooks
- Viewing email events
Demo
Add video demo
Setup
Option 1: Use the Remote Server (Recommended)
The easiest way to get started is to use the hosted SendLayer MCP server. No local installation required!
Prerequisites
- A SendLayer account and API key (Get your API key)
- Cursor or Claude Desktop
Connecting to the Remote Server
Cursor
-
Open Cursor Settings.
Open the command palette (
cmd+shift+pon macOS orctrl+shift+pon Windows) and choose "Cursor Settings". -
Add the MCP server
Select Tools & MCP from the left sidebar and click New MCP server.
-
Configure the remote server
Add the following config:
{ "mcpServers": { "sendlayer": { "type": "url", "url": "https://sendlayer.com/mcp", "headers": { "x-sendlayer-api-key": "YOUR_SENDLAYER_API_KEY" } } } }Replace
YOUR_SENDLAYER_API_KEYwith your actual SendLayer API key from app.sendlayer.com. -
Test the connection
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 Desktop
-
Open Claude's Developer config file
Open Claude Desktop settings and navigate to the Developer tab. Click Edit Config and open the file in a code editor.
-
Add the MCP server
Add the following config:
{ "mcpServers": { "sendlayer-deployed": { "url": "https://sendlayer.com/mcp", "headers": { "x-sendlayer-api-key": "YOUR_SENDLAYER_API_KEY" } } } }Replace
YOUR_SENDLAYER_API_KEYwith your actual SendLayer API key. -
Test the connection
Restart Claude Desktop and verify that the
sendlayer-mcptools are available. You can now ask Claude to send emails using the SendLayer MCP tools.
Option 2: Local Setup
If you prefer to run the MCP server locally, follow these steps:
-
Clone this project locally.
git clone https://github.com/sendlayer/mcp-send-email.git -
Build the project
npm install npm run build -
Setup SendLayer
Create a free SendLayer account and Create an API Key. Before sending emails, you'll also need to verify your sending domain.
Connecting the Local MCP Server
Cursor
-
Open Cursor Settings.
Open the command palette (
cmd+shift+pon macOS orctrl+shift+pon Windows) and choose "Cursor Settings". -
Add the MCP server
Select Tools & MCP from the left sidebar and click New MCP server.
Add the following config:
{ "mcpServers": { "sendlayer": { "type": "command", "command": "node", "args": [ "ABSOLUTE_PATH_TO_SENDLAYER_MCP_PROJECT/build/index.js", "--key=YOUR_SENDLAYER_API_KEY" ] } } }You can get the absolute path to your build script by right-clicking on the
/build/index.jsfile in your code editor and selectingCopy Path.Supported Arguments
--key: Your SendLayer API key (required)--sender: Your sender email address from a verified domain (optional)
Note: If you don't provide a sender email address, the MCP server will ask you to provide one each time you call the tool.
-
Test the sending
Now you can test out sending emails using the command
send an email to recipient@example.com.- You can specify the subject and email content or let the AI model generate one for you.
- Tell cursor to "send this as an email" in the chat (make sure cursor is in Agent mode by selecting "Agent" on lower left side dropdown).
Claude Desktop
-
Open Claude's Developer config file
Open Claude Desktop settings and navigate to the Developer tab. Click Edit Config and open the file in a code editor.
-
Add the MCP server
Add the following config:
{ "mcpServers": { "sendlayer": { "command": "node", "args": [ "ABSOLUTE_PATH_TO_SENDLAYER_MCP_PROJECT/build/index.js" ], "env": { "SENDLAYER_API_KEY": "YOUR_SENDLAYER_API_KEY" } } } }Note: You can get the absolute path to your build script by right-clicking on the
/build/index.jsfile in your IDE and selecting Copy Path.Possible environment variables
SENDLAYER_API_KEY: Your SendLayer API key (required)SENDER_EMAIL_ADDRESS: Your sender email address from a verified domain (optional)
If you don't provide a sender email address, the MCP server will ask you to provide one each time you call the tool.
-
Test the sending
Restart Claude Desktop. Verify that the
sendlayer-mcptool is available in the Claude developer settings.Chat with Claude and tell it to send you an email using the
sendlayer-mcptool.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。