ต้นแบบ · รุ่นทดลอง: มีทุก server ในทะเบียนทางการ อัปเดตทุก 30 นาที รีวิวและบัญชีผู้ใช้จะมาในขั้นถัดไป
PopNx MCPที่รวม MCP สำหรับคนใช้ AI · อธิบายเป็นภาษาคน

IMAP mailbox

โดย ni-cรุ่น 0.7.0i★ –iรันบนเครื่อง
ชื่อใน registryio.github.ni-c/imap-mcp

ติดตั้ง

ภาพรวม

คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)

Read, search and organise any IMAP mailbox, with writes off by default

สามเสาของ PopNx MCP

สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน

ใช้ทำอะไรได้

ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry

  • การเชื่อมต่อ: รันบนเครื่อง
  • ช่องทาง (transport): stdio
  • หมวด: ค้นข้อมูลและความจำของ AI
  • ต้องใส่ค่าเหล่านี้: IMAP_HOST, IMAP_USER, IMAP_PASSWORD

ติดตั้ง

เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง

ก่อนติดตั้ง

  • ผลตรวจเบื้องต้น: ผ่าน 1 จาก 1 ข้อ
  • รันในเครื่องคุณด้วยสิทธิ์ของผู้ใช้คุณ (ไฟล์ อินเทอร์เน็ต แอปต่าง ๆ)
  • ค่าที่คุณต้องใส่เอง: IMAP_HOST, IMAP_USER, IMAP_PASSWORD, IMAP_PORT, IMAP_TLS, IMAP_MAILBOX, IMAP_SEEN_KEYWORD, IMAP_READ_ONLY, IMAP_ALLOW_TOOLS, IMAP_DENY_TOOLS, IMAP_DOWNLOAD_DIR, IMAP_INSECURE_TLS, IMAP_DRAFTS_MAILBOX, IMAP_MAX_MESSAGES, IMAP_MAX_ATTACHMENT_BYTES, IMAP_MAX_DOWNLOAD_BYTES, IMAP_MAX_EXTRACT_BYTES, IMAP_COMMAND_TIMEOUT_SECONDS, IMAP_ATTACHMENT_TYPES, IMAP_TRUSTED_AUTHSERV_ID

ค่าที่ติดป้ายความลับคือกุญแจของบัญชีคุณ อย่าส่งให้ใคร และอย่าวางในแชต

ต้องเตรียมก่อน

  • npmติดตั้ง Node.js (มีคำสั่ง npx) ในเครื่อง

คุณใช้แอปไหน

เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”

เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json

{
  "mcpServers": {
    "imap": {
      "command": "npx",
      "args": [
        "-y",
        "@ni-c/imap-mcp"
      ],
      "env": {
        "IMAP_HOST": "ใส่ค่าของคุณ",
        "IMAP_USER": "ใส่ค่าของคุณ",
        "IMAP_PASSWORD": "ใส่ค่าของคุณ",
        "IMAP_PORT": "ใส่ค่าของคุณ",
        "IMAP_TLS": "ใส่ค่าของคุณ",
        "IMAP_MAILBOX": "ใส่ค่าของคุณ",
        "IMAP_SEEN_KEYWORD": "ใส่ค่าของคุณ",
        "IMAP_READ_ONLY": "ใส่ค่าของคุณ",
        "IMAP_ALLOW_TOOLS": "ใส่ค่าของคุณ",
        "IMAP_DENY_TOOLS": "ใส่ค่าของคุณ",
        "IMAP_DOWNLOAD_DIR": "ใส่ค่าของคุณ",
        "IMAP_INSECURE_TLS": "ใส่ค่าของคุณ",
        "IMAP_DRAFTS_MAILBOX": "ใส่ค่าของคุณ",
        "IMAP_MAX_MESSAGES": "ใส่ค่าของคุณ",
        "IMAP_MAX_ATTACHMENT_BYTES": "ใส่ค่าของคุณ",
        "IMAP_MAX_DOWNLOAD_BYTES": "ใส่ค่าของคุณ",
        "IMAP_MAX_EXTRACT_BYTES": "ใส่ค่าของคุณ",
        "IMAP_COMMAND_TIMEOUT_SECONDS": "ใส่ค่าของคุณ",
        "IMAP_ATTACHMENT_TYPES": "ใส่ค่าของคุณ",
        "IMAP_TRUSTED_AUTHSERV_ID": "ใส่ค่าของคุณ"
      }
    }
  }
}

พิมพ์คำสั่งนี้ใน Terminal

