Live survey315 models · 14 providers · 23,592 auditsAudited implement · SAFE →What changedHow we verifyllms.txt

MCP server · Audited from source

IMAP MCP server

by nikolausm/imap-mcp-serverMIT licenceAudited 7 Oct 2026 · source 6ebae8af186d

npm imap-mcp-server 2.1.0stdio★ 103
!CAUTIONGrade B · 87/100 · 7 Oct 2026 · 6ebae8a
103GitHub stars

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

Ask an AI about this pageGChatGPTCClaudePPerplexityGeGeminiXGrok
More
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 →

Trust audit

Audit 0.4.1 · full source read 7 Oct 2026

Trust score87/100!CAUTION B
0 critical0 high2 medium12 low0 info

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

LayerWhat we checkResult
L0 ProvenanceRepo owner, licence, archive status, activityPASS
L1 Static sourceSecrets, path traversal, supply chainWARN 8 findings
L2 InstructionsPrompt injection and authority framing in docs and tool descriptionsPASS 5 findings
L3 InventoryDeclared tools match the sourceWARN 1 finding
L4 SandboxRun in isolation and watch behaviourSKIPPED

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 npmimap-mcp-server at 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
F-03 Hard-coded secretsCWE-798 · CWE-321Layer L1

Excerpt withheld: it is a secret, and we never print one.

Why
No further detail recorded for this rule.
Fix
—
MEDIUMFilesystem / pathmcp.destructive_tools
F-05 Filesystem / pathCWE-22 · CWE-59Layer L3
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
F-02 Code injectionCWE-78 · CWE-94 · CWE-95Layer L1
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
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
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
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
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
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
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
F-04 Network egressCWE-200 · CWE-319Layer L1
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
F-07 Obfuscation / stealthCWE-506 · CWE-94Layer L1
const out = normalizeWhitespace('a\n\n\n\nb c   \n');
Why
No further detail recorded for this rule.
Fix
—
LOWSupply chainsupply.unpinned · package.json
F-08 Supply chainCWE-829 · CWE-1357Layer L1
@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
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
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
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
- 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
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
(`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
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
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
F-08 Supply chainCWE-829 · CWE-1357Layer L2
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

22 read10 write8 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.

ToolRiskWhat it does
imap_bulk_deletedestructiveNo description in the source
imap_bulk_delete_by_searchdestructiveNo description in the source
imap_delete_by_domaindestructiveNo description in the source
imap_delete_emaildestructiveNo description in the source
imap_delete_spamdestructiveNo description in the source
imap_remove_accountdestructiveNo description in the source
imap_remove_keyworddestructiveNo description in the source
imap_remove_spam_domaindestructiveNo description in the source
imap_add_accountwriteNo description in the source
imap_add_keywordwriteNo description in the source
imap_add_spam_domainwriteNo description in the source
imap_add_whitelist_domainwriteNo description in the source
imap_create_folderwriteNo description in the source
imap_move_emailwriteNo description in the source
imap_save_draftwriteNo description in the source
imap_send_emailwriteNo description in the source
imap_update_accountwriteNo description in the source
imap_upload_filewriteNo description in the source
imap_check_spamreadNo description in the source
imap_connectreadNo description in the source
imap_disconnectreadNo description in the source
imap_domain_statsreadNo description in the source
imap_download_attachmentreadNo description in the source
imap_find_email_by_message_idreadNo description in the source
imap_find_thread_messagesreadNo description in the source
imap_flag_emailreadNo description in the source
imap_folder_statusreadNo description in the source
imap_forward_emailreadNo description in the source
imap_get_emailreadNo description in the source
imap_get_latest_emailsreadNo description in the source
imap_get_unread_countreadNo description in the source
imap_list_accountsreadNo description in the source
imap_list_foldersreadNo description in the source
imap_list_spam_domainsreadNo description in the source
imap_mark_as_readreadNo description in the source
imap_mark_as_unreadreadNo description in the source
imap_reply_to_emailreadNo description in the source
imap_search_emailsreadNo description in the source
imap_test_accountreadNo description in the source
imap_unflag_emailreadNo 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

  1. !CAUTION B 87 / 100

    First audit · 6ebae8af186d

README badge

For maintainers · updates on every re-audit

ModelsAtlas: CAUTION BMODELSATLASCAUTION · B
[![ModelsAtlas: CAUTION B](https://modelsatlas.com/mcp/nikolausm/imap-4/badge.svg)](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?
A powerful Model Context Protocol (MCP) server for IMAP email integration with Claude
What tools does IMAP expose?
40 in total: 22 read-only, 10 that write, and 8 that can delete or overwrite (imap_bulk_delete, imap_bulk_delete_by_search, imap_delete_by_domain, imap_delete_email, imap_delete_spam). Every one is listed on this page with its risk.
Is IMAP safe to connect to an agent?
With care. The audit graded it B (87/100) and found 14 things worth knowing before you trust this server, listed below with the exact line each was found on. Separately from the audit: 8 of its tools can destroy data, so scope the token you give it to what you actually need.
What credentials does IMAP need?
It reads IMAP_MCP_ACCOUNT_ENV_MANAGED_IMAP_PASSWORD, IMAP_MCP_ACCOUNT_WORK_GMAIL_IMAP_PASSWORD, IMAP_MCP_ACCOUNT_WORK_GMAIL_SMTP_PASSWORD and IPQUALITYSCORE_API_KEY from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.
How does IMAP run?
It speaks stdio, so it runs as a local process your client starts. It is published on npm as imap-mcp-server at 2.1.0.
How current is this page?
The grade is for one exact copy of the source (6ebae8af186d), read on 2026-10-07. The repository is watched and re-audited when it changes.
Which IMAP MCP server is the right one?
nikolausm/imap-mcp-server (this page). 2 servers share the name; see the side-by-side comparison.

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.