Tencent Mail Agent MCP Server

Tencent Mail Agent MCP Server

Enables fetching and analyzing emails from Tencent Exmail or any IMAP service, with tools to list yesterday's emails.

Category
Visit Server

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 封郵件(可設定)。

前置需求

  • Node.js (建議 v18 或更高版本)
  • npm
  • 騰訊企業郵帳號或任何 IMAP 帳號。

安裝步驟

  1. 複製專案庫:

    git clone <repository-url>
    cd mail-agent-mcp
    
  2. 安裝依賴套件:

    npm install
    
  3. 編譯專案:

    npm run build
    

設定方法

  1. .env.example 複製並重新命名為 .env

    cp .env.example .env
    
  2. 編輯 .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

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.

Official
Featured
TypeScript
Magic Component Platform (MCP)

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.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

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.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

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.

Official
Featured
TypeScript
Kagi MCP Server

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.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

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.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured