Tencent Mail Agent MCP Server
by wuenhouse
Tencent Mail Agent MCP Server
這是一個基於 Model Context Protocol (MCP) 的伺服器,提供從 騰訊企業郵 (Tencent Exmail) 或任何支援 IMAP 協定的郵件服務中獲取並分析郵件的工具。此伺服器旨在與 Claude Desktop 等 MCP 客戶端配合使用。
功能特點
list_yesterday_emails: 獲取昨天的郵件。
自動依據日期範圍過濾(SINCE 昨天, BEFORE 今天)。
回傳的 metadata 包含:UID、寄件者 (From)、主旨 (Subject)、日期 (Date) 以及內文片段 (snippet,前 500 個字元)。
效能優化:預設限制獲取最新的 100 封郵件(可設定)。
前置需求
安裝步驟
複製專案庫:
git clone <repository-url> cd mail-agent-mcp安裝依賴套件:
npm install編譯專案:
npm run build
設定方法
將
.env.example複製並重新命名為.env:cp .env.example .env編輯
.env並提供您的郵件登入資訊:EMAIL_USER=your-email@example.com EMAIL_PASSWORD=your-app-password EMAIL_HOST=imap.exmail.qq.com EMAIL_PORT=993NOTE對於騰訊企業郵,如果您啟用了兩階段驗證 (2FA),則需要使用應用專用密碼 (App Password)。
使用方法
開發模式 (Development Mode)
npm run dev正式模式 (Production Mode)
npm start整合至 Claude Desktop
若要將此伺服器加入 Claude Desktop,請在您的 claude_desktop_config.json 中新增以下設定:
{
"mcpServers": {
"mail-agent": {
"command": "node",
"args": ["/絕對路徑/至/mail-agent-mcp/dist/index.js"],
"env": {
"EMAIL_USER": "your-email@example.com",
"EMAIL_PASSWORD": "your-app-password",
"EMAIL_HOST": "imap.exmail.qq.com",
"EMAIL_PORT": "993"
}
}
}
}授權條款 (License)
ISC
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/wuenhouse/mail-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server