mcp-server-stalwart MCP Server

MCP server for Stalwart Mail Server. Provides email operations (search, read, send, delete) via JMAP and optional admin API access for server management.

Local serverstdio

What is the mcp-server-stalwart MCP Server?

mcp-server-stalwart is an MCP project maintained in the codechap/mcp-server-stalwart repository. The maintainer describes its purpose as “MCP server for Stalwart Mail Server. Provides email operations (search, read, send, delete) via JMAP and optional admin API access for server management”. Read the project documentation for the complete scope.

Local setup

The project provides a local client configuration using /path/to/mcp-server-stalwart. Follow the repository’s build and installation steps before copying it, and replace example paths with the paths on your own computer.

Configuration values

The example declares JMAP_SESSION_URL, JMAP_USERNAME, JMAP_PASSWORD, JMAP_SECRETS_FILE, STALWART_ADMIN_URL, STALWART_ADMIN_PASSWORD. Secret-looking values have been replaced with placeholders. Required and optional labels are shown only when the documentation states them.

Source

Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
get_mailboxes
create_mailbox
search_emails
get_emails
delete_emails
send_email
download_attachments
verify_account_auth

How to install the mcp-server-stalwart MCP Server

{
  "mcpServers": {
    "stalwart": {
      "command": "/path/to/mcp-server-stalwart",
      "env": {
        "JMAP_SESSION_URL": "https://mail.example.com/jmap/session",
        "JMAP_USERNAME": "you@example.com",
        "JMAP_PASSWORD": "YOUR_JMAP_PASSWORD",
        "JMAP_SECRETS_FILE": "YOUR_JMAP_SECRETS_FILE",
        "STALWART_ADMIN_URL": "https://mail.example.com",
        "STALWART_ADMIN_PASSWORD": "YOUR_STALWART_ADMIN_PASSWORD"
      }
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

VariableDescriptionRequired
JMAP_SESSION_URLDeclared in the maintainer’s client configuration.Check documentation
JMAP_USERNAMEDeclared in the maintainer’s client configuration.Check documentation
JMAP_PASSWORDDeclared in the maintainer’s client configuration.Check documentation
JMAP_SECRETS_FILEDeclared in the maintainer’s client configuration.Check documentation
STALWART_ADMIN_URLDeclared in the maintainer’s client configuration.Check documentation
STALWART_ADMIN_PASSWORDDeclared in the maintainer’s client configuration.Check documentation