SMTP
MCP server that sends mail over SMTP, gated behind an allowlist and a human confirmation
- Pricing
- Open source
- Runs
- Locally
- Version
- 0.2.0
- Listing updated
- 5 days ago
About SMTP
SMTP is an open-source MCP server. It runs locally on your machine and is started by your AI client.
Install
Run in a terminal
claude mcp add smtp-mcp --env SMTP_HOST='<SMTP_HOST>' --env SMTP_USER='<SMTP_USER>' --env SMTP_PASSWORD='<SMTP_PASSWORD>' --env SMTP_FROM='<SMTP_FROM>' -- npx -y @ni-c/smtp-mcpAdd to claude_desktop_config.json
{
"mcpServers": {
"smtp-mcp": {
"command": "npx",
"args": [
"-y",
"@ni-c/smtp-mcp"
],
"env": {
"SMTP_HOST": "<SMTP_HOST>",
"SMTP_USER": "<SMTP_USER>",
"SMTP_PASSWORD": "<SMTP_PASSWORD>",
"SMTP_FROM": "<SMTP_FROM>"
}
}
}
}Add to ~/.cursor/mcp.json
{
"mcpServers": {
"smtp-mcp": {
"command": "npx",
"args": [
"-y",
"@ni-c/smtp-mcp"
],
"env": {
"SMTP_HOST": "<SMTP_HOST>",
"SMTP_USER": "<SMTP_USER>",
"SMTP_PASSWORD": "<SMTP_PASSWORD>",
"SMTP_FROM": "<SMTP_FROM>"
}
}
}
}Add to .vscode/mcp.json
{
"servers": {
"smtp-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@ni-c/smtp-mcp"
],
"env": {
"SMTP_HOST": "<SMTP_HOST>",
"SMTP_USER": "<SMTP_USER>",
"SMTP_PASSWORD": "<SMTP_PASSWORD>",
"SMTP_FROM": "<SMTP_FROM>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"smtp-mcp": {
"command": "npx",
"args": [
"-y",
"@ni-c/smtp-mcp"
],
"env": {
"SMTP_HOST": "<SMTP_HOST>",
"SMTP_USER": "<SMTP_USER>",
"SMTP_PASSWORD": "<SMTP_PASSWORD>",
"SMTP_FROM": "<SMTP_FROM>"
}
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"smtp-mcp": {
"command": "npx",
"args": [
"-y",
"@ni-c/smtp-mcp"
],
"env": {
"SMTP_HOST": "<SMTP_HOST>",
"SMTP_USER": "<SMTP_USER>",
"SMTP_PASSWORD": "<SMTP_PASSWORD>",
"SMTP_FROM": "<SMTP_FROM>"
}
}
}
}Using several servers? Build one config file with the MCP config generator.
Configuration
SMTP_HOSTHostname of the SMTP server, e.g. smtp.example.net.RequiredSMTP_PORTPort. Defaults to 587 for starttls, 465 for implicit, 25 for none.SMTP_TLSstarttls (default), implicit or none. STARTTLS is required, never opportunistic.SMTP_USERUsername for SMTP authentication.RequiredSMTP_PASSWORDPassword or app-specific password for SMTP authentication.RequiredSMTP_FROMThe only sender this server will use, e.g. "Name <person@example.net>". There is no from parameter.RequiredSMTP_REPLY_TOReply-To header on every message, e.g. "Team <team@example.net>". Unset means no Reply-To header and replies go to SMTP_FROM. There is no reply_to parameter.SMTP_ALLOW_SENDSet to "true" to register the sending tools. Defaults to false: the server cannot send until it is set.SMTP_ALLOWED_RECIPIENTSComma-separated addresses and @domains this server may write to. Required with SMTP_ALLOW_SEND=true; "*" allows any.SMTP_MAX_RECIPIENTSMaximum distinct recipients across To, Cc and Bcc in one message. Default 10.SMTP_MAX_SENDS_PER_HOURSliding hourly cap on messages sent. Default 20.SMTP_MAX_MESSAGE_BYTESMaximum size of the composed message. Default 10485760.SMTP_MAX_ATTACHMENT_BYTESMaximum size of a single attachment. Default 5242880.SMTP_ATTACHMENT_DIRDirectory attachments are read from. Unset means attachments are unavailable.SMTP_ATTACHMENT_TYPESComma-separated content types that may be attached. Defaults to a document and image allowlist.SMTP_SIGNATUREText appended below the standard signature delimiter of every message.SMTP_AUDIT_LOGFile the audit lines are appended to, in addition to stderr.SMTP_ALLOW_TOOLSComma-separated tool names, a prefix with one trailing *, or "essential" for the curated preset.SMTP_DENY_TOOLSComma-separated tool names or prefixes to remove, applied after SMTP_ALLOW_TOOLS.SMTP_INSECURE_TLSSet to "true" to accept self-signed certificates. Prefer a proper internal CA.SMTP_HOSTHostname of the SMTP server, e.g. smtp.example.net.RequiredSMTP_PORTPort. Defaults to 587 for starttls, 465 for implicit, 25 for none.SMTP_TLSstarttls (default), implicit or none. STARTTLS is required, never opportunistic.SMTP_USERUsername for SMTP authentication.RequiredSMTP_PASSWORDPassword or app-specific password for SMTP authentication.RequiredSMTP_FROMThe only sender this server will use, e.g. "Name <person@example.net>". There is no from parameter.RequiredSMTP_REPLY_TOReply-To header on every message, e.g. "Team <team@example.net>". Unset means no Reply-To header and replies go to SMTP_FROM. There is no reply_to parameter.SMTP_ALLOW_SENDSet to "true" to register the sending tools. Defaults to false: the server cannot send until it is set.SMTP_ALLOWED_RECIPIENTSComma-separated addresses and @domains this server may write to. Required with SMTP_ALLOW_SEND=true; "*" allows any.SMTP_MAX_RECIPIENTSMaximum distinct recipients across To, Cc and Bcc in one message. Default 10.SMTP_MAX_SENDS_PER_HOURSliding hourly cap on messages sent. Default 20.SMTP_MAX_MESSAGE_BYTESMaximum size of the composed message. Default 10485760.SMTP_MAX_ATTACHMENT_BYTESMaximum size of a single attachment. Default 5242880.SMTP_ATTACHMENT_DIRDirectory attachments are read from. Unset means attachments are unavailable.SMTP_ATTACHMENT_TYPESComma-separated content types that may be attached. Defaults to a document and image allowlist.SMTP_SIGNATUREText appended below the standard signature delimiter of every message.SMTP_AUDIT_LOGFile the audit lines are appended to, in addition to stderr.SMTP_ALLOW_TOOLSComma-separated tool names, a prefix with one trailing *, or "essential" for the curated preset.SMTP_DENY_TOOLSComma-separated tool names or prefixes to remove, applied after SMTP_ALLOW_TOOLS.SMTP_INSECURE_TLSSet to "true" to accept self-signed certificates. Prefer a proper internal CA.
Pricing
Open source
Prices change. Check smtp-mcp.ni-c.de before you buy.
More servers for the same service
SMTP FAQ
Is SMTP free?
Yes. SMTP is open source, so you can use and self-host it for free.
How do I add SMTP to Claude Code?
Run this command in your terminal: claude mcp add smtp-mcp --env SMTP_HOST='<SMTP_HOST>' --env SMTP_USER='<SMTP_USER>' --env SMTP_PASSWORD='<SMTP_PASSWORD>' --env SMTP_FROM='<SMTP_FROM>' -- npx -y @ni-c/smtp-mcp
Where this comes from
- Description: from the official MCP Registry entry.
- Install steps: from the official MCP Registry entry.