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.
Run it locally
Install the package and point your AI client at it.
npm
npx -y [email protected]Environment variables
STALWART_URLrequiredBase URL of your Stalwart server (JMAP, CalDAV and CardDAV), e.g. https://mail.example.com
STALWART_USERNAMEAccount login name, usually the mail address; use together with STALWART_PASSWORD
STALWART_PASSWORDsecretApp password for STALWART_USERNAME, created in Stalwart's account manager
STALWART_TOKENsecretBearer token such as a Stalwart API key, as an alternative to STALWART_USERNAME and STALWART_PASSWORD
MCP_TRANSPORTTransport: stdio (the default) or http, which serves Streamable HTTP at /mcp
MCP_AUTH_TOKENsecretRequired with MCP_TRANSPORT=http: the secret callers send as Authorization: Bearer; at least 16 characters
MCP_HOSTHTTP transport: address to listen on
MCP_PORTHTTP transport: port to listen on
MCP_PUBLIC_URLHTTP transport: the address callers reach the server under, e.g. behind a TLS-terminating reverse proxy
LOG_LEVELLog level for stderr: fatal, error, warn, info, debug, trace or silent
LANGMAIL_MCP_ALLOW_UNSUBSCRIBE_POSTSet 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_IMAGESSet to 1 to let preview_email load a message's remote images through this server; off by default
More from github.com/langmail
Caldav Mcp
github.com/langmail
CalDAV calendar operations (list, create, update, delete events) as MCP tools.
Carddav Mcp
github.com/langmail
CardDAV contacts as MCP tools: list address books; list, get, create, update and delete contacts.
Imap Mcp
github.com/langmail
IMAP email as MCP tools: create draft messages in the Drafts folder of any IMAP mailbox.
More MCP servers
Agent Commons
github.com/lankylo
Reviewed registry of API knowledge and verified recipes for AI agents. USDC on Base; some free.
Roslyn Workbench MCP
github.com/lantean-code
Bring Visual Studio-style C# fixes and refactorings to your AI agent with local Roslyn Code Actions.
Facebook Pages Mcp
github.com/lanternrow
Facebook Pages organic analytics, post management, and insights via Meta Graph API v25.0.
Namecheap Api Mcp
github.com/lanternrow
Namecheap API — domains, DNS, contacts, registrar lock, SSL listing, and pricing.
Tiktok Organic Mcp
github.com/lanternrow
TikTok organic analytics — video performance, engagement metrics, and profile insights.
Youtube Organic Mcp
github.com/lanternrow
YouTube organic analytics — channel stats, video performance, watch time & audience insights.