MCP server · Audited from source
IMAP MCP server
by nikolausm/imap-mcp-serverMIT licenceAudited 7 Oct 2026 · source 6ebae8af186d
Is it safe? With care — CAUTION, grade B (87/100). It exposes 40 tools: 22 read, 10 write and 8 destructive. The audit recorded 14 findings (0 critical, 0 high, 2 medium, 12 low). Maintainer's description: A powerful Model Context Protocol (MCP) server for IMAP email integration with Claude
Cite
Cite this page
ModelsAtlas. “IMAP MCP server (nikolausm/imap-mcp-server)”. Retrieved 7 Oct 2026. https://modelsatlas.com/mcp/nikolausm/imap-4
2 MCP servers are called IMAP. This is the one we pick. Compare all 2 →
- nikolausm/imap-mcp-server★ 103!CAUTION
- non-dirty/imap-mcp★ 58!CAUTION
Trust audit
Audit 0.4.1 · full source read 7 Oct 2026
14 findings, listed below with the file and line each was found on. Grade A needs a sandboxed behavioural run too; this audit read the source only.
What the source does
- FilesystemDeclared2 observations
- NetworkDeclared6 observations
- ShellNone observedNothing seen in the source
- DependenciesNot pinnedSome ranges float
- SecretsFoundSee the findings
“Declared” means the server says it does this and the source agrees. Browser, file and shell access are expected of some kinds of server.
Five audit layers
| Layer | What we check | Result |
|---|---|---|
L0 Provenance | Repo owner, licence, archive status, activity | PASS |
L1 Static source | Secrets, path traversal, supply chain | WARN 8 findings |
L2 Instructions | Prompt injection and authority framing in docs and tool descriptions | PASS 5 findings |
L3 Inventory | Declared tools match the source | WARN 1 finding |
L4 Sandbox | Run in isolation and watch behaviour | SKIPPED |
Provenance & runtime
Who published it, and what the audit could and could not run
Provenance
- Repository owner
nikolausmUser accountAccount type recorded when we read the repository. - PackagePublished on npm
imap-mcp-serverat version 2.1.0 - LicenceMITFrom the repository, as read at the audited commit.
- Last push2 days agoActivity of the repository when we read it.
- Source commit read6ebae8af186dThe audit covers exactly this commit, read on 7 Oct 2026.
Runtime
- Sandbox runNot run yetThis audit read the source only; it did not execute the server.
- Tool inventory40 declaredRead from the source and classed read, write or destructive.
Every value here is read from the record's own repository and audit.Suggest a correction
Findings (14)
Sorted by severity
MEDIUMHard-coded secretssecret.generic · tests/web-server-accounts.test.ts:10
Excerpt withheld: it is a secret, and we never print one.
- Why
- No further detail recorded for this rule.
- Fix
- —
MEDIUMFilesystem / pathmcp.destructive_tools
imap_bulk_delete, imap_bulk_delete_by_search, imap_delete_by_domain, imap_delete_email, imap_delete_spam, imap_remove_account, imap_remove_keyword, imap_remove_spam_domain
- Why
- 8 tool(s) can delete or overwrite
- Fix
- prefer a read-only mode or scoped tokens; the page states the blast radius
LOWCode injectioncode.eval_exec · tests/env-credentials.test.ts:98
const wizardEnvVarName = new Function('accountName', 'suffix', match![1]) as- Why
- evaluates text as code
- Fix
- remove; use a parser or a dispatch table
LOWFilesystem / pathfs.traversal · src/web/server.ts:110
path.join(__dirname, '../../public'),
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · tests/email-tools-attachment-path-traversal.test.ts:49
filename: '../../../../../../tmp/imap-mcp-escape.txt',
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · tests/email-tools-attachment-path-traversal.test.ts:56
filename: '../../../../../../tmp/imap-mcp-escape.txt',
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWNetwork egressnet.raw_ip · tests/web-server-accounts.test.ts:53
baseUrl = `http://127.0.0.1:${port}`;- Why
- No further detail recorded for this rule.
- Fix
- —
LOWObfuscation / stealthobf.zero_width · tests/html-to-markdown.test.ts:80
const out = normalizeWhitespace('a\n\n\n\nb c \n');- Why
- No further detail recorded for this rule.
- Fix
- —
LOWSupply chainsupply.unpinned · package.json
@modelcontextprotocol/sdk, body-parser, chalk, commander, cors, dotenv, express, imapflow
- Why
- 29 dependency range(s) float
- Fix
- pin exact versions or ship a lockfile
LOWPrompt injectionprompt.credential_read · AGENTS.md:18
Credentials can be overridden at read time via environment variables keyed
- Why
- asks the agent to read credentials
- Fix
- —
LOWPrompt injectionprompt.credential_read · CHANGELOG.md:108
- Selective tool access via environment variables (Issue #87). `IMAP_MCP_READ_ONLY` (truthy: `1`/`true`/`yes`/`on`) registers only the safe, read-only subset — searching, reading, listing folders, unr
- Why
- asks the agent to read credentials
- Fix
- —
LOWPrompt injectionprompt.credential_read · README.md:664
(`0700`/`0600`) so other local users cannot read the key or the credentials
- Why
- asks the agent to read credentials
- Fix
- —
LOWPrompt injectionprompt.credential_read · SECURITY.md:16
anyone who can read both files can read your credentials.
- Why
- asks the agent to read credentials
- Fix
- —
LOWSupply chainprompt.pipe_to_shell · README.md:38
curl -fsSL https://raw.githubusercontent.com/nikolausm/imap-mcp-server/main/install.sh | bash
- Why
- No further detail recorded for this rule.
- Fix
- —
Tools it exposes
40 declared in source · 8 destructive
8 tools can delete or overwrite. An agent that can be talked into calling a tool can be talked into calling this one, so give it a token scoped to what you need.
| Tool | Risk | What it does |
|---|---|---|
imap_bulk_delete | destructive | No description in the source |
imap_bulk_delete_by_search | destructive | No description in the source |
imap_delete_by_domain | destructive | No description in the source |
imap_delete_email | destructive | No description in the source |
imap_delete_spam | destructive | No description in the source |
imap_remove_account | destructive | No description in the source |
imap_remove_keyword | destructive | No description in the source |
imap_remove_spam_domain | destructive | No description in the source |
imap_add_account | write | No description in the source |
imap_add_keyword | write | No description in the source |
imap_add_spam_domain | write | No description in the source |
imap_add_whitelist_domain | write | No description in the source |
imap_create_folder | write | No description in the source |
imap_move_email | write | No description in the source |
imap_save_draft | write | No description in the source |
imap_send_email | write | No description in the source |
imap_update_account | write | No description in the source |
imap_upload_file | write | No description in the source |
imap_check_spam | read | No description in the source |
imap_connect | read | No description in the source |
imap_disconnect | read | No description in the source |
imap_domain_stats | read | No description in the source |
imap_download_attachment | read | No description in the source |
imap_find_email_by_message_id | read | No description in the source |
imap_find_thread_messages | read | No description in the source |
imap_flag_email | read | No description in the source |
imap_folder_status | read | No description in the source |
imap_forward_email | read | No description in the source |
imap_get_email | read | No description in the source |
imap_get_latest_emails | read | No description in the source |
imap_get_unread_count | read | No description in the source |
imap_list_accounts | read | No description in the source |
imap_list_folders | read | No description in the source |
imap_list_spam_domains | read | No description in the source |
imap_mark_as_read | read | No description in the source |
imap_mark_as_unread | read | No description in the source |
imap_reply_to_email | read | No description in the source |
imap_search_emails | read | No description in the source |
imap_test_account | read | No description in the source |
imap_unflag_email | read | No description in the source |
Install
Package version 2.1.0 · audited commit 6ebae8a
Read the findings first. The most severe is Hard-coded secrets (medium) at tests/web-server-accounts.test.ts.
claude mcp add imap-mcp-server -- npx -y [email protected]
The command pins the package version recorded in the source (2.1.0); the audit covers commit 6ebae8af186d. Transport: stdio. Reads these environment variables: IMAP_MCP_ACCOUNT_ENV_MANAGED_IMAP_PASSWORD, IMAP_MCP_ACCOUNT_WORK_GMAIL_IMAP_PASSWORD, IMAP_MCP_ACCOUNT_WORK_GMAIL_SMTP_PASSWORD, IPQUALITYSCORE_API_KEY. Give it the narrowest token it needs.
Audit history
- !CAUTION B 87 / 100
First audit ·
6ebae8af186d
README badge
For maintainers · updates on every re-audit
[](https://modelsatlas.com/mcp/nikolausm/imap-4/)
The badge always shows the latest audit; a maintainer cannot pin an old verdict.
Other ratings
Cited, never blended into our score
No third-party security ratings are recorded for this server yet. When they exist they appear here with their source and date, beside, not inside, our grade.
Questions about IMAP MCP server
What is the IMAP MCP server?
What tools does IMAP expose?
Is IMAP safe to connect to an agent?
What credentials does IMAP need?
How does IMAP run?
How current is this page?
Which IMAP MCP server is the right one?
Sources
- nikolausm/imap-mcp-server on GitHub — the source we read, its licence, stars and activityObserved · 7 Oct 2026
- ModelsAtlas trust audit — CAUTION verdict for commit 6ebae8af186dObserved · 7 Oct 2026
Spotted something wrong? Report a correction · Methodology
Keep going in your AI
Opens with this page as the source. We add nothing else to the prompt.
- What is the IMAP MCP server?
- What tools does IMAP expose?
- Is IMAP safe to connect to an agent?