Stalwart-mail-mcp Server

Mail and contacts on a self-hosted Stalwart server via JMAP: search, read, OCR, send, drafts.

Local serverstdio

What is the Stalwart-mail-mcp Server?

Stalwart-mail-mcp is an MCP integration. Mail and contacts on a self-hosted Stalwart server via JMAP: search, read, OCR, send, drafts.

Packages and local setup

The published npm package is stalwart-mail-mcp, version 2.3.0. Its declared MCP transport is stdio.

The package declares STALWART_URL (required): Public address of the Stalwart server, e.g. https://mail.example.com; STALWART_USER (required): Mailbox e-mail address to sign in with; STALWART_PASSWORD (required): Mailbox or app password; MAIL_LANG: Language: auto, en, cs, de, es, fr, it, nl, pl, pt, sk; MAIL_OCR_PROVIDER: OCR of scans: auto, off, mistral, anthropic, openai, openrouter, gemini, ollama, lmstudio, custom; MAIL_OCR_API_KEY: API key of the OCR provider (not needed for local servers); MAIL_OCR_MODEL: OCR model name; MAIL_OCR_BASE_URL: Address of a custom OpenAI-compatible OCR server.

Before connecting

Check the maintainer’s instructions for account access, authentication and the supported client configuration. Once connected, inspect the tools your client receives and try a small task that matches the server’s stated purpose. The registry description does not include a verified, complete tool list.

Project and source

View the publisher’s registry entry · Project repository. This profile uses version 2.3.0 from the registry. Registration identifies the publisher namespace; it does not establish that this is a first-party integration for every service it connects.

Browse related developer tools MCP servers for tools that cover the same kind of work.

Configuration

VariableDescriptionRequired
STALWART_URLPublic address of the Stalwart server, e.g. https://mail.example.comYes
STALWART_USERMailbox e-mail address to sign in withYes
STALWART_PASSWORDMailbox or app passwordYes
MAIL_LANGLanguage: auto, en, cs, de, es, fr, it, nl, pl, pt, skOptional
MAIL_OCR_PROVIDEROCR of scans: auto, off, mistral, anthropic, openai, openrouter, gemini, ollama, lmstudio, customOptional
MAIL_OCR_API_KEYAPI key of the OCR provider (not needed for local servers)Optional
MAIL_OCR_MODELOCR model nameOptional
MAIL_OCR_BASE_URLAddress of a custom OpenAI-compatible OCR serverOptional