Home › Communication › Langmail MCP for your own Stalwart: email, calendar and contacts

Langmail MCP for your own Stalwart: email, calendar and contacts

Self-hosted MCP server for Stalwart: email, calendar and contacts over JMAP, CalDAV and CardDAV.

TypeScript
★ 11 stars Last pushed 2026-11-27 License: MIT

Connect

Review any command before running it. Package names and URLs come from the server's own registry entry.

Package (npm 0.1.0)

npx -y [email protected]

Or add to your MCP client config:

{
  "mcpServers": {
    "langmail-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "STALWART_URL": "<YOUR_VALUE>",
        "STALWART_PASSWORD": "<YOUR_VALUE>",
        "STALWART_TOKEN": "<YOUR_VALUE>",
        "MCP_AUTH_TOKEN": "<YOUR_VALUE>"
      }
    }
  }
}
  • STALWART_URL required — Base URL of your Stalwart server (JMAP, CalDAV and CardDAV), e.g. https://mail.example.com
  • STALWART_USERNAME — Account login name, usually the mail address; use together with STALWART_PASSWORD
  • STALWART_PASSWORD secret — App password for STALWART_USERNAME, created in Stalwart's account manager
  • STALWART_TOKEN secret — Bearer token such as a Stalwart API key, as an alternative to STALWART_USERNAME and STALWART_PASSWORD
  • MCP_TRANSPORT — Transport: stdio (the default) or http, which serves Streamable HTTP at /mcp
  • MCP_AUTH_TOKEN secret — Required with MCP_TRANSPORT=http: the secret callers send as Authorization: Bearer; at least 16 characters
  • MCP_HOST — HTTP transport: address to listen on
  • MCP_PORT — HTTP transport: port to listen on
  • MCP_PUBLIC_URL — HTTP transport: the address callers reach the server under, e.g. behind a TLS-terminating reverse proxy
  • LOG_LEVEL — Log level for stderr: fatal, error, warn, info, debug, trace or silent
  • LANGMAIL_MCP_ALLOW_UNSUBSCRIBE_POST — 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 — Set to 1 to let preview_email load a message's remote images through this server; off by default

Related servers

Data from the Official MCP Registry