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

● Active

io.github.langmail/langmail-mcp

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

Connect this server

One click to install, or copy the config below. Suits: Claude Desktop · Cursor.

Add to Cursor Add to VS CodeClaude Desktop / Claude Code: paste the config below.

Or add it manually — claude_desktop_config.json (Claude Desktop) or .cursor/mcp.json (Cursor):

{
  "mcpServers": {
    "langmail-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "langmail-mcp@0.1.0"
      ],
      "env": {
        "STALWART_URL": "<your STALWART_URL>",
        "STALWART_PASSWORD": "<your STALWART_PASSWORD>",
        "STALWART_TOKEN": "<your STALWART_TOKEN>",
        "MCP_TRANSPORT": "stdio",
        "MCP_AUTH_TOKEN": "<your MCP_AUTH_TOKEN>",
        "MCP_HOST": "127.0.0.1",
        "MCP_PORT": "8080",
        "LOG_LEVEL": "warn"
      }
    }
  }
}
One line, from the terminal
Claude Code
claude mcp add --env STALWART_URL='<your STALWART_URL>' --env STALWART_PASSWORD='<your STALWART_PASSWORD>' --env STALWART_TOKEN='<your STALWART_TOKEN>' --env MCP_TRANSPORT=stdio --env MCP_AUTH_TOKEN='<your MCP_AUTH_TOKEN>' --env MCP_HOST=127.0.0.1 --env MCP_PORT=8080 --env LOG_LEVEL=warn --transport stdio langmail-mcp -- npx -y langmail-mcp@0.1.0
OpenAI Codex CLI
codex mcp add langmail-mcp --env STALWART_URL='<your STALWART_URL>' --env STALWART_PASSWORD='<your STALWART_PASSWORD>' --env STALWART_TOKEN='<your STALWART_TOKEN>' --env MCP_TRANSPORT=stdio --env MCP_AUTH_TOKEN='<your MCP_AUTH_TOKEN>' --env MCP_HOST=127.0.0.1 --env MCP_PORT=8080 --env LOG_LEVEL=warn -- npx -y langmail-mcp@0.1.0
VS Code
code --add-mcp '{"name":"langmail-mcp","type":"stdio","command":"npx","args":["-y","langmail-mcp@0.1.0"],"env":{"STALWART_URL":"<your STALWART_URL>","STALWART_PASSWORD":"<your STALWART_PASSWORD>","STALWART_TOKEN":"<your STALWART_TOKEN>","MCP_TRANSPORT":"stdio","MCP_AUTH_TOKEN":"<your MCP_AUTH_TOKEN>","MCP_HOST":"127.0.0.1","MCP_PORT":"8080","LOG_LEVEL":"warn"}}'

Syntax from each client's docs (Claude Code: claude mcp add; Codex: codex mcp add; VS Code: code --add-mcp). Placeholders in angle brackets are values you fill in.

Environment variables
  • STALWART_URLrequiredBase URL of your Stalwart server (JMAP, CalDAV and CardDAV), e.g. https://mail.example.com
  • 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
  • LOG_LEVELLog level for stderr: fatal, error, warn, info, debug, trace or silent

A starting point — check the repository for exact arguments and setup. Restart your client after editing the config.

Category
Business & CRM
Version
0.1.0
Registry
active
Published
11/17/2026
Listed in:Official MCP registry ↗how this is checked

Is it safe? Is it maintained?

Serverdex check: Nov 19, 2026

Looks healthy: Langmail MCP for your own Stalwart: email, calendar and contacts is maintained, open source.

Maintained
Active
Last commit 5 days ago (Nov 17, 2026), 1 open issues.
Official registry
Active
Published as io.github.langmail/langmail-mcp in the official MCP registry, version 0.1.0.
Source
Open source, MIT
Public repository under the MIT licence, 1 stars, 0 forks.
Runs
On your machine
A local npm package started by your client; it can reach whatever your user account can.
Credentials
4 required
Declared environment variables: STALWART_URL, STALWART_PASSWORD, STALWART_TOKEN, MCP_AUTH_TOKEN. They stay on your machine; the config on this page shows where each goes.
Owner
Unclaimed
Nobody has claimed this page yet; the data above comes from the registry, GitHub and the live check.

Facts only: last commit and licence from GitHub, the entry's status from the official registry, credentials from the live check. Not a code audit — run the security scan on the endpoint yourself.

On GitHub

read Nov 18, 2026
Stars
1
Forks
0
Last push
Nov 17, 2026
License
MIT

TypeScriptai-agentscaldavcalendarcarddavclaudecontactsemailjmaplangmailmcpmcp-servermodel-context-protocolself-hostedstalwarttypescript

From the README

Langmail MCP for your own Stalwart: email, calendar and contacts langmail-mcp is an open-source MCP server (Model Context Protocol) for people who run a self-hosted Stalwart mail server. It gives an AI agent the email, calendar and contacts tools of Langmail's hosted MCP server, and works against your own Stalwart over JMAP, CalDAV and CardDAV. It runs on your computer or on your server and talks only to your Stalwart; no Langmail service is involved. Not affiliated with Stalwart Labs. The first release is pending. langmail-mcp is not on npm yet, so npx -y langmail-mcp does not work today. Until it is, run the server from a clone: git clone https://github.com/langmail/langmail-mcp.git, cd langmail-mcp, npm ci, npm run build, and use node /path/to/langmail-mcp/dist/index.js wherever this document says npx -y langmail-mcp. What you can ask an agent to do with it An agent connected to this server can search and read your mail, write drafts and send them, file and label messages, manage mail rules, and work with your calendars and contacts. The following prompts are examples of what that makes possible: • "Find the email from the landlord about the heating repair.…

