Skip to content
Cursor

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

io.github.langmail/langmail-mcp

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

client:Cursor transport:stdio runtime:npm

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

~/.cursor/mcp.json · windows: %USERPROFILE%\.cursor\mcp.json

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "langmail-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "langmail-mcp"
      ],
      "env": {
        "STALWART_URL": "<STALWART_URL>",
        "STALWART_USERNAME": "<STALWART_USERNAME>",
        "STALWART_PASSWORD": "<STALWART_PASSWORD>",
        "STALWART_TOKEN": "<STALWART_TOKEN>",
        "MCP_TRANSPORT": "<MCP_TRANSPORT>",
        "MCP_AUTH_TOKEN": "<MCP_AUTH_TOKEN>",
        "MCP_HOST": "<MCP_HOST>",
        "MCP_PORT": "<MCP_PORT>",
        "MCP_PUBLIC_URL": "<MCP_PUBLIC_URL>",
        "LOG_LEVEL": "<LOG_LEVEL>",
        "LANGMAIL_MCP_ALLOW_UNSUBSCRIBE_POST": "<LANGMAIL_MCP_ALLOW_UNSUBSCRIBE_POST>",
        "LANGMAIL_MCP_ALLOW_REMOTE_IMAGES": "<LANGMAIL_MCP_ALLOW_REMOTE_IMAGES>"
      }
    }
  }
}

Use .cursor/mcp.json in a project root instead to scope it to that project. Cursor merges both. Cursor docs

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