WorkMail MCP Server
WorkMail MCP サーバー
Claude Desktop を Amazon WorkMail に接続し、安全なローカル stdio トランスポート経由でメールおよびカレンダーへのアクセスを提供する Model Context Protocol (MCP) サーバーです。
機能
ツール | 説明 |
| ページネーションを使用して任意のフォルダーからメールを一覧表示 |
| ID を指定してメールの全内容を読み取る |
| AQS クエリ構文を使用してメールを検索 |
| メールを送信する(明示的な確認が必要) |
| 指定した期間のカレンダーイベントを一覧表示 |
| ID を指定してイベントの詳細を取得 |
| カレンダーイベントを作成する(明示的な確認が必要) |
Related MCP server: Gmail & Calendar Multi-Account MCP Server
セキュリティ
認証情報は macOS キーチェーン(Apple Silicon 上ではハードウェア暗号化)に保存され、設定ファイルや環境変数には決して保存されません
トランスポートには stdio(ローカルパイプ)を使用 — HTTP サーバーやオープンポートは使用しません
WorkMail EWS エンドポイントへの HTTPS/TLS による通信の暗号化
Zod スキーマによるすべてのツール呼び出しの入力検証
出力のサニタイズにより、すべてのレスポンスおよびエラーメッセージから認証情報の値を削除
レート制限により、無限ループのリクエストを防止(設定可能、デフォルトは 30回/分)
書き込み保護 —
send_emailおよびcreate_calendar_eventにはconfirm: trueパラメータが必要
前提条件
macOS(認証情報の保存にキーチェーンを使用)
Node.js 20 以上
ユーザー名/パスワード認証を使用する Amazon WorkMail アカウント
セットアップ
1. 依存関係のインストール
git clone https://github.com/your-username/workmail-mcp-server.git
cd workmail-mcp-server
npm install2. 環境設定
cp .env.example .envWorkMail が別のリージョンにある場合は .env を編集してください:
WORKMAIL_MCP_EWS_ENDPOINT=https://ews.mail.us-west-2.awsapps.com/EWS/Exchange.asmxEWS エンドポイントは https://ews.mail.<region>.awsapps.com/EWS/Exchange.asmx というパターンに従います。一般的なリージョン:us-east-1、us-west-2、eu-west-1。
3. 認証情報の保存
npm run setup-credentialsこれにより、WorkMail のメールアドレスとパスワードの入力を求められ、macOS キーチェーンに保存され、接続が検証されます。
4. ビルド
npm run build5. Claude Desktop への登録
Claude Desktop の設定ファイル (~/Library/Application Support/Claude/claude_desktop_config.json) に以下を追加します:
{
"mcpServers": {
"workmail": {
"command": "node",
"args": ["/absolute/path/to/workmail-mcp-server/dist/index.js"]
}
}
}Claude Desktop を再起動します。WorkMail サーバーが接続済みとして表示されるはずです。
設定
すべての設定はオプションであり、適切なデフォルト値が設定されています。.env または環境変数として設定してください:
変数 | デフォルト | 説明 |
|
| WorkMail EWS エンドポイント URL |
|
| リクエストごとに返される最大メール数 (1-100) |
|
| カレンダーの日付範囲の最大日数 (1-90) |
|
| 1分あたりの最大リクエスト数 (1-60) |
|
| ログの詳細度: |
claude_desktop_config.json で設定された環境変数は .env よりも優先されます。
使用方法
接続後、Claude Desktop に WorkMail との対話を依頼してください:
「最近のメールを一覧表示して」
「Sarah からの Q3 レポートに関するメールを読んで」
「受信トレイからデプロイメントに関するメッセージを検索して」
「今週の予定は?」
「team@example.com にステータス更新についてのメールを送って」
「明日午後2時に Alex との会議を作成して」
開発
# Run directly from TypeScript (no build step)
npm run dev
# Rebuild after changes
npm run build
# Re-run credential setup
npm run setup-credentialsログは JSON 形式で stderr に書き込まれます。Claude Desktop 経由で実行中にこれを確認するには、Claude Desktop の開発者ツールで MCP サーバーのログを確認してください。
アーキテクチャ
Claude Desktop <──stdio──> MCP Server (Node.js)
│
▼
EWS Client Layer
│
▼
Amazon WorkMail (Exchange Web Services)このサーバーは、Amazon WorkMail がサポートするバージョンである Exchange2010_SP2 互換レベルの EWS プロトコルを使用しています。
ライセンス
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Connect any mailbox to Claude, ChatGPT & AI: read, send, reply, schedule & search emails.
Email infrastructure for AI agents — send, receive, search, and reply to email over MCP.
Read, search, send, organize, draft and schedule email across your inboxes from any MCP client.
Email inboxes for AI agents: send, receive, reply, search, and manage threaded email over MCP.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceIntegrates mailbox.org email and calendar services with Claude, enabling email search, composition, management, calendar access, and Sieve email filter configuration through a secure, locally-hosted interface.4MIT
- FlicenseNot gradedqualityDmaintenanceA local MCP server that connects multiple Gmail and Google Calendar accounts to Claude Desktop, enabling email and calendar management across accounts.4-
- AlicenseNot gradedqualityAmaintenanceConnects Claude Desktop to a local email client, enabling AI-powered email reading, searching, drafting, and organization while preventing sending or permanent deletion.1Apache 2.0
- FlicenseNot gradedqualityCmaintenanceA local MCP server that connects multiple Gmail accounts and Google Calendars to Claude Desktop, enabling email and calendar operations via natural language.-
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/darwinz/workmail-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server