SMTP
MCP server that sends mail over SMTP, gated behind an allowlist and a human confirmation
Documentation & Preview
{ "mcpServers": { "mcp-smtp-mcp-4f8c90ff31a696ddfec7": { "command": "npx", "args": [ "-y", "--package", "@ni-c/smtp-mcp@0.3.0", "smtp-mcp" ], "env": { "SMTP_HOST": "${ENV_SMTP_HOST}", "SMTP_PORT": "${ENV_SMTP_PORT}", "SMTP_TLS": "${ENV_SMTP_TLS}", "SMTP_USER": "${ENV_SMTP_USER}", "SMTP_PASSWORD": "${ENV_SMTP_PASSWORD}", "SMTP_FROM": "${ENV_SMTP_FROM}", "SMTP_REPLY_TO": "${ENV_SMTP_REPLY_TO}", "SMTP_ALLOW_SEND": "${ENV_SMTP_ALLOW_SEND}", "SMTP_ALLOWED_RECIPIENTS": "${ENV_SMTP_ALLOWED_RECIPIENTS}", "SMTP_MAX_RECIPIENTS": "${ENV_SMTP_MAX_RECIPIENTS}", "SMTP_MAX_SENDS_PER_HOUR": "${ENV_SMTP_MAX_SENDS_PER_HOUR}", "SMTP_MAX_MESSAGE_BYTES": "${ENV_SMTP_MAX_MESSAGE_BYTES}", "SMTP_MAX_ATTACHMENT_BYTES": "${ENV_SMTP_MAX_ATTACHMENT_BYTES}", "SMTP_ATTACHMENT_DIR": "${ENV_SMTP_ATTACHMENT_DIR}", "SMTP_ATTACHMENT_TYPES": "${ENV_SMTP_ATTACHMENT_TYPES}", "SMTP_SIGNATURE": "${ENV_SMTP_SIGNATURE}", "SMTP_AUDIT_LOG": "${ENV_SMTP_AUDIT_LOG}", "SMTP_ALLOW_TOOLS": "${ENV_SMTP_ALLOW_TOOLS}", "SMTP_DENY_TOOLS": "${ENV_SMTP_DENY_TOOLS}", "SMTP_INSECURE_TLS": "${ENV_SMTP_INSECURE_TLS}" } } }, "setup": { "fields": [ { "id": "ENV_SMTP_HOST", "label": "SMTP_HOST", "description": "Hostname of the SMTP server, e.g. smtp.example.net.", "required": true, "secret": false, "default": "" }, { "id": "ENV_SMTP_PORT", "label": "SMTP_PORT", "description": "Port. Defaults to 587 for starttls, 465 for implicit, 25 for none.", "required": false, "secret": false, "default": "" }, { "id": "ENV_SMTP_TLS", "label": "SMTP_TLS", "description": "starttls (default), implicit or none. STARTTLS is required, never opportunistic.", "required": false, "secret": false, "default": "" }, { "id": "ENV_SMTP_USER", "label": "SMTP_USER", "description": "Username for SMTP authentication.", "required": true, "secret": false, "default": "" }, { "id": "ENV_SMTP_PASSWORD", "label": "SMTP_PASSWORD", "description": "Password or app-specific password for SMTP authentication.", "required": true, "secret": true, "default": "" }, { "id": "ENV_SMTP_FROM", "label": "SMTP_FROM", "description": "The only sender this server will use, e.g. \"Name <person@example.net>\". There is no from parameter.", "required": true, "secret": false, "default": "" }, { "id": "ENV_SMTP_REPLY_TO", "label": "SMTP_REPLY_TO", "description": "Reply-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.", "required": false, "secret": false, "default": "" }, { "id": "ENV_SMTP_ALLOW_SEND", "label": "SMTP_ALLOW_SEND", "description": "Set to \"true\" to register the sending tools. Defaults to false: the server cannot send until it is set.", "required": false, "secret": false, "default": "" }, { "id": "ENV_SMTP_ALLOWED_RECIPIENTS", "label": "SMTP_ALLOWED_RECIPIENTS", "description": "Comma-separated addresses and @domains this server may write to. Required with SMTP_ALLOW_SEND=true; \"*\" allows any.", "required": false, "secret": false, "default": "" }, { "id": "ENV_SMTP_MAX_RECIPIENTS", "label": "SMTP_MAX_RECIPIENTS", "description": "Maximum distinct recipients across To, Cc and Bcc in one message. Default 10.", "required": false, "secret": false, "default": "" }, { "id": "ENV_SMTP_MAX_SENDS_PER_HOUR", "label": "SMTP_MAX_SENDS_PER_HOUR", "description": "Sliding hourly cap on messages sent. Default 20.", "required": false, "secret": false, "default": "" }, { "id": "ENV_SMTP_MAX_MESSAGE_BYTES", "label": "SMTP_MAX_MESSAGE_BYTES", "description": "Maximum size of the composed message. Default 10485760.", "required": false, "secret": false, "default": "" }, { "id": "ENV_SMTP_MAX_ATTACHMENT_BYTES", "label": "SMTP_MAX_ATTACHMENT_BYTES", "description": "Maximum size of a single attachment. Default 5242880.", "required": false, "secret": false, "default": "" }, { "id": "ENV_SMTP_ATTACHMENT_DIR", "label": "SMTP_ATTACHMENT_DIR", "description": "Directory attachments are read from. Unset means attachments are unavailable.", "required": false, "secret": false, "default": "" }, { "id": "ENV_SMTP_ATTACHMENT_TYPES", "label": "SMTP_ATTACHMENT_TYPES", "description": "Comma-separated content types that may be attached. Defaults to a document and image allowlist.", "required": false, "secret": false, "default": "" }, { "id": "ENV_SMTP_SIGNATURE", "label": "SMTP_SIGNATURE", "description": "Text appended below the standard signature delimiter of every message.", "required": false, "secret": false, "default": "" }, { "id": "ENV_SMTP_AUDIT_LOG", "label": "SMTP_AUDIT_LOG", "description": "File the audit lines are appended to, in addition to stderr.", "required": false, "secret": false, "default": "" }, { "id": "ENV_SMTP_ALLOW_TOOLS", "label": "SMTP_ALLOW_TOOLS", "description": "Comma-separated tool names, a prefix with one trailing *, or \"essential\" for the curated preset.", "required": false, "secret": false, "default": "" }, { "id": "ENV_SMTP_DENY_TOOLS", "label": "SMTP_DENY_TOOLS", "description": "Comma-separated tool names or prefixes to remove, applied after SMTP_ALLOW_TOOLS.", "required": false, "secret": false, "default": "" }, { "id": "ENV_SMTP_INSECURE_TLS", "label": "SMTP_INSECURE_TLS", "description": "Set to \"true\" to accept self-signed certificates. Prefer a proper internal CA.", "required": false, "secret": false, "default": "" } ], "requirements": [ "安装 Node.js / npm" ] }, "provenance": { "registryServer": "io.github.ni-c/smtp-mcp", "registryVersion": "0.3.0", "registryUrl": "https://registry.modelcontextprotocol.io/v0.1/servers/io.github.ni-c%2Fsmtp-mcp/versions/0.3.0", "repository": null, "sourceCommit": null, "namespaceRepositoryOwnerMatched": false, "officialRegistryNamespaceVerified": true, "package": { "registry": "npm", "identifier": "@ni-c/smtp-mcp", "version": "0.3.0", "integrity": "sha512-EvJeuuzJBxTLqdR8XYuueN+e49aVCCunSVGznYtsjnFVmTJyoaPjQTCmT/BEk7+Nm9nwK0uD9QAKK4uGLQIVRw==", "registryNameMatched": "io.github.ni-c/smtp-mcp", "checkedAt": "2026-11-24T09:18:07.203Z" }, "scope": "Install configuration verified; dependency implementation and remote behavior have not been audited" } }