Tencent Mail Agent MCP Server
Enables fetching and analyzing emails from Tencent Exmail or any IMAP service, with tools to list yesterday's emails.
README
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=993[!NOTE] 對於騰訊企業郵,如果您啟用了兩階段驗證 (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
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.