Open Source & Standards
Parts of Langmail are open source today, and every layer uses open standards.
We are opening Langmail one part at a time, and our goal is to make all of it open source. You can take your mail and calendars with you when you leave.
Code we have opened
langmail
It turns a raw email into clean, structured text that a language model can read. It is published as a Rust crate and as an npm package, both called langmail. Langmail's mail sync and MCP server use it.
langmail-mcp
It is the MCP server that Langmail runs at mcp.langmail.me, open source under the MIT license. You can also run it against your own Stalwart mail server with npx langmail-mcp, on your computer or your server. It then talks only to your Stalwart, over JMAP, CalDAV and CardDAV, and gives your agent almost every email, calendar and contacts tool of the hosted server.
caldav-mcp
It connects your agent to the calendars on any CalDAV server. Your agent can list, create, update and delete events and tasks there. You can start it with npx and your CalDAV address, username and password.
carddav-mcp
It connects your agent to the address books on any CardDAV server. Your agent can look up, create, update and delete contacts, and an update keeps the vCard fields it does not change, such as a photo or a birthday.
imap-mcp
It lets your agent save drafts in the Drafts folder of an IMAP mailbox. You can review and send them from your usual mail app.
Software we build on
Langmail builds on proven open-source infrastructure, and we run it tuned and hardened on our own servers. When something in that ecosystem breaks, we debug it to the root cause and report the diagnosis upstream. The fix then reaches everyone who runs that software.
Stalwart
Stalwart is the mail server that stores your email and calendars at Langmail. Written in Rust, it speaks JMAP, IMAP, SMTP, CardDAV and CalDAV. We run it on our own servers in Germany and follow its upstream development closely. Everything else in Langmail runs on top of it.
Open standards
Almost every way people message each other today, from WhatsApp to iMessage and Facebook Messenger, is owned by a single company. No single company owns email. You choose your provider, client and domain, and you can move your entire archive somewhere else.
The same capture is now underway one layer up. Assistants that only talk to their own company's services are the new proprietary messengers. At the action layer, incumbents happily open up, because it helps them ship agents faster. The data layer decides whether you can take your mail and leave, and they will not open it voluntarily. That second layer is the one we defend.
So every layer of Langmail uses an open standard that anyone can implement. Mail data syncs over JMAP (RFC 8620), the newer sync protocol, and calendars over CalDAV. IMAP and SMTP connect Langmail to the mail apps and servers that came before. MCP lets any agent operate your Langmail account, and OAuth 2.1 lets it sign in with its own scoped credential, so it never sees your password. Where a standard exists, we implement it.
JMAP
RFC 8620 · mail data
CalDAV
RFC 4791 · calendars
IMAP & SMTP
existing mail apps
MCP
the agent surface
OAuth 2.1
agent credentials
Build with us.
We shape the roadmap with the community. Join the people connecting their agents to their own mail.
Join our Discord