claude mcp add imap --env IMAP_HOST='ใส่ค่าของคุณ' --env IMAP_USER='ใส่ค่าของคุณ' --env IMAP_PASSWORD='ใส่ค่าของคุณ' --env IMAP_PORT='ใส่ค่าของคุณ' --env IMAP_TLS='ใส่ค่าของคุณ' --env IMAP_MAILBOX='ใส่ค่าของคุณ' --env IMAP_SEEN_KEYWORD='ใส่ค่าของคุณ' --env IMAP_READ_ONLY='ใส่ค่าของคุณ' --env IMAP_ALLOW_TOOLS='ใส่ค่าของคุณ' --env IMAP_DENY_TOOLS='ใส่ค่าของคุณ' --env IMAP_DOWNLOAD_DIR='ใส่ค่าของคุณ' --env IMAP_INSECURE_TLS='ใส่ค่าของคุณ' --env IMAP_DRAFTS_MAILBOX='ใส่ค่าของคุณ' --env IMAP_MAX_MESSAGES='ใส่ค่าของคุณ' --env IMAP_MAX_ATTACHMENT_BYTES='ใส่ค่าของคุณ' --env IMAP_MAX_DOWNLOAD_BYTES='ใส่ค่าของคุณ' --env IMAP_MAX_EXTRACT_BYTES='ใส่ค่าของคุณ' --env IMAP_COMMAND_TIMEOUT_SECONDS='ใส่ค่าของคุณ' --env IMAP_ATTACHMENT_TYPES='ใส่ค่าของคุณ' --env IMAP_TRUSTED_AUTHSERV_ID='ใส่ค่าของคุณ' -- npx -y @ni-c/imap-mcp

เติมค่าที่เว้นว่างไว้ก่อนรัน

เปิดใน Cursor

หรือคัดลอกค่าตั้งเอง

วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json

{
  "mcpServers": {
    "imap": {
      "command": "npx",
      "args": [
        "-y",
        "@ni-c/imap-mcp"
      ],
      "env": {
        "IMAP_HOST": "ใส่ค่าของคุณ",
        "IMAP_USER": "ใส่ค่าของคุณ",
        "IMAP_PASSWORD": "ใส่ค่าของคุณ",
        "IMAP_PORT": "ใส่ค่าของคุณ",
        "IMAP_TLS": "ใส่ค่าของคุณ",
        "IMAP_MAILBOX": "ใส่ค่าของคุณ",
        "IMAP_SEEN_KEYWORD": "ใส่ค่าของคุณ",
        "IMAP_READ_ONLY": "ใส่ค่าของคุณ",
        "IMAP_ALLOW_TOOLS": "ใส่ค่าของคุณ",
        "IMAP_DENY_TOOLS": "ใส่ค่าของคุณ",
        "IMAP_DOWNLOAD_DIR": "ใส่ค่าของคุณ",
        "IMAP_INSECURE_TLS": "ใส่ค่าของคุณ",
        "IMAP_DRAFTS_MAILBOX": "ใส่ค่าของคุณ",
        "IMAP_MAX_MESSAGES": "ใส่ค่าของคุณ",
        "IMAP_MAX_ATTACHMENT_BYTES": "ใส่ค่าของคุณ",
        "IMAP_MAX_DOWNLOAD_BYTES": "ใส่ค่าของคุณ",
        "IMAP_MAX_EXTRACT_BYTES": "ใส่ค่าของคุณ",
        "IMAP_COMMAND_TIMEOUT_SECONDS": "ใส่ค่าของคุณ",
        "IMAP_ATTACHMENT_TYPES": "ใส่ค่าของคุณ",
        "IMAP_TRUSTED_AUTHSERV_ID": "ใส่ค่าของคุณ"
      }
    }
  }
}

เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง

เปิดใน VS Code

หรือคัดลอกค่าตั้งเอง

วางในไฟล์ .vscode/mcp.json ของโปรเจกต์

