MCP directory
SM

Stalwart Mail Mcp

by github.com/cybersmurf · v2.3.0 · updated Oct 2, 2026

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

npm

Run it locally

Install the package and point your AI client at it.

Environment variables

  • STALWART_URLrequired

    Public address of the Stalwart server, e.g. https://mail.example.com

  • STALWART_USERrequired

    Mailbox e-mail address to sign in with

  • STALWART_PASSWORDrequiredsecret

    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_KEYsecret

    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

More MCP servers