Install
Add to ~/Library/Application Support/Claude/claude_desktop_config.json
Windows / Linux path
%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.json{
"mcpServers": {
"io-github-ni-c-smtp-mcp": {
"command": "npx",
"args": [
"-y",
"@ni-c/smtp-mcp"
],
"env": {
"SMTP_HOST": "<VALUE>",
"SMTP_PORT": "587 / 465 / 25",
"SMTP_TLS": "starttls",
"SMTP_USER": "<VALUE>",
"SMTP_PASSWORD": "<YOUR_VALUE>",
"SMTP_FROM": "<VALUE>",
"SMTP_REPLY_TO": "<VALUE>",
"SMTP_ALLOW_SEND": "false",
"SMTP_ALLOWED_RECIPIENTS": "<VALUE>",
"SMTP_MAX_RECIPIENTS": "10",
"SMTP_MAX_SENDS_PER_HOUR": "20",
"SMTP_MAX_MESSAGE_BYTES": "10485760",
"SMTP_MAX_ATTACHMENT_BYTES": "5242880",
"SMTP_ATTACHMENT_DIR": "<VALUE>",
"SMTP_ATTACHMENT_TYPES": "<VALUE>",
"SMTP_SIGNATURE": "<VALUE>",
"SMTP_AUDIT_LOG": "<VALUE>",
"SMTP_ALLOW_TOOLS": "<VALUE>",
"SMTP_DENY_TOOLS": "<VALUE>",
"SMTP_INSECURE_TLS": "false",
"ELICITATION": "true"
}
}
}
}
Restart Claude Desktop to activate the new server.
Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
Windows / Linux path
.cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global).cursor/mcp.json (project) or ~/.cursor/mcp.json (global){
"mcpServers": {
"io-github-ni-c-smtp-mcp": {
"command": "npx",
"args": [
"-y",
"@ni-c/smtp-mcp"
],
"env": {
"SMTP_HOST": "<VALUE>",
"SMTP_PORT": "587 / 465 / 25",
"SMTP_TLS": "starttls",
"SMTP_USER": "<VALUE>",
"SMTP_PASSWORD": "<YOUR_VALUE>",
"SMTP_FROM": "<VALUE>",
"SMTP_REPLY_TO": "<VALUE>",
"SMTP_ALLOW_SEND": "false",
"SMTP_ALLOWED_RECIPIENTS": "<VALUE>",
"SMTP_MAX_RECIPIENTS": "10",
"SMTP_MAX_SENDS_PER_HOUR": "20",
"SMTP_MAX_MESSAGE_BYTES": "10485760",
"SMTP_MAX_ATTACHMENT_BYTES": "5242880",
"SMTP_ATTACHMENT_DIR": "<VALUE>",
"SMTP_ATTACHMENT_TYPES": "<VALUE>",
"SMTP_SIGNATURE": "<VALUE>",
"SMTP_AUDIT_LOG": "<VALUE>",
"SMTP_ALLOW_TOOLS": "<VALUE>",
"SMTP_DENY_TOOLS": "<VALUE>",
"SMTP_INSECURE_TLS": "false",
"ELICITATION": "true"
}
}
}
}
Cursor usually picks up config changes automatically; if the server does not appear, reload the window.
Add to .mcp.json (project) or ~/.claude.json (global)
Windows / Linux path
.mcp.json (project) or %USERPROFILE%\.claude.json (global).mcp.json (project) or ~/.claude.json (global){
"mcpServers": {
"io-github-ni-c-smtp-mcp": {
"command": "npx",
"args": [
"-y",
"@ni-c/smtp-mcp"
],
"env": {
"SMTP_HOST": "<VALUE>",
"SMTP_PORT": "587 / 465 / 25",
"SMTP_TLS": "starttls",
"SMTP_USER": "<VALUE>",
"SMTP_PASSWORD": "<YOUR_VALUE>",
"SMTP_FROM": "<VALUE>",
"SMTP_REPLY_TO": "<VALUE>",
"SMTP_ALLOW_SEND": "false",
"SMTP_ALLOWED_RECIPIENTS": "<VALUE>",
"SMTP_MAX_RECIPIENTS": "10",
"SMTP_MAX_SENDS_PER_HOUR": "20",
"SMTP_MAX_MESSAGE_BYTES": "10485760",
"SMTP_MAX_ATTACHMENT_BYTES": "5242880",
"SMTP_ATTACHMENT_DIR": "<VALUE>",
"SMTP_ATTACHMENT_TYPES": "<VALUE>",
"SMTP_SIGNATURE": "<VALUE>",
"SMTP_AUDIT_LOG": "<VALUE>",
"SMTP_ALLOW_TOOLS": "<VALUE>",
"SMTP_DENY_TOOLS": "<VALUE>",
"SMTP_INSECURE_TLS": "false",
"ELICITATION": "true"
}
}
}
}
The server will be available in the next Claude Code session.
Add to .vscode/mcp.json
Windows / Linux path
.vscode\mcp.json.vscode/mcp.json{
"servers": {
"io-github-ni-c-smtp-mcp": {
"command": "npx",
"args": [
"-y",
"@ni-c/smtp-mcp"
],
"env": {
"SMTP_HOST": "<VALUE>",
"SMTP_PORT": "587 / 465 / 25",
"SMTP_TLS": "starttls",
"SMTP_USER": "<VALUE>",
"SMTP_PASSWORD": "<YOUR_VALUE>",
"SMTP_FROM": "<VALUE>",
"SMTP_REPLY_TO": "<VALUE>",
"SMTP_ALLOW_SEND": "false",
"SMTP_ALLOWED_RECIPIENTS": "<VALUE>",
"SMTP_MAX_RECIPIENTS": "10",
"SMTP_MAX_SENDS_PER_HOUR": "20",
"SMTP_MAX_MESSAGE_BYTES": "10485760",
"SMTP_MAX_ATTACHMENT_BYTES": "5242880",
"SMTP_ATTACHMENT_DIR": "<VALUE>",
"SMTP_ATTACHMENT_TYPES": "<VALUE>",
"SMTP_SIGNATURE": "<VALUE>",
"SMTP_AUDIT_LOG": "<VALUE>",
"SMTP_ALLOW_TOOLS": "<VALUE>",
"SMTP_DENY_TOOLS": "<VALUE>",
"SMTP_INSECURE_TLS": "false",
"ELICITATION": "true"
}
}
}
}
Reload the VS Code window to activate.
Add to ~/.codeium/windsurf/mcp_config.json
Windows / Linux path
%USERPROFILE%\.codeium\windsurf\mcp_config.json~/.codeium/windsurf/mcp_config.json{
"mcpServers": {
"io-github-ni-c-smtp-mcp": {
"command": "npx",
"args": [
"-y",
"@ni-c/smtp-mcp"
],
"env": {
"SMTP_HOST": "<VALUE>",
"SMTP_PORT": "587 / 465 / 25",
"SMTP_TLS": "starttls",
"SMTP_USER": "<VALUE>",
"SMTP_PASSWORD": "<YOUR_VALUE>",
"SMTP_FROM": "<VALUE>",
"SMTP_REPLY_TO": "<VALUE>",
"SMTP_ALLOW_SEND": "false",
"SMTP_ALLOWED_RECIPIENTS": "<VALUE>",
"SMTP_MAX_RECIPIENTS": "10",
"SMTP_MAX_SENDS_PER_HOUR": "20",
"SMTP_MAX_MESSAGE_BYTES": "10485760",
"SMTP_MAX_ATTACHMENT_BYTES": "5242880",
"SMTP_ATTACHMENT_DIR": "<VALUE>",
"SMTP_ATTACHMENT_TYPES": "<VALUE>",
"SMTP_SIGNATURE": "<VALUE>",
"SMTP_AUDIT_LOG": "<VALUE>",
"SMTP_ALLOW_TOOLS": "<VALUE>",
"SMTP_DENY_TOOLS": "<VALUE>",
"SMTP_INSECURE_TLS": "false",
"ELICITATION": "true"
}
}
}
}
Restart Windsurf (or refresh its MCP servers panel) to activate the new server.
Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.
Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
Windows / Linux path
%APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json{
"mcpServers": {
"io-github-ni-c-smtp-mcp": {
"command": "npx",
"args": [
"-y",
"@ni-c/smtp-mcp"
],
"env": {
"SMTP_HOST": "<VALUE>",
"SMTP_PORT": "587 / 465 / 25",
"SMTP_TLS": "starttls",
"SMTP_USER": "<VALUE>",
"SMTP_PASSWORD": "<YOUR_VALUE>",
"SMTP_FROM": "<VALUE>",
"SMTP_REPLY_TO": "<VALUE>",
"SMTP_ALLOW_SEND": "false",
"SMTP_ALLOWED_RECIPIENTS": "<VALUE>",
"SMTP_MAX_RECIPIENTS": "10",
"SMTP_MAX_SENDS_PER_HOUR": "20",
"SMTP_MAX_MESSAGE_BYTES": "10485760",
"SMTP_MAX_ATTACHMENT_BYTES": "5242880",
"SMTP_ATTACHMENT_DIR": "<VALUE>",
"SMTP_ATTACHMENT_TYPES": "<VALUE>",
"SMTP_SIGNATURE": "<VALUE>",
"SMTP_AUDIT_LOG": "<VALUE>",
"SMTP_ALLOW_TOOLS": "<VALUE>",
"SMTP_DENY_TOOLS": "<VALUE>",
"SMTP_INSECURE_TLS": "false",
"ELICITATION": "true"
}
}
}
}
Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.
Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.
Configuration
Environment variables this server reads. Secrets stay on your machine.
| Name | Required | Description |
|---|---|---|
| SMTP_HOST | Yes | Hostname of the SMTP server, e.g. smtp.example.net. |
| SMTP_PORT | No | Depends on SMTP_TLS. Default: 587 / 465 / 25 |
| SMTP_TLS | No | starttls, implicit or none. Never opportunistic. Default: starttls |
| SMTP_USER | Yes | Username for SMTP authentication. |
| SMTP_PASSWORD secret | Yes | Password or app-specific password. |
| SMTP_FROM | Yes | The only sender used, e.g. Name <person@example.net>. There is no from parameter. |
| SMTP_REPLY_TO | No | 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. |
| SMTP_ALLOW_SEND | No | Set to true to register the sending tools. Default: false |
| SMTP_ALLOWED_RECIPIENTS | No | Comma-separated addresses and @domains. * allows anyone. Required when SMTP_ALLOW_SEND=true. |
| SMTP_MAX_RECIPIENTS | No | Distinct recipients across To, Cc and Bcc in one message. Default: 10 |
| SMTP_MAX_SENDS_PER_HOUR | No | Sliding hourly cap. Default: 20 |
| SMTP_MAX_MESSAGE_BYTES | No | Size ceiling on the composed message. Default: 10485760 |
| SMTP_MAX_ATTACHMENT_BYTES | No | Size ceiling on one attachment. Default: 5242880 |
| SMTP_ATTACHMENT_DIR | No | Directory attachments are read from. Unset means no attachments. |
| SMTP_ATTACHMENT_TYPES | No | Comma-separated content types that may be attached. text/html and application/zip are opt-in. |
| SMTP_SIGNATURE | No | Text appended below the standard -- delimiter. |
| SMTP_AUDIT_LOG | No | File the audit lines are appended to, in addition to stderr. |
| SMTP_ALLOW_TOOLS | No | Tool names, a prefix with one trailing *, or essential. |
| SMTP_DENY_TOOLS | No | Removed after SMTP_ALLOW_TOOLS is applied. |
| SMTP_INSECURE_TLS | No | Accept self-signed certificates. Default: false |
| ELICITATION | No | false replaces the approval dialog with the two-call token. Not prefixed. Default: true |