{
  "servers": {
    "imap": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@ni-c/imap-mcp"
      ],
      "env": {
        "IMAP_HOST": "ใส่ค่าของคุณ",
        "IMAP_USER": "ใส่ค่าของคุณ",
        "IMAP_PASSWORD": "ใส่ค่าของคุณ",
        "IMAP_PORT": "ใส่ค่าของคุณ",
        "IMAP_TLS": "ใส่ค่าของคุณ",
        "IMAP_MAILBOX": "ใส่ค่าของคุณ",
        "IMAP_SEEN_KEYWORD": "ใส่ค่าของคุณ",
        "IMAP_READ_ONLY": "ใส่ค่าของคุณ",
        "IMAP_ALLOW_TOOLS": "ใส่ค่าของคุณ",
        "IMAP_DENY_TOOLS": "ใส่ค่าของคุณ",
        "IMAP_DOWNLOAD_DIR": "ใส่ค่าของคุณ",
        "IMAP_INSECURE_TLS": "ใส่ค่าของคุณ",
        "IMAP_DRAFTS_MAILBOX": "ใส่ค่าของคุณ",
        "IMAP_MAX_MESSAGES": "ใส่ค่าของคุณ",
        "IMAP_MAX_ATTACHMENT_BYTES": "ใส่ค่าของคุณ",
        "IMAP_MAX_DOWNLOAD_BYTES": "ใส่ค่าของคุณ",
        "IMAP_MAX_EXTRACT_BYTES": "ใส่ค่าของคุณ",
        "IMAP_COMMAND_TIMEOUT_SECONDS": "ใส่ค่าของคุณ",
        "IMAP_ATTACHMENT_TYPES": "ใส่ค่าของคุณ",
        "IMAP_TRUSTED_AUTHSERV_ID": "ใส่ค่าของคุณ"
      }
    }
  }
}

เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง

ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น

ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี

ค่าที่ต้องใส่เอง

  • IMAP_HOST จำเป็น env
    Hostname of the IMAP server, e.g. imap.example.net
  • IMAP_USER จำเป็น env
    Mailbox user name
  • IMAP_PASSWORD ความลับ จำเป็น env
    Mailbox password or app password
  • IMAP_PORT env
    Defaults to 993 with implicit TLS, 143 otherwise
  • IMAP_TLS env
    implicit (default), starttls or none
  • IMAP_MAILBOX env
    Default mailbox to work in (default: INBOX)
  • IMAP_SEEN_KEYWORD env
    IMAP keyword marking what the assistant has already seen (default: AiSeen)
  • IMAP_READ_ONLY env
    Set to false to register the mailbox write tools; defaults to true
  • IMAP_ALLOW_TOOLS env
    Comma-separated tool names or list_* prefixes to register; 'essential' selects a curated preset (default: all tools)
  • IMAP_DENY_TOOLS env
    Comma-separated tool names or list_* prefixes to remove from whatever IMAP_ALLOW_TOOLS left
  • IMAP_DOWNLOAD_DIR env
    Directory attachments may be written to; unset means the server never touches the filesystem
  • IMAP_INSECURE_TLS env
    Set to true to accept self-signed certificates, scoped to this connection
  • IMAP_DRAFTS_MAILBOX env
    Drafts folder to save into; by default the one flagged \Drafts is used
  • IMAP_MAX_MESSAGES env
    Default number of messages a listing returns (default: 100)
  • IMAP_MAX_ATTACHMENT_BYTES env
    Ceiling for returning an attachment inline (default: 1048576)
  • IMAP_MAX_DOWNLOAD_BYTES env
    Ceiling for writing an attachment to disk (default: 26214400)
  • IMAP_MAX_EXTRACT_BYTES env
    Ceiling for reading a document's text with mode=text (default: 10485760, maximum: 67108864)
  • IMAP_COMMAND_TIMEOUT_SECONDS env
    Seconds one IMAP command may take before the call is abandoned (default: 30, maximum: 600)
  • IMAP_ATTACHMENT_TYPES env
    Comma-separated content-type allowlist for attachments
  • IMAP_TRUSTED_AUTHSERV_ID env
    authserv-id your provider stamps into Authentication-Results; without it every verdict is reported as forgeable

ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README

ทำอะไรได้บ้าง

รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง

ผลตรวจเบื้องต้นi

เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 7 พ.ย. 2569

  • ✓ ผ่าน

    ตัวตนผู้ทำตรงกับ repo

    ชื่อใน registry ยืนยันด้วยบัญชี GitHub ni-c ซึ่งเป็นเจ้าของ repo

  • … ยังไม่ตรวจ

    ยังมีคนดูแล

    ยังไม่ได้อ่านข้อมูล repo จาก GitHub

  • … ยังไม่ตรวจ

    มีสัญญาอนุญาต (license)

    ยังไม่ได้อ่านข้อมูล repo จาก GitHub

  • – ไม่เกี่ยว

    endpoint ตอบ

    ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต

  • – ไม่เกี่ยว

    ล็อกอินแบบ OAuth

    ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน

  • … ยังไม่ตรวจ

    คำอธิบายเครื่องมือไม่มีคำสั่งแอบแฝง

    รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต

