Self-hosted MCP server for Stalwart: email, calendar and contacts over JMAP, CalDAV and CardDAV.
Maintain this server? Claim it
This server only runs locally, from a package. Install it with the instructions on this page to try it.
Pick your client. Values in capitals, like YOUR_TOKEN, are yours to fill in.
Run in a terminal
claude mcp add langmail-mcp \ -e STALWART_URL=YOUR_STALWART_URL \ -- npx -y [email protected]
Environment
STALWART_URL (required): Base URL of your Stalwart server (JMAP, CalDAV and CardDAV), e.g. https://mail.example.comSTALWART_USERNAME (optional, not in the config above): Account login name, usually the mail address; use together with STALWART_PASSWORDSTALWART_PASSWORD (optional, not in the config above): App password for STALWART_USERNAME, created in Stalwart's account managerSTALWART_TOKEN (optional, not in the config above): Bearer token such as a Stalwart API key, as an alternative to STALWART_USERNAME and STALWART_PASSWORDMCP_TRANSPORT (optional, not in the config above): Transport: stdio (the default) or http, which serves Streamable HTTP at /mcpMCP_AUTH_TOKEN (optional, not in the config above): Required with MCP_TRANSPORT=http: the secret callers send as Authorization: Bearer; at least 16 charactersMCP_HOST (optional, not in the config above): HTTP transport: address to listen onMCP_PORT (optional, not in the config above): HTTP transport: port to listen onMCP_PUBLIC_URL (optional, not in the config above): HTTP transport: the address callers reach the server under, e.g. behind a TLS-terminating reverse proxyLOG_LEVEL (optional, not in the config above): Log level for stderr: fatal, error, warn, info, debug, trace or silentLANGMAIL_MCP_ALLOW_UNSUBSCRIBE_POST (optional, not in the config above): Set to 1 to let unsubscribe_from_list send the RFC 8058 one-click request to the sender's URL; off by defaultLANGMAIL_MCP_ALLOW_REMOTE_IMAGES (optional, not in the config above): Set to 1 to let preview_email load a message's remote images through this server; off by defaultWe don't run packages, so we can't list this server's tools.
Runs on your machine from a package. We don't run packages, so it isn't checked.