MCP server for Stalwart Mail Server. Provides email operations (search, read, send, delete) via JMAP and optional admin API access for server management.
mcp-server-stalwart is an MCP project maintained in the codechap/mcp-server-stalwart repository. The maintainer describes its purpose as “MCP server for Stalwart Mail Server. Provides email operations (search, read, send, delete) via JMAP and optional admin API access for server management”. Read the project documentation for the complete scope.
The project provides a local client configuration using /path/to/mcp-server-stalwart. Follow the repository’s build and installation steps before copying it, and replace example paths with the paths on your own computer.
The example declares JMAP_SESSION_URL, JMAP_USERNAME, JMAP_PASSWORD, JMAP_SECRETS_FILE, STALWART_ADMIN_URL, STALWART_ADMIN_PASSWORD. Secret-looking values have been replaced with placeholders. Required and optional labels are shown only when the documentation states them.
Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.
Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.
| Tool | What it does |
|---|---|
| get_mailboxes | |
| create_mailbox | |
| search_emails | |
| get_emails | |
| delete_emails | |
| send_email | |
| download_attachments | |
| verify_account_auth |
{
"mcpServers": {
"stalwart": {
"command": "/path/to/mcp-server-stalwart",
"env": {
"JMAP_SESSION_URL": "https://mail.example.com/jmap/session",
"JMAP_USERNAME": "you@example.com",
"JMAP_PASSWORD": "YOUR_JMAP_PASSWORD",
"JMAP_SECRETS_FILE": "YOUR_JMAP_SECRETS_FILE",
"STALWART_ADMIN_URL": "https://mail.example.com",
"STALWART_ADMIN_PASSWORD": "YOUR_STALWART_ADMIN_PASSWORD"
}
}
}
}From the project documentation. Replace placeholders and example paths before connecting.
| Variable | Description | Required |
|---|---|---|
| JMAP_SESSION_URL | Declared in the maintainer’s client configuration. | Check documentation |
| JMAP_USERNAME | Declared in the maintainer’s client configuration. | Check documentation |
| JMAP_PASSWORD | Declared in the maintainer’s client configuration. | Check documentation |
| JMAP_SECRETS_FILE | Declared in the maintainer’s client configuration. | Check documentation |
| STALWART_ADMIN_URL | Declared in the maintainer’s client configuration. | Check documentation |
| STALWART_ADMIN_PASSWORD | Declared in the maintainer’s client configuration. | Check documentation |
Your assistant inside the workspace — read channels, search history, post messages and tame the noise.
Build a programmable telecommunications stack for connecting telephony services with the Internet via a cloud-based utility.
Inbox intelligence — search, read, draft and send Gmail through your assistant with OAuth auto-setup.
Read and write Jira, Confluence, Bitbucket, JSM and Compass from your AI client — with your own permissions.
Read and send Telegram messages through your assistant — chats, channels and history via the client API.
Enables Discord bot integration with Model Context Protocol (MCP) compatible applications like Claude Desktop.