เทียบกับตัวอื่นในหมวด ค้นข้อมูลและความจำของ AIi

  • ดาวมากกว่า 0% ของอีก 7277 ตัวในหมวดนี้
  • ส่งรุ่นใหม่เข้า registry ล่าสุดกว่า 92% ของอีก 7277 ตัวในหมวดนี้
  • ผลตรวจเบื้องต้นดีกว่าหรือเท่ากับ 100% ของอีก 7277 ตัวในหมวดนี้

เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo

คำถามที่พบบ่อย

IMAP mailbox ปลอดภัยไหม?

จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น

ต้องใช้กุญแจหรือรหัสอะไรบ้าง?

ต้องใส่ค่าเหล่านี้: IMAP_HOST, IMAP_USER, IMAP_PASSWORD

ตัวนี้รันบนเครื่องหรือบนคลาวด์?

รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)

ยังมีคนดูแลอยู่ไหม?

repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.7.0) เข้า registry 3 วันที่ผ่านมา

ใช้กับโปรแกรมไหนได้บ้าง?

โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Node.js, Docker ในเครื่องด้วย

มีตัวไหนใช้แทนได้บ้าง?

ในหมวดเดียวกันมี Context7, Codebase Memory, Exa

ตัวที่ใช้แทนได้

server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว

อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi

Context7

โดย upstash

ส่งคู่มือการใช้ไลบรารีและเฟรมเวิร์กรุ่นล่าสุดให้ AI อ่านก่อนตอบ ช่วยให้โค้ดที่ AI เขียนไม่ใช้คำสั่งเก่าที่เลิกใช้แล้ว

บนเครื่องหรือคลาวด์★ 64,224MITอัปเดต เมื่อวาน
ติดตั้ง

Codebase Memory

โดย DeusData

Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.

รันบนเครื่อง★ 48,148MITอัปเดต 21 วันที่ผ่านมา
ติดตั้ง

Exa

โดย exa-labs

Connect AI agents to Exa for web search, content fetching, and multi-step research.

รันบนคลาวด์★ 5,213MITอัปเดต เดือนที่แล้ว
ติดตั้ง

README จากผู้ทำ

เปิดอ่าน README

ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ

imap-mcp

A Model Context Protocol (MCP) server for any IMAP mailbox. It speaks IMAP rather than one vendor's API, so it works with whatever provider you already have.

Lets MCP clients like Claude Code, Claude Desktop or Codex read and search your mail, organise it into folders, save attachments and draft replies — with every message fenced as untrusted content, and the write tools off unless you turn them on.

Eleven tools, not fifty: a mail account is a workflow, not an API surface, so related operations are folded into one tool with a mode rather than split across many. And eleven is the ceiling, not the floor — IMAP_ALLOW_TOOLS=essential registers a curated six instead, and under the read-only default that narrows to four. See choosing which tools load.

What makes it different

It cannot send mail. That is the feature. An agent with access to private data, exposure to untrusted content, and a channel to the outside world is exploitable by anyone who can put a message in the inbox — the pattern that produced EchoLeak, where one crafted email exfiltrated internal data from Microsoft 365 Copilot with no user interaction. This server has the first two and deliberately not the third. save_draft writes the reply into your Drafts folder; you send it from your own mail client. No amount of clever text in a message can make this server post anything anywhere.

Writes are off until you turn them on. With only IMAP_HOST, IMAP_USER and IMAP_PASSWORD set, the server registers six read tools and nothing else. The mailbox tools appear with IMAP_READ_ONLY=false — note the default is true, the opposite of the other servers in this family, because this one reaches a mailbox. Tools that are off are not registered at all — a capability the model cannot see is one it cannot be talked into using.

Mail is treated as hostile input, because it is. Anyone in the world can put text in your inbox. Message bodies are fenced between markers carrying a per-call random nonce, _and_ every line inside them is prefixed with that nonce, so the "this is data" signal does not stop at the edges of a long forwarded thread. A reminder follows the block, because otherwise the last instruction-shaped sentence in the model's context is the attacker's. Zero-width characters and directional overrides are stripped before the model sees anything, hidden HTML elements are dropped on a best-effort basis (the fencing, not the stripping, is what carries the weight), and markdown image syntax — inline and reference style — is defused so a rendering client cannot be made to fetch a tracking URL.

That covers folder names too: a folder name is chosen by whoever created the folder, which on a shared mailbox is not necessarily you. list_mailboxes returns the name twice — path exactly as the server spelled it, because that is the handle every other tool takes, and display_name cleaned up for reading, with a warning on the entry when the two differ.

Alongside the message you get a server-side assessment: the SPF/DKIM/DMARC verdicts with the authserv-id they came from, which prompt-injection shapes matched, and which words mix Latin with Cyrillic or Greek letters. When something matches, the warning is the first thing in the result rather than a field buried in JSON.