Read the full README on GitHub →

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

All Langmail MCP for your own Stalwart: email, calendar and contacts alternatives →Best Business & CRM servers →

The most-starred Business & CRM servers in the index, with their live-check result.

ServerStarsLast pushLive check
Contact Affordance7,477Nov 2026Working
Business Contact Finder7,470Nov 2026Working
JobSpy4,739Nov 2026Local / not checked
Relaticle1,915Nov 2026Needs sign-in
ChatbotX1,142Nov 2026Needs sign-in

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

Is Langmail MCP for your own Stalwart: email, calendar and contacts a remote or a local MCP server?
According to its entry in the official MCP registry, Langmail MCP for your own Stalwart: email, calendar and contacts ships as a local package (npm) that your client starts on your machine.
Does Langmail MCP for your own Stalwart: email, calendar and contacts need an API key?
Its registry entry declares 4 required environment variables: STALWART_URL, STALWART_PASSWORD, STALWART_TOKEN, MCP_AUTH_TOKEN. The config on this page shows where each goes.
Is Langmail MCP for your own Stalwart: email, calendar and contacts safe to use?
Looks healthy: Langmail MCP for your own Stalwart: email, calendar and contacts is maintained, open source. In detail — maintained: Active; official registry: Active; source: Open source, MIT; runs: On your machine; credentials: 4 required. Serverdex check of Nov 19, 2026. This is a reading of the repository, the registry entry and the live check, not a code audit; run the Serverdex security scan on the endpoint before trusting it with real data.
Is Langmail MCP for your own Stalwart: email, calendar and contacts still maintained?
Active: the repository's last commit 5 days ago. Last push Nov 17, 2026, 1 GitHub stars, MIT licence. Read from GitHub on Nov 18, 2026.
How do I add Langmail MCP for your own Stalwart: email, calendar and contacts to Claude, Cursor or VS Code?
Copy the config in "Connect this server" into your client's MCP config file (claude_desktop_config.json, ~/.cursor/mcp.json or .vscode/mcp.json), or use the one-click Add to Cursor / Add to VS Code buttons and the one-line commands for Claude Code and Codex; then restart the client.
  1. Caldav MCPCalDAV calendar operations (list, create, update, delete events) as MCP tools.★ 113
  2. Imap MCPIMAP email as MCP tools: create draft messages in the Drafts folder of any IMAP mailbox.★ 15
Browse all Business & CRM →

Add the badge to your site

Show visitors that Langmail MCP for your own Stalwart: email, calendar and contacts is listed here — it’s also the link we check for a free listing.

Langmail MCP for your own Stalwart: email, calendar and contacts — listed on Serverdex

HTML — for your website

<a href="https://serverdex.io/server/io-github-langmail-langmail-mcp?utm_source=badge"><img src="https://serverdex.io/brand/badge.svg" alt="Langmail MCP for your own Stalwart: email, calendar and contacts — listed on Serverdex" width="123" height="40" loading="lazy"></a>

Recommended. A dofollow link from your own domain is the one that counts for search engines, and it's the link we check for a free listing.

Markdown — for your README

[![Langmail MCP for your own Stalwart: email, calendar and contacts — listed on Serverdex](https://serverdex.io/brand/badge.svg)](https://serverdex.io/server/io-github-langmail-langmail-mcp?utm_source=badge)

Nice for visibility, but GitHub marks README links nofollow, so it doesn't pass authority. Use the HTML badge on your site as well.

Add to CursorAdd to VS CodeOpen in Claude Code

Install buttons — for your README

[![Add to Cursor](https://serverdex.io/brand/install-cursor.svg)](https://serverdex.io/install/cursor/io-github-langmail-langmail-mcp) [![Add to VS Code](https://serverdex.io/brand/install-vscode.svg)](https://serverdex.io/install/vscode/io-github-langmail-langmail-mcp) [![Open in Claude Code](https://serverdex.io/brand/install-claude-code.svg)](https://serverdex.io/install/claude-code/io-github-langmail-langmail-mcp)

One click opens Cursor or VS Code with this server's config prefilled; the Claude Code button lands on the one-line command. The links point at Serverdex, so when your config changes the buttons keep working.

Install buttons — HTML for your docs

<a href="https://serverdex.io/install/cursor/io-github-langmail-langmail-mcp"><img src="https://serverdex.io/brand/install-cursor.svg" alt="Add to Cursor — via Serverdex" width="140" height="28"></a>
<a href="https://serverdex.io/install/vscode/io-github-langmail-langmail-mcp"><img src="https://serverdex.io/brand/install-vscode.svg" alt="Add to VS Code — via Serverdex" width="147" height="28"></a>
<a href="https://serverdex.io/install/claude-code/io-github-langmail-langmail-mcp"><img src="https://serverdex.io/brand/install-claude-code.svg" alt="Open in Claude Code — via Serverdex" width="180" height="28"></a>

Same buttons as plain links for a docs page or website.

Prefer a live badge with the score, stars and live check? Score badge (links to a page that explains the number and back to this listing).