WorkMail MCP Server
Provides email and calendar integration with Amazon WorkMail, enabling AI agents to list, read, search, and send emails, as well as manage calendar events through Exchange Web Services.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@WorkMail MCP Serverlist my recent emails from the last 2 days"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
WorkMail MCP Server
A Model Context Protocol (MCP) server that connects Claude Desktop to Amazon WorkMail, providing email and calendar access over a secure local stdio transport.
Features
Tool | Description |
| List emails from any folder with pagination |
| Read full email content by ID |
| Search emails using AQS query syntax |
| Send an email (requires explicit confirmation) |
| List calendar events in a date range |
| Get full event details by ID |
| Create a calendar event (requires explicit confirmation) |
Security
Credentials are stored in macOS Keychain (hardware-encrypted on Apple Silicon) — never in config files or environment variables
Transport uses stdio (local pipe) — no HTTP server, no open ports
Wire encryption via HTTPS/TLS to the WorkMail EWS endpoint
Input validation on every tool call via Zod schemas
Output sanitization redacts credential values from all responses and error messages
Rate limiting prevents runaway request loops (configurable, default 30/min)
Write protection —
send_emailandcreate_calendar_eventrequire aconfirm: trueparameter
Prerequisites
macOS (uses Keychain for credential storage)
Node.js 20+
Amazon WorkMail account with username/password authentication
Setup
1. Install dependencies
git clone https://github.com/your-username/workmail-mcp-server.git
cd workmail-mcp-server
npm install2. Configure environment
cp .env.example .envEdit .env if your WorkMail is in a different region:
WORKMAIL_MCP_EWS_ENDPOINT=https://ews.mail.us-west-2.awsapps.com/EWS/Exchange.asmxThe EWS endpoint follows the pattern https://ews.mail.<region>.awsapps.com/EWS/Exchange.asmx. Common regions: us-east-1, us-west-2, eu-west-1.
3. Store credentials
npm run setup-credentialsThis prompts for your WorkMail email and password, stores them in macOS Keychain, and validates the connection.
4. Build
npm run build5. Register with Claude Desktop
Add the following to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"workmail": {
"command": "node",
"args": ["/absolute/path/to/workmail-mcp-server/dist/index.js"]
}
}
}Restart Claude Desktop. The WorkMail server should appear as connected.
Configuration
All settings are optional and have sensible defaults. Set them in .env or as environment variables:
Variable | Default | Description |
|
| WorkMail EWS endpoint URL |
|
| Max emails returned per request (1-100) |
|
| Max calendar date range in days (1-90) |
|
| Max requests per minute (1-60) |
|
| Log verbosity: |
Environment variables set in claude_desktop_config.json take precedence over .env.
Usage
Once connected, ask Claude Desktop to interact with your WorkMail:
"List my recent emails"
"Read the email from Sarah about the Q3 report"
"Search my inbox for messages about the deployment"
"What meetings do I have this week?"
"Send an email to team@example.com about the status update"
"Create a meeting for tomorrow at 2pm with Alex"
Development
# Run directly from TypeScript (no build step)
npm run dev
# Rebuild after changes
npm run build
# Re-run credential setup
npm run setup-credentialsLogs are written to stderr in JSON format. To see them while running via Claude Desktop, check the MCP server logs in Claude Desktop's developer tools.
Architecture
Claude Desktop <──stdio──> MCP Server (Node.js)
│
▼
EWS Client Layer
│
▼
Amazon WorkMail (Exchange Web Services)The server uses the EWS protocol at the Exchange2010_SP2 compatibility level, which is the version supported by Amazon WorkMail.
License
MIT
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
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