mail-smtp-mcp-rs is a secure SMTP Model Context Protocol (MCP) server that runs over stdio.
It provides a focused tool surface for listing configured SMTP accounts and sending policy-bounded email messages.
Features
SMTP-focused MCP surface: two tools, and
Model Context Protocol (MCP) server for SMTP in Rust.
Estrelas
1
Ferramentas
—
Disponibilidade
—
smtp_list_accounts
smtp_send_message
Secure-by-default send gate: live sends are blocked unless MAIL_SMTP_SEND_ENABLED=true
Policy enforcement: recipient allowlists and configurable limits for recipients, message size, body size, and attachments
Policy caps are configurable by env and can be stricter than hard caps.
Troubleshooting
Startup fails with missing config
The server requires at least one complete account (HOST, USER, PASS).
Sending is disabled
If smtp_send_message returns a send-disabled error, set:
MAIL_SMTP_SEND_ENABLED=true
Account lookup fails
account_id matching is case-insensitive and normalized to lowercase. Verify that the account section exists and includes required keys.
SMTP connection or send failures
Check host/port/secure settings, credentials, and network reachability. Tune:
MAIL_SMTP_CONNECT_TIMEOUT_MS
MAIL_SMTP_SOCKET_TIMEOUT_MS
npm install or npx fails on an unsupported platform
The published npm package supports only the release artifacts listed above. Common unsupported cases include Linux ARM64 and Windows ARM64.
On Linux x86_64, both glibc and musl environments are supported. For other platforms, use Docker or install from source if you need to run the server outside the published npm matrix.
Security Notes
Secrets are not returned in tool responses.
Password values are redacted in help diagnostics.
Recipient policy enforcement supports domain and exact-address allowlists.
Attachment handling validates filename safety, content type parsing, and strict base64 input.
Development
Contributor guidance and validation flow are documented in AGENTS.md.
Ainda não há lista de ferramentas. Servidores remotos recebem uma após a primeira verificação de saúde.
Perguntas frequentes
Perguntas
Como instalo Mail Smtp MCP Rs?
Copie nesta página a configuração stdio para Cursor, Claude Desktop, Claude Code ou VS Code. Ela usa a instalação do publicador, não um proxy do PlugMCP.
Mail Smtp MCP Rs precisa de uma chave de API?
Este registro não lista nenhuma variável de ambiente obrigatória.
Qual transporte Mail Smtp MCP Rs usa?
Mail Smtp MCP Rs roda localmente via stdio.
Quando Mail Smtp MCP Rs foi verificado pela última vez?
Última verificação: 2026-11-05. Model Context Protocol (MCP) server for SMTP in Rust.