Home / Productivity / Langmail MCP for your own Stalwart: email, calendar and contacts
Langmail MCP for your own Stalwart: email, calendar and contacts
io.github.langmail/langmail-mcp · v0.1.0 stdio
Self-hosted MCP server for Stalwart: email, calendar and contacts over JMAP, CalDAV and CardDAV.
Description supplied by the publisher in the MCP Registry. We have not tested this server.
Ranks #43 of 355 Productivity servers on Socketlist by score, with 12 GitHub stars and a last code push today.
Install
npx -y langmail-mcpAssembled from the package metadata in the official MCP Registry (including any subcommand or flag the publisher lists). Some publishers do not list the subcommand that starts MCP mode, so confirm the command in the README, along with any required configuration and credentials, before connecting it to real data.
Connect Langmail MCP for your own Stalwart: email, calendar and contacts to Claude Code, Cursor or VS Code
Built from what the publisher declared in the official MCP Registry (the launch command above). We have not run this server. Replace anything in <angle brackets>, and keep keys and tokens in your environment, not in a shared file.
Claude Code
Run in a terminal. Adds the server at local scope; add --scope project or --scope user to share it. Secret variables the publisher declares are included; drop any the README says are optional. Claude Code setup guide.
claude mcp add --env STALWART_URL=<stalwart_url> --env STALWART_PASSWORD=<stalwart_password> --env STALWART_TOKEN=<stalwart_token> --env MCP_AUTH_TOKEN=<mcp_auth_token> --transport stdio langmail-mcp-for-your-own-stalwart-email -- npx -y langmail-mcp.mcp.json (Claude Code project scope, VS Code with Copilot)
Put this in a .mcp.json file at the project root. ${NAME} reads the value from your environment, so no secret is written to the file. VS Code and .mcp.json guide.
{
"mcpServers": {
"langmail-mcp-for-your-own-stalwart-email": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"langmail-mcp"
],
"env": {
"STALWART_URL": "${STALWART_URL}",
"STALWART_PASSWORD": "${STALWART_PASSWORD}",
"STALWART_TOKEN": "${STALWART_TOKEN}",
"MCP_AUTH_TOKEN": "${MCP_AUTH_TOKEN}"
}
}
}
}Cursor
Put this in .cursor/mcp.json in the project, or ~/.cursor/mcp.json for every project. Cursor mcp.json guide.
{
"mcpServers": {
"langmail-mcp-for-your-own-stalwart-email": {
"command": "npx",
"args": [
"-y",
"langmail-mcp"
],
"env": {
"STALWART_URL": "${env:STALWART_URL}",
"STALWART_PASSWORD": "${env:STALWART_PASSWORD}",
"STALWART_TOKEN": "${env:STALWART_TOKEN}",
"MCP_AUTH_TOKEN": "${env:MCP_AUTH_TOKEN}"
}
}
}
}Configuration the publisher declares
| Environment variable | Required | Secret | Publisher's note |
|---|---|---|---|
STALWART_URL | Yes | No | Base URL of your Stalwart server (JMAP, CalDAV and CardDAV), e.g. https://mail.example.com |
STALWART_USERNAME | No | No | Account login name, usually the mail address; use together with STALWART_PASSWORD |
STALWART_PASSWORD | No | Yes | App password for STALWART_USERNAME, created in Stalwart's account manager |
STALWART_TOKEN | No | Yes | Bearer token such as a Stalwart API key, as an alternative to STALWART_USERNAME and STALWART_PASSWORD |
MCP_TRANSPORT | No | No | Transport: stdio (the default) or http, which serves Streamable HTTP at /mcp |
MCP_AUTH_TOKEN | No | Yes | Required with MCP_TRANSPORT=http: the secret callers send as Authorization: Bearer; at least 16 characters |
MCP_HOST | No | No | HTTP transport: address to listen on |
MCP_PORT | No | No | HTTP transport: port to listen on |
MCP_PUBLIC_URL | No | No | HTTP transport: the address callers reach the server under, e.g. behind a TLS-terminating reverse proxy |
LOG_LEVEL | No | No | Log level for stderr: fatal, error, warn, info, debug, trace or silent |
LANGMAIL_MCP_ALLOW_UNSUBSCRIBE_POST | No | No | Set to 1 to let unsubscribe_from_list send the RFC 8058 one-click request to the sender's URL; off by default |
LANGMAIL_MCP_ALLOW_REMOTE_IMAGES | No | No | Set to 1 to let preview_email load a message's remote images through this server; off by default |
"Required" and "secret" are the publisher's own flags in the registry, and many publishers leave them unset, so check the README too.
Allowlist entry
If your organisation restricts MCP servers, this is the entry an admin adds to allowedMcpServers in Claude Code managed settings or a GitHub Copilot enterprise managed-settings.json. A serverCommand entry must match the configured command and arguments exactly, so change both together.
{
"allowedMcpServers": [
{
"serverCommand": [
"npx",
"-y",
"langmail-mcp"
]
}
]
} How allowlists work in each client: MCP server allowlists for Claude Code, GitHub Copilot and Cursor. Before you connect it to real data: 10 security checks for MCP servers.
Score breakdown
| Part | Points | What we observed | Result |
|---|---|---|---|
| Maintenance | 40/40 | Last push today, 0 open issues | Strong |
| Security hygiene | 30/35 | Licence MIT, SECURITY.md present, published package or hosted endpoint | Strong |
| Adoption | 13/25 | 12 GitHub stars, 1,300 npm downloads a week | Fair |
Result: Strong is 80% or more of the part's points, Fair 50% or more. Automated signals, not a security audit. How we score.
Maintain this server? Claim or correct this listing, or get featured in Productivity. Paid placements are labelled and never change the score.
Five scored MCP servers, every Monday
The Plug Weekly is a free email picked from these scores, with a short Best of MCP servers PDF when you join. About a 3-minute read. Unsubscribe any time.
| GitHub stars | 12 |
| npm weekly downloads | 1,300 |
| Last push | today |
| Licence | MIT |
| Open issues | 0 |
| SECURITY.md | Yes |
| Language | TypeScript |
| Latest version published | 2026-11-17 |
Signals captured from GitHub, npm and the official MCP Registry on December 1, 2026. See the scoring method.
Similar servers
Compare all alternativescaldav-mcp
Score 92. Maintenance 40 of 40, security 35 of 35, adoption 17 of 25.io.github.langmail/caldav-mcp
An MCP server that gives your AI agent the events and tasks of any CalDAV calendar.
HQBase
Score 83. Maintenance 40 of 40, security 30 of 35, adoption 13 of 25.io.github.HQBase/hqbase
Connect AI agents to your self-hosted HQBase shared email workspace.
iCloud
Score 78. Maintenance 38 of 40, security 35 of 35, adoption 5 of 25.io.github.epinethrone/icloud-mcp
iCloud Mail, Calendar, Contacts, Reminders, Notes and Drive. Approval-first, self-hosted or local.