mail-archive

mail-archive

Enables AI assistants to query and manage per-project Outlook mail archives, providing tools to list projects, search emails, and update archives incrementally.

Category
访问服务器

README

mail-archive

Per-project Outlook PST / live-folder mail archive with incremental sync. Designed to be driven either from a plain CLI or from any AI assistant (Claude, Gemini, ChatGPT, local LLMs) via an MCP server or by piping JSON output.

Status: pre-alpha. APIs and config schema will change.

What it does

Given one or more Outlook folders (or PST files) already split by project, mail-archive incrementally ingests new mail into a per-project local archive stored as JSON. Downstream tools (an AI, a script, a MCP client) can then answer questions about that history without re-parsing Outlook every time.

Requirements

  • Windows + Outlook desktop (for the live-folder / COM source)
  • Python 3.11+
  • pip install mail-archive[outlook] for the pywin32 dependency

Only pywin32 is required for basic use; [mcp] adds AI-client support.

Quick start

# 1. Install
pip install "mail-archive[outlook]"

# 2. Create a config file (edit projects afterwards)
mail-archive init

# 3. Ingest the first batch (Outlook must be running)
mail-archive ingest --project "ProjectA"

# 4. Later, sync everything incrementally
mail-archive update-all

Config

~/.mail-archive/config.toml:

storage_dir = "~/.mail-archive/storage"

[[project]]
name = "ProjectA"
source = "outlook-folder"
folder = "Inbox/ProjectA"
auto_update = true

[[project]]
name = "ProjectB"
source = "outlook-folder"
folder = "Inbox/ProjectB"

Using it from an AI assistant (MCP)

mail-archive ships a Model Context Protocol server so any MCP-capable client — Claude Desktop, Cursor, Cline, Zed, Continue, and others — can query the archive directly.

pip install "mail-archive[outlook,mcp]"

Then point your client at the mail-archive-mcp command. Example config for Claude Desktop (%APPDATA%\Claude\claude_desktop_config.json on Windows):

{
  "mcpServers": {
    "mail-archive": {
      "command": "mail-archive-mcp",
      "args": ["--config", "C:/Users/you/.mail-archive/config.toml"]
    }
  }
}

Cursor / Cline / Zed use the same shape — look for their mcpServers JSON block and drop in the same command + args.

The server exposes four tools: list_projects, query_emails, update_project, and update_all. Once loaded, you can ask the AI things like "show me the three most recent emails about topic X in ProjectA" and it will pick the right tool and arguments on its own.

Design

  • Storage layout is stable: <storage_dir>/_index.json + <storage_dir>/<project>/emails.jsonl.
  • Every CLI subcommand is pure Python and prints JSON on stdout (except update-all, which is quiet by default).
  • The MCP server is a thin wrapper over the same library functions — no subprocesses, no duplicated logic.
  • Sources are pluggable: implement one function in mail_archive.sources and dispatch to it from fetch_for_project.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选
mcp-server-qdrant

mcp-server-qdrant

这个仓库展示了如何为向量搜索引擎 Qdrant 创建一个 MCP (Managed Control Plane) 服务器的示例。

官方
精选
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选