Search & web / IMAP mailbox
IMAP mailbox
io.github.ni-c/imap-mcp · v0.7.0
Read, search and organise any IMAP mailbox, with writes off by default
Description supplied by the publisher in the MCP Registry. We have not tested this server.
Ranks #319 of 817 Search & web servers on Socketlist by score, with 4 GitHub stars and a last code push 25d ago.
Install
npx -y @ni-c/imap-mcpdocker run -i --rm ghcr.io/ni-c/imap-mcp:0.7.0Assembled from the package metadata in the official MCP Registry (including any subcommand or flag the publisher lists). Some publishers do not list the subcommand that starts MCP mode, so confirm the command in the README, along with any required configuration and credentials, before connecting it to real data.
Connect IMAP mailbox to Claude Code, Cursor or VS Code
Built from what the publisher declared in the official MCP Registry (the launch command above). We have not run this server. Replace anything in <angle brackets>, and keep keys and tokens in your environment, not in a shared file.
Claude Code
Run in a terminal. Adds the server at local scope; add --scope project or --scope user to share it. Secret variables the publisher declares are included; drop any the README says are optional. Claude Code setup guide.
claude mcp add --env IMAP_HOST=<imap_host> --env IMAP_USER=<imap_user> --env IMAP_PASSWORD=<imap_password> --transport stdio imap-mailbox -- npx -y @ni-c/imap-mcp.mcp.json (Claude Code project scope, VS Code with Copilot)
Put this in a .mcp.json file at the project root. ${NAME} reads the value from your environment, so no secret is written to the file. VS Code and .mcp.json guide.
{
"mcpServers": {
"imap-mailbox": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@ni-c/imap-mcp"
],
"env": {
"IMAP_HOST": "${IMAP_HOST}",
"IMAP_USER": "${IMAP_USER}",
"IMAP_PASSWORD": "${IMAP_PASSWORD}"
}
}
}
}Cursor
Put this in .cursor/mcp.json in the project, or ~/.cursor/mcp.json for every project. Cursor mcp.json guide.
{
"mcpServers": {
"imap-mailbox": {
"command": "npx",
"args": [
"-y",
"@ni-c/imap-mcp"
],
"env": {
"IMAP_HOST": "${env:IMAP_HOST}",
"IMAP_USER": "${env:IMAP_USER}",
"IMAP_PASSWORD": "${env:IMAP_PASSWORD}"
}
}
}
} Configuration the publisher declares
| Environment variable | Required | Secret | Publisher's note |
|---|---|---|---|
IMAP_HOST | Yes | No | Hostname of the IMAP server, e.g. imap.example.net |
IMAP_USER | Yes | No | Mailbox user name |
IMAP_PASSWORD | Yes | Yes | Mailbox password or app password |
IMAP_PORT | No | No | Defaults to 993 with implicit TLS, 143 otherwise |
IMAP_TLS | No | No | implicit (default), starttls or none |
IMAP_MAILBOX | No | No | Default mailbox to work in (default: INBOX) |
IMAP_SEEN_KEYWORD | No | No | IMAP keyword marking what the assistant has already seen (default: AiSeen) |
IMAP_READ_ONLY | No | No | Set to false to register the mailbox write tools; defaults to true |
IMAP_ALLOW_TOOLS | No | No | Comma-separated tool names or list_* prefixes to register; 'essential' selects a curated preset (default: all tools) |
IMAP_DENY_TOOLS | No | No | Comma-separated tool names or list_* prefixes to remove from whatever IMAP_ALLOW_TOOLS left |
IMAP_DOWNLOAD_DIR | No | No | Directory attachments may be written to; unset means the server never touches the filesystem |
IMAP_INSECURE_TLS | No | No | Set to true to accept self-signed certificates, scoped to this connection |
8 more are listed in the registry entry; see the README for the full set.
"Required" and "secret" are the publisher's own flags in the registry, and many publishers leave them unset, so check the README too.
Allowlist entry
If your organisation restricts MCP servers, this is the entry an admin adds to allowedMcpServers in Claude Code managed settings or a GitHub Copilot enterprise managed-settings.json. A serverCommand entry must match the configured command and arguments exactly, so change both together.
{
"allowedMcpServers": [
{
"serverCommand": [
"npx",
"-y",
"@ni-c/imap-mcp"
]
}
]
} How allowlists work in each client: MCP server allowlists for Claude Code, GitHub Copilot and Cursor. Before you connect it to real data: 10 security checks for MCP servers.
Signals
| GitHub stars | 4 |
| npm weekly downloads | 0 |
| Last push | 25d ago |
| Licence | MIT |
| Open issues | 0 |
| SECURITY.md | Yes |
| Language | TypeScript |
| Latest version published | 2026-11-04 |
Signals captured from GitHub, npm and the official MCP Registry on November 11, 2026. See the scoring method.
Similar servers
Apple Mail
Score 79Search, read and act on Apple Mail — threads, attachments, body search, writes off by default
Groundhog
Score 76Search, read and research the web, with hidden text stripped by default and sources hashed
WireCat Mail
Score 72Your mailbox for agents: search, organise, draft and send mail. Add the account with mail first.
Five MCP servers worth your time, every week
The Plug Weekly is a free email picked from these scores. About a 3-minute read. Unsubscribe any time.