MCP Server Imap
Email tools for any IMAP/SMTP provider: list, read, search, send, and manage messages.
- Pricing
- Open source
- Runs
- Locally
- Version
- 1.2.1
- Listing updated
- 5 days ago
About MCP Server Imap
MCP Server Imap is an open-source MCP server. It runs locally on your machine and is started by your AI client.
Install
Run in a terminal
claude mcp add mcp-server-imap --env IMAP_HOST='<IMAP_HOST>' --env IMAP_USER='<IMAP_USER>' --env IMAP_PASS='<IMAP_PASS>' --env SMTP_PASS='<SMTP_PASS>' -- npx -y @aiwerk/mcp-server-imapAdd to claude_desktop_config.json
{
"mcpServers": {
"mcp-server-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
{
"mcpServers": {
"mcp-server-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 .vscode/mcp.json
{
"servers": {
"mcp-server-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 ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"mcp-server-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 your client's MCP settings (most use this shape)
{
"mcpServers": {
"mcp-server-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>"
}
}
}
}Using several servers? Build one config file with the MCP config generator.
Configuration
IMAP_HOSTIMAP server hostname (e.g. imap.gmail.com).RequiredIMAP_USERIMAP account username / email address.RequiredIMAP_PASSIMAP account password or app-specific password.RequiredSMTP_HOSTSMTP server hostname, required to send email.SMTP_USERSMTP account username (defaults to IMAP_USER if unset).SMTP_PASSSMTP account password (defaults to IMAP_PASS if unset).
Pricing
Open source
Prices change. Check aiwerkmcp.com before you buy.
More servers for the same service
MCP Server Imap FAQ
Is MCP Server Imap free?
Yes. MCP Server Imap is open source, so you can use and self-host it for free.
How do I add MCP Server Imap to Claude Code?
Run this command in your terminal: claude mcp add mcp-server-imap --env IMAP_HOST='<IMAP_HOST>' --env IMAP_USER='<IMAP_USER>' --env IMAP_PASS='<IMAP_PASS>' --env SMTP_PASS='<SMTP_PASS>' -- npx -y @aiwerk/mcp-server-imap
Where this comes from
- Description: from the official MCP Registry entry.
- Install steps: from the official MCP Registry entry.