Those verdicts carry a forgeable flag, and by default it is always true. A sender can write an Authentication-Results header of their own, and if your provider does not add one, theirs is the only one there — nothing inside the message distinguishes the two. Set IMAP_TRUSTED_AUTHSERV_ID to the id your provider stamps (it is the first token of the header on any message you already have) and only that id counts as authentic. Until you do, spf=pass is reported as what it is: a claim, from a header anyone could have written.

"New mail" that actually works. The server tags messages it has handed over with a custom IMAP keyword (AiSeen by default), so list_new_messages returns each message once. The human \Seen state is never touched — everything is read with BODY.PEEK.

Deleting and moving ask a person. Where the client supports MCP elicitation, delete_messages, move_messages and deleting a folder raise a real dialog that the model cannot answer on its behalf. Where it does not, they fall back to a two-call token — and say so, rather than implying somebody approved. ELICITATION=false takes that fallback deliberately; it never removes the guard. See Asking a person.

Requirements

  • Node.js 24 or newer
  • An IMAP account. Providers with two-factor authentication generally need an app-specific password.

Configuration

VariableRequiredDefaultDescription
IMAP_HOSTyes—Hostname of the IMAP server, e.g. imap.example.net
IMAP_USERyes—Account username, usually the address
IMAP_PASSWORDyes—Password or app-specific password
IMAP_PORTno993 / 143Defaults by TLS mode
IMAP_TLSnoimplicitimplicit, starttls or none
IMAP_MAILBOXnoINBOXMailbox the message tools default to
IMAP_READ_ONLYno`true`Exactly false registers the five mailbox tools
IMAP_ALLOW_TOOLSno—Tool names, list_* prefixes or essential
IMAP_DENY_TOOLSno—Same syntax; subtracted from the allow list
IMAP_SEEN_KEYWORDnoAiSeenKeyword for new-mail tracking; empty turns it off
IMAP_TRUSTED_AUTHSERV_IDno—The authserv-id your provider stamps; see below
IMAP_DRAFTS_MAILBOXnoautoOverrides the folder found via the \Drafts flag
IMAP_MAX_MESSAGESno100Default page size
IMAP_MAX_ATTACHMENT_BYTESno1048576Ceiling for returning an attachment inline
IMAP_MAX_DOWNLOAD_BYTESno26214400Ceiling for writing one to disk
IMAP_MAX_EXTRACT_BYTESno10485760Ceiling for reading a document's text; max 67108864
IMAP_COMMAND_TIMEOUT_SECONDSno30Seconds one IMAP command may take; max 600
IMAP_ATTACHMENT_TYPESnosee belowComma-separated content-type allowlist
IMAP_DOWNLOAD_DIRno—Setting it allows saving attachments there
IMAP_INSECURE_TLSnofalseExactly true accepts a self-signed certificate
ELICITATIONnotruefalse replaces the dialog with the token. Not prefixed

Booleans are compared against the literal string true; 1, yes and True are not true. IMAP_READ_ONLY is the mirror image: only the literal false turns it off, so a typo leaves the write tools unregistered.

IMAP_COMMAND_TIMEOUT_SECONDS applies to each IMAP command, not to a whole tool call, and your MCP client has a deadline of its own; read slow servers before raising it.

Choosing which tools load

IMAP_ALLOW_TOOLS and IMAP_DENY_TOOLS take comma-separated tool names; a trailing * matches a whole family. essential is a curated preset of six — list_mailboxes, list_new_messages, list_messages, get_message, set_message_flags and move_messages. Four of those are read tools, so it stays useful under the read-only default.

IMAP_ALLOW_TOOLS=essential

IMAP_ALLOW_TOOLS=list_new_messages,get_message,move_messages IMAP_DENY_TOOLS=delete_messages

One boundary the list cannot draw: move_messages copies as well as moves (mode: "copy"), and the two are one tool. Denying move_messages removes both; there is no way to keep moving and forbid copying, or the other way round. Both modes ask for confirmation.

An entry that matches no tool aborts startup and names it, so a typo cannot silently hide a tool — an absent tool is not something anyone traces back to an environment variable. A filtered tool is never registered, so it is absent from tools/list and unknown to tools/call alike, exactly like a write tool under IMAP_READ_ONLY.

It covers tools, and the attachment resources follow get_attachments: when that tool is filtered out, they are not registered either.

If you run several of these servers at once, mcp-hub is the other answer — its /hub endpoint

ตัดมาแค่ช่วงต้น อ่านต่อใน repo

ถาม PopNx