Skip to main content

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

io.github.langmail/langmail-mcp

v0.1.0Updated Nov 17, 2026stdio · npm

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

Install

Replace 1 placeholder with your own values.

Run in your terminal. Replace 1 placeholder.

claude mcp add langmail-mcp -e 'STALWART_URL=<your-stalwart-url>' -e MCP_TRANSPORT=stdio -e MCP_HOST=127.0.0.1 -e MCP_PORT=8080 -e LOG_LEVEL=warn -- npx -y [email protected]

Configuration

12 settings.

  • STALWART_URL
    Env var· required
    Base URL of your Stalwart server (JMAP, CalDAV and CardDAV), e.g. https://mail.example.com
  • STALWART_PASSWORD
    Env var· optional· secret
    App password for STALWART_USERNAME, created in Stalwart's account manager
  • STALWART_TOKEN
    Env var· optional· secret
    Bearer token such as a Stalwart API key, as an alternative to STALWART_USERNAME and STALWART_PASSWORD
  • MCP_AUTH_TOKEN
    Env var· optional· secret
    Required with MCP_TRANSPORT=http: the secret callers send as Authorization: Bearer; at least 16 characters
  • STALWART_USERNAME
    Env var· optional
    Account login name, usually the mail address; use together with STALWART_PASSWORD
  • MCP_TRANSPORT
    Env var· optional
    Transport: stdio (the default) or http, which serves Streamable HTTP at /mcpDefault: stdio
Show 6 more
  • MCP_HOST
    Env var· optional
    HTTP transport: address to listen onDefault: 127.0.0.1
  • MCP_PORT
    Env var· optional
    HTTP transport: port to listen onDefault: 8080
  • MCP_PUBLIC_URL
    Env var· optional
    HTTP transport: the address callers reach the server under, e.g. behind a TLS-terminating reverse proxy
  • LOG_LEVEL
    Env var· optional
    Log level for stderr: fatal, error, warn, info, debug, trace or silentDefault: warn
  • LANGMAIL_MCP_ALLOW_UNSUBSCRIBE_POST
    Env var· optional
    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
    Env var· optional
    Set to 1 to let preview_email load a message's remote images through this server; off by default

Listed in the official MCP Registry since Nov 17, 2026. Mirrored daily; last checked Nov 26, 2026.