AI Skill Hub 推荐使用:邮件影子MCP 是一款优质的MCP工具。AI 综合评分 7.5 分,在同类工具中表现稳健。如果你正在寻找可靠的MCP工具解决方案,这是一个值得深入了解的选择。
邮件影子MCP 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
邮件影子MCP 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
# 方式一:通过 Claude Code CLI 一键安装
claude skill install https://github.com/dryas/mail-shadow-mcp
# 方式二:手动配置 claude_desktop_config.json
{
"mcpServers": {
"----mcp": {
"command": "npx",
"args": ["-y", "mail-shadow-mcp"]
}
}
}
# 配置文件位置
# macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
# Windows: %APPDATA%/Claude/claude_desktop_config.json
# 安装后在 Claude 对话中直接使用 # 示例: 用户: 请帮我用 邮件影子MCP 执行以下任务... Claude: [自动调用 邮件影子MCP MCP 工具处理请求] # 查看可用工具列表 # 在 Claude 中输入:"列出所有可用的 MCP 工具"
// claude_desktop_config.json 配置示例
{
"mcpServers": {
"____mcp": {
"command": "npx",
"args": ["-y", "mail-shadow-mcp"],
"env": {
// "API_KEY": "your-api-key-here"
}
}
}
}
// 保存后重启 Claude Desktop 生效
Structured email access for AI agents — with built-in safety guarantees.
mail-shadow-mcp is a Model Context Protocol (MCP) server that creates a local shadow copy of your IMAP mailboxes in a SQLite database. AI agents query the local database through well-defined MCP tools instead of connecting directly to your IMAP server.
[Remote IMAP Server] ──IMAP──▶ [Sync Engine] ──▶ [SQLite FTS5] ◀──▶ [MCP Server] ◀──▶ [AI Agent]
---
STORE, APPEND, or EXPUNGE commands; your mailbox is never modifiedis_read and is_replied flags synced from IMAP and exposed as filtersget_thread walks full email conversations via Message-ID / In-Reply-To headerstotal_count so agents can page through large result setsdelete_mail, the MCP server performs an IMAP MOVE to a configurable trash folder; nothing is ever permanently deletedstdio for local tools (Claude Desktop), http (StreamableHTTP) or sse for remote and Docker deploymentslinux/amd64, linux/arm64) published to ghcr.io on every release---
| Volume | Purpose |
|---|---|
/config | Must contain config.yaml. Mount read-only. |
/data | Persistent storage for the SQLite database and downloaded attachments. Survives container restarts. |
make build # current platform
make release # cross-compile for all platforms into dist/
Requires Go 1.25+.
Pre-built multi-architecture images (linux/amd64, linux/arm64) are published to the GitHub Container Registry on every release:
docker pull ghcr.io/dryas/mail-shadow-mcp:latest
Step 1 — prepare a config.yaml with transport: http and paths pointing to /data:
transport: http
http_addr: ":8080"
http_bearer_token: "your-secret-token" # see below for how to generate one
database:
path: "/data/mail.db"
attachment_dir: "/data/attachments"
accounts:
- id: "work@example.com"
host: "imap.example.com"
port: 993
username: "work@example.com"
password: "$WORK_IMAP_PASS"
Step 2 — run the container:
docker run -d \
--name mail-shadow-mcp \
-v ./config.yaml:/config/config.yaml:ro \
-v mail-shadow-data:/data \
-p 8080:8080 \
ghcr.io/dryas/mail-shadow-mcp:latest
The MCP server is now reachable at http://localhost:8080/mcp.
services:
mail-shadow-mcp:
image: ghcr.io/dryas/mail-shadow-mcp:latest
restart: unless-stopped
ports:
- "8080:8080"
volumes:
- ./config.yaml:/config/config.yaml:ro # your config — mount read-only
- mail-shadow-data:/data # persistent DB + attachments
environment:
- WORK_IMAP_PASS=your_password_here # referenced as $WORK_IMAP_PASS in config
volumes:
mail-shadow-data:
Passwords as environment variables: Inconfig.yamlyou can reference passwords as$ENV_VAR— the server resolves them at startup. Pass them viaenvironment:in docker-compose or via-ewithdocker run. This way no plaintext password ends up in the config file.
Point your MCP client at http://localhost:8080/mcp using the StreamableHTTP transport:
{
"mcpServers": {
"mail_shadow": {
"url": "http://localhost:8080/mcp",
"headers": {
"Authorization": "Bearer your-secret-token"
}
}
}
}
docker build --build-arg VERSION=dev -t mail-shadow-mcp .
---
Copy the example config and fill in your IMAP credentials:
cp config.example.yaml config.yaml
```yaml sync_interval_min: 15
database: path: "data/mail.db"
attachment_dir: "data/attachments"
高质量的MCP工具,提供结构化的邮件访问
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ Apache 2.0 — 宽松开源协议,可商用,需保留版权声明和 NOTICE 文件,含专利授权条款。
总体来看,邮件影子MCP 是一款质量良好的MCP工具,在同类工具中具备一定竞争力。AI Skill Hub 将持续追踪其更新动态,建议收藏备用,结合自身场景选择合适时机引入使用。
| 原始名称 | mail-shadow-mcp |
| 原始描述 | 开源MCP工具:MCP server for structured, read-only email access. Exposes a minimal, auditable 。⭐7 · Go |
| Topics | mailmcpservergo |
| GitHub | https://github.com/dryas/mail-shadow-mcp |
| License | Apache-2.0 |
| 语言 | Go |
收录时间:2026-05-29 · 更新时间:2026-05-30 · License:Apache-2.0 · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端