Imap MCP Server
by aiwerkio.github.AIWerk/mcp-server-imapv1.2.1
Email tools for any IMAP/SMTP provider: list, read, search, send, and manage messages.
context tax
queued
security
queued
cold start
queued
freshness
Slowing4mo ago
Install Imap MCP server
Install in Claude Code
claude mcp add imap -e IMAP_HOST='<imap-host>' -e IMAP_USER='<imap-user>' -e IMAP_PASS='<imap-pass>' -e SMTP_PASS='<smtp-pass>' -- npx -y @aiwerk/mcp-server-imapInstall in Cursor
{
"mcpServers": {
"imap": {
"command": "npx",
"args": [
"-y",
"@aiwerk/mcp-server-imap"
],
"env": {
"IMAP_HOST": "<imap-host>",
"IMAP_USER": "<imap-user>",
"IMAP_PASS": "<imap-pass>",
"SMTP_PASS": "<smtp-pass>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"imap": {
"command": "npx",
"args": [
"-y",
"@aiwerk/mcp-server-imap"
],
"env": {
"IMAP_HOST": "<imap-host>",
"IMAP_USER": "<imap-user>",
"IMAP_PASS": "<imap-pass>",
"SMTP_PASS": "<smtp-pass>"
}
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"imap": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@aiwerk/mcp-server-imap"
],
"env": {
"IMAP_HOST": "<imap-host>",
"IMAP_USER": "<imap-user>",
"IMAP_PASS": "<imap-pass>",
"SMTP_PASS": "<smtp-pass>"
}
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"imap": {
"command": "npx",
"args": [
"-y",
"@aiwerk/mcp-server-imap"
],
"env": {
"IMAP_HOST": "<imap-host>",
"IMAP_USER": "<imap-user>",
"IMAP_PASS": "<imap-pass>",
"SMTP_PASS": "<smtp-pass>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| IMAP_HOST | yes | — | IMAP server hostname (e.g. imap.gmail.com). |
| IMAP_USER | yes | — | IMAP account username / email address. |
| IMAP_PASS | yes | yes | IMAP account password or app-specific password. |
| SMTP_HOST | — | — | SMTP server hostname, required to send email. |
| SMTP_USER | — | — | SMTP account username (defaults to IMAP_USER if unset). |
| SMTP_PASS | — | yes | SMTP account password (defaults to IMAP_PASS if unset). |
Freshness
Slowing — last maintenance signal 4mo ago. The newest of the signals below sets the band.
Last commit (default branch)
no data · GitHub
Latest release
no data · GitHub
Package published
no data · npm/PyPI
Registry entry updated
2026-06-24 · 4mo ago · official registry · v1.2.1
FAQ
›How do I install the Imap MCP server in Claude Code?
Run: claude mcp add imap -e IMAP_HOST='<imap-host>' -e IMAP_USER='<imap-user>' -e IMAP_PASS='<imap-pass>' -e SMTP_PASS='<smtp-pass>' -- npx -y @aiwerk/mcp-server-imap. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does Imap require an API key?
Yes. It expects IMAP_HOST, IMAP_USER, IMAP_PASS, SMTP_PASS, of which 2 are secrets.
›Can I use Imap as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is Imap in the official MCP registry?
Yes, as io.github.AIWerk/mcp-server-imap.
Alternatives to Imap
Other email MCP servers.