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-redpop-apple-mail-mcp": {
"command": "npx",
"args": [
"-y",
"@redpop/apple-mail-mcp"
],
"env": {
"APPLE_MAIL_ACCOUNTS": "",
"APPLE_MAIL_MCP_DEBUG": "false",
"APPLE_MAIL_BODY_SEARCH": "true",
"APPLE_MAIL_HELPER_PATH": "<VALUE>",
"APPLE_MAIL_MAX_RESULTS": "50",
"APPLE_MAIL_INCLUDE_JUNK": "false",
"APPLE_MAIL_INCLUDE_TRASH": "false",
"APPLE_MAIL_MAX_BODY_CHARS": "20000",
"APPLE_MAIL_EXCLUDE_MAILBOXES": "",
"APPLE_MAIL_SHOW_SECURITY_MAILS": "false"
}
}
}
}
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-redpop-apple-mail-mcp": {
"command": "npx",
"args": [
"-y",
"@redpop/apple-mail-mcp"
],
"env": {
"APPLE_MAIL_ACCOUNTS": "",
"APPLE_MAIL_MCP_DEBUG": "false",
"APPLE_MAIL_BODY_SEARCH": "true",
"APPLE_MAIL_HELPER_PATH": "<VALUE>",
"APPLE_MAIL_MAX_RESULTS": "50",
"APPLE_MAIL_INCLUDE_JUNK": "false",
"APPLE_MAIL_INCLUDE_TRASH": "false",
"APPLE_MAIL_MAX_BODY_CHARS": "20000",
"APPLE_MAIL_EXCLUDE_MAILBOXES": "",
"APPLE_MAIL_SHOW_SECURITY_MAILS": "false"
}
}
}
}
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-redpop-apple-mail-mcp": {
"command": "npx",
"args": [
"-y",
"@redpop/apple-mail-mcp"
],
"env": {
"APPLE_MAIL_ACCOUNTS": "",
"APPLE_MAIL_MCP_DEBUG": "false",
"APPLE_MAIL_BODY_SEARCH": "true",
"APPLE_MAIL_HELPER_PATH": "<VALUE>",
"APPLE_MAIL_MAX_RESULTS": "50",
"APPLE_MAIL_INCLUDE_JUNK": "false",
"APPLE_MAIL_INCLUDE_TRASH": "false",
"APPLE_MAIL_MAX_BODY_CHARS": "20000",
"APPLE_MAIL_EXCLUDE_MAILBOXES": "",
"APPLE_MAIL_SHOW_SECURITY_MAILS": "false"
}
}
}
}
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-redpop-apple-mail-mcp": {
"command": "npx",
"args": [
"-y",
"@redpop/apple-mail-mcp"
],
"env": {
"APPLE_MAIL_ACCOUNTS": "",
"APPLE_MAIL_MCP_DEBUG": "false",
"APPLE_MAIL_BODY_SEARCH": "true",
"APPLE_MAIL_HELPER_PATH": "<VALUE>",
"APPLE_MAIL_MAX_RESULTS": "50",
"APPLE_MAIL_INCLUDE_JUNK": "false",
"APPLE_MAIL_INCLUDE_TRASH": "false",
"APPLE_MAIL_MAX_BODY_CHARS": "20000",
"APPLE_MAIL_EXCLUDE_MAILBOXES": "",
"APPLE_MAIL_SHOW_SECURITY_MAILS": "false"
}
}
}
}
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-redpop-apple-mail-mcp": {
"command": "npx",
"args": [
"-y",
"@redpop/apple-mail-mcp"
],
"env": {
"APPLE_MAIL_ACCOUNTS": "",
"APPLE_MAIL_MCP_DEBUG": "false",
"APPLE_MAIL_BODY_SEARCH": "true",
"APPLE_MAIL_HELPER_PATH": "<VALUE>",
"APPLE_MAIL_MAX_RESULTS": "50",
"APPLE_MAIL_INCLUDE_JUNK": "false",
"APPLE_MAIL_INCLUDE_TRASH": "false",
"APPLE_MAIL_MAX_BODY_CHARS": "20000",
"APPLE_MAIL_EXCLUDE_MAILBOXES": "",
"APPLE_MAIL_SHOW_SECURITY_MAILS": "false"
}
}
}
}
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-redpop-apple-mail-mcp": {
"command": "npx",
"args": [
"-y",
"@redpop/apple-mail-mcp"
],
"env": {
"APPLE_MAIL_ACCOUNTS": "",
"APPLE_MAIL_MCP_DEBUG": "false",
"APPLE_MAIL_BODY_SEARCH": "true",
"APPLE_MAIL_HELPER_PATH": "<VALUE>",
"APPLE_MAIL_MAX_RESULTS": "50",
"APPLE_MAIL_INCLUDE_JUNK": "false",
"APPLE_MAIL_INCLUDE_TRASH": "false",
"APPLE_MAIL_MAX_BODY_CHARS": "20000",
"APPLE_MAIL_EXCLUDE_MAILBOXES": "",
"APPLE_MAIL_SHOW_SECURITY_MAILS": "false"
}
}
}
}
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 |
|---|---|---|
| APPLE_MAIL_ACCOUNTS | No | Comma-separated allowlist of accounts. An entry matches an account's UUID, address or name, ignoring case. A name shared by two accounts matches both; use the address or UUID to pick one. Empty means all accounts. |
| APPLE_MAIL_MCP_DEBUG | No | Write one line per helper request to stderr: command, duration and result code, for example 'apple-mail-mcp: search 42 ms ok'. Never payloads or results. Booleans accept true, false, 1, 0. Default: false |
| APPLE_MAIL_BODY_SEARCH | No | Allow bodyContains in search_messages. When false, using it is an INVALID_INPUT error. Booleans accept true, false, 1, 0. Default: true |
| APPLE_MAIL_HELPER_PATH | No | Development only: path to a helper bundle (Dev or Ad hoc). A bundle with the release bundle id is refused. |
| APPLE_MAIL_MAX_RESULTS | No | Upper bound for the limit of a search (1 to 100). Default: 50 |
| APPLE_MAIL_INCLUDE_JUNK | No | Include mailboxes with the junk role. Booleans accept true, false, 1, 0. Default: false |
| APPLE_MAIL_INCLUDE_TRASH | No | Include mailboxes with the trash role. Booleans accept true, false, 1, 0. Default: false |
| APPLE_MAIL_MAX_BODY_CHARS | No | Upper bound for maxChars in get_message (1000 to 100000). Default: 20000 |
| APPLE_MAIL_EXCLUDE_MAILBOXES | No | Comma-separated mailboxes to hide. An entry matches a mailbox name (exact, ignoring case) or a path with /. |
| APPLE_MAIL_SHOW_SECURITY_MAILS | No | Show messages detected as security mails without withholding the body or masking the subject. Booleans accept true, false, 1, 0. Default: false |