This MCP server provides email sending functionality through Protonmail's SMTP service, allowing Claude Desktop and Cline VSCode extension to send emails on your behalf using your Protonmail credentials.
To install the Protonmail MCP server:
Clone the repository to your local machine:
git clone https://github.com/your-username/protonmail-mcp.git
cd protonmail-mcp
Install dependencies and build the project:
npm install
npm run build
Alternatively, Cline can automatically handle installation:
The server requires environment variables to be set in the MCP settings files:
Located at: /Users/your-username/Library/Application Support/Claude/claude_desktop_config.json
Located at: /Users/your-username/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
Both configuration files need these variables:
PROTONMAIL_USERNAME
: Your Protonmail email addressPROTONMAIL_PASSWORD
: Your Protonmail SMTP password (not your regular login password)PROTONMAIL_HOST
: SMTP server hostname (default: smtp.protonmail.ch)PROTONMAIL_PORT
: SMTP server port (default: 587 for STARTTLS, 465 for SSL/TLS)PROTONMAIL_SECURE
: Whether to use a secure connection (default: "false" for port 587, "true" for port 465)DEBUG
: Enable debug logging (set to "true" to see detailed logs, "false" to hide them)Once configured, you can send emails using the following tool:
Parameters:
to
: Recipient email address(es). Multiple addresses can be separated by commas.subject
: Email subject linebody
: Email body content (can be plain text or HTML)isHtml
: (Optional) Whether the body contains HTML content (default: false)cc
: (Optional) CC recipient(s), separated by commasbcc
: (Optional) BCC recipient(s), separated by commasExample:
<use_mcp_tool>
<server_name>protonmail-mcp</server_name>
<tool_name>send_email</tool_name>
<arguments>
{
"to": "[email protected]",
"subject": "Test Email from Cline",
"body": "This is a test email sent via the Protonmail MCP server.",
"cc": "[email protected]"
}
</arguments>
</use_mcp_tool>
If you encounter issues:
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "protonmail-mcp" '{"command":"npx","args":["-y","protonmail-mcp"]}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"protonmail-mcp": {
"command": "npx",
"args": [
"-y",
"protonmail-mcp"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"protonmail-mcp": {
"command": "npx",
"args": [
"-y",
"protonmail-mcp"
]
}
}
}
3. Restart Claude Desktop for the changes to take effect