Stalwart Mail MCP
Connects AI clients to self-hosted Stalwart mailboxes for email, attachments, OCR, drafts, sending, and contacts.
Install Stalwart Mail MCP
Pick your client, then add it in one click or paste the config.
~/Library/Application Support/Claude/claude_desktop_config.json{
"mcpServers": {
"stalwart-mail-mcp": {
"command": "npx",
"args": [
"-y",
"stalwart-mail-mcp"
],
"env": {
"STALWART_URL": "YOUR_VALUE_HERE",
"STALWART_USER": "YOUR_VALUE_HERE",
"STALWART_PASSWORD": "YOUR_VALUE_HERE",
"STALWART_TOKEN": "YOUR_VALUE_HERE"
}
}
}
}
Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.
Values are written into the snippet above so you can paste it as is. They never leave your browser.
claude mcp add --env STALWART_URL=YOUR_VALUE_HERE --env STALWART_USER=YOUR_VALUE_HERE --env STALWART_PASSWORD=YOUR_VALUE_HERE --env STALWART_TOKEN=YOUR_VALUE_HERE --transport stdio stalwart-mail-mcp -- npx -y stalwart-mail-mcpRun in your terminal. Add --scope project to share it with your team through .mcp.json.
Automated check passed— started and listed 10 tools correctly ().
Overview
Use cases
- Search a self-hosted Stalwart mailbox by sender, subject, date, or thread
- Read email attachments and extract text from scanned documents
- Draft and send replies with files from disk
- Look up contacts across address books and mail history
- Restrict an agent to read-only mailbox access
Key features
- JMAP access to self-hosted Stalwart mailboxes
- Email search, reading, replies, and sending
- Draft creation, sending, and deletion
- Attachment extraction with optional OCR
- Contact search and creation
- Configurable write and attachment permissions
Tools10
What Stalwart Mail MCP lets your agent do. Expand a tool for its parameters.
Security & health
What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.
Recent health check succeeded.
What it can do
From the 10 tools this server returned when we ran it; 10 declare their own safety hints.
Observed 2026-11-04 in an isolated sandbox. A description of reach, not a security audit.
Supply-chain signal
No high-severity advisories surfaced by our automated scan.
Scanned 4h ago via OSV.dev · stalwart-mail-mcp (npm)
Adoption & maintenance
Factual signals from GitHub, npm, and our automated checks — not a rating.
How Stalwart Mail MCP works
Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings
Reviews
No reviews yet — be the first to share how it worked for you.
Frequently Asked Questions about Stalwart Mail MCP
Related MCP servers
Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.
AllMCPs Directory Badge
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/stalwart-mail-mcp)<a href="https://allmcps.com/mcp/stalwart-mail-mcp"><img src="https://allmcps.com/api/badge/stalwart-mail-mcp?style=directory" alt="Stalwart Mail MCP on AllMCPs" /></a>