AE

azizmazrou/ews-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

38 stars 29 forks 质量 70 趋势 20MIT

azizmazrou/ews-mcp 是从 https://github.com/azizmazrou/ews-mcp. 导入的 MCP 服务器候选人。

概览

azizmazrou/ews-mcp 是从 https://github.com/azizmazrou/ews-mcp. 导入的 MCP 服务器候选人。

概述(AI 翻译)

一个模型上下文协议服务器,提供一个真实的LLM助手, Microsoft Exchange 邮箱的类型控制** — 邮件,日历, 人、任务、草稿和(明确限制的)发送——口语EWS 原生。没有Graph代理,没有Microsoft 365连接器。支持 Claude Code、Claude Desktop、Open WebUI 以及任何其他 MCP 客户端。

这个仓库里有两条线

行 在哪里 状态 集装箱图像
4.5 — 当前 v5/ 正在开发中。推荐所有新设置使用。 ghcr.io/azizmazrou/ews-mcp:v4.5*
4.0 — 遗产 src/ 仅维护。 ghcr.io/azizmazrou/ews-mcp:latest

4.5 行是新手重写:一个合并的 28 工具曲面, 模型实际上可以复制的简短别名ID,令牌精益响应(~60-令牌) 结果卡代替原始的Outlook HTML),一个缓存优先的本地镜像,具有 阿拉伯语正确的全文搜索,以及一个安全模型在一个地方执行。 遗留线保持:latest在4.5版本之前的稳定部署 是推广的。如果你是新来的,请使用4.5并阅读 v5/README.md。

快速入门 — 本地4.5分(推荐)

不需要 Docker 。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

EWS MCP Server

EWS MCP Server is a Model Context Protocol (MCP) server that connects an AI assistant to a Microsoft Exchange mailbox over Exchange Web Services (EWS). It reads and searches mail, manages drafts, calendar events, contacts, tasks, and inbox rules, and places outgoing mail behind operator controls and two-phase confirmation. It talks to Exchange directly without Microsoft Graph or a Microsoft 365 connector, and works with Claude Code, Claude Desktop, Open WebUI, and other MCP clients.

Two lines live in this repository

Choose the 4.5 line for every new installation. The legacy 4.0 line stays on :latest only so existing deployments do not break before 4.5 is promoted.

Line Directory Status Container image
4.5 — current v5/ Active development. Recommended for all new setups. ghcr.io/azizmazrou/ews-mcp:v4.5*
4.0 — legacy src/ Maintenance only. Kept stable for :latest users. ghcr.io/azizmazrou/ews-mcp:latest

The 4.5 line provides 34 tools, short alias ids such as m12 and e3, cleaned text cards instead of raw Outlook HTML, a local SQLite mirror with Arabic-aware full-text search, and one central safety gate. Start with v5/README.md.

Legacy 4.0 (:latest) users: stop the server before or right after an Exchange password change, update EWS_PASSWORD, and start it again. The 4.0 server retries HTTP 401 responses as throttling and can trigger a directory lockout; see docs/legacy/TROUBLESHOOTING.md. The 4.5 line stops on the first rejection.

In stdio mode, your MCP client launches ewsmcp as a local child process and talks to it over standard input and output. No network port opens on your machine, and the server uses your workstation network and VPN. Python 3.11 or newer is required.

Clone the repository and install from the repository root:

git clone https://github.com/azizmazrou/ews-mcp.git
cd ews-mcp
python3 -m venv .venv        # Windows: python -m venv .venv
source .venv/bin/activate        # Windows PowerShell: .venv\Scripts\Activate.ps1
pip install "./v5[extract]"

This creates .venv/bin/ewsmcp, or .venv\Scripts\ewsmcp.exe on Windows. Use that absolute path when registering the server.

Register with Claude Code. Add --scope user to make it available in every project, or run the command in the project where you will use it:

claude mcp add exchange \
  -e EWS_SERVER_URL="https://mail.example.com/EWS/Exchange.asmx" \
  -e EWS_EMAIL="[email protected]" \
  -e EWS_USERNAME="you" \
  -e EWS_PASSWORD="change-me" \
  -- /path/to/ews-mcp/.venv/bin/ewsmcp
在 GitHub 查看完整 README

安装

docker run -d --name ews-mcp-v5 -p 127.0.0.1:8000:8000 --env-file .env \
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "exchange": { "command": "/path/to/ews-mcp/.venv/bin/ewsmcp", "env": { "EWS_SERVER_URL": "https://mail.example.com/EWS/Exchange.asmx", "EWS_EMAIL": "[email protected]", "EWS_USERNAME": "you", "EWS_PASSWORD": "change-me" } } } }