Skip to main content

Stalwart Mail MCP

io.github.cybersmurf/stalwart-mail-mcp

v2.3.0Updated Oct 2, 2026stdio · npm

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

Install

Needs 1 secret. Replace 3 placeholders with your own values.

Run in your terminal. Replace 3 placeholders.

claude mcp add stalwart-mail-mcp -e 'STALWART_URL=<your-stalwart-url>' -e 'STALWART_USER=<your-stalwart-user>' -e 'STALWART_PASSWORD=<your-stalwart-password>' -- npx -y [email protected]

Configuration

8 settings, 1 required secret. Snippets use placeholders; keep real values out of shared config.

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

Listed in the official MCP Registry since Oct 2, 2026. Mirrored daily; last checked Nov 26, 2026.