MCP directory
LM

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

by github.com/langmail · v0.1.0 · updated Nov 17, 2026

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

npm

Run it locally

Install the package and point your AI client at it.

Environment variables

  • STALWART_URLrequired

    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_PASSWORDsecret

    App password for STALWART_USERNAME, created in Stalwart's account manager

  • STALWART_TOKENsecret

    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_TOKENsecret

    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

More from github.com/langmail

More MCP servers