Skip to content
VS Code

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

io.github.langmail/langmail-mcp

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

client:VS Code transport:stdio runtime:npm

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

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "stalwart-url",
      "description": "STALWART_URL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "stalwart-username",
      "description": "STALWART_USERNAME",
      "password": true
    },
    {
      "type": "promptString",
      "id": "stalwart-password",
      "description": "STALWART_PASSWORD",
      "password": true
    },
    {
      "type": "promptString",
      "id": "stalwart-token",
      "description": "STALWART_TOKEN",
      "password": true
    },
    {
      "type": "promptString",
      "id": "mcp-transport",
      "description": "MCP_TRANSPORT",
      "password": true
    },
    {
      "type": "promptString",
      "id": "mcp-auth-token",
      "description": "MCP_AUTH_TOKEN",
      "password": true
    },
    {
      "type": "promptString",
      "id": "mcp-host",
      "description": "MCP_HOST",
      "password": true
    },
    {
      "type": "promptString",
      "id": "mcp-port",
      "description": "MCP_PORT",
      "password": true
    },
    {
      "type": "promptString",
      "id": "mcp-public-url",
      "description": "MCP_PUBLIC_URL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "log-level",
      "description": "LOG_LEVEL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "langmail-mcp-allow-unsubscribe-post",
      "description": "LANGMAIL_MCP_ALLOW_UNSUBSCRIBE_POST",
      "password": true
    },
    {
      "type": "promptString",
      "id": "langmail-mcp-allow-remote-images",
      "description": "LANGMAIL_MCP_ALLOW_REMOTE_IMAGES",
      "password": true
    }
  ],
  "servers": {
    "langmail-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "langmail-mcp"
      ],
      "env": {
        "STALWART_URL": "${input:stalwart-url}",
        "STALWART_USERNAME": "${input:stalwart-username}",
        "STALWART_PASSWORD": "${input:stalwart-password}",
        "STALWART_TOKEN": "${input:stalwart-token}",
        "MCP_TRANSPORT": "${input:mcp-transport}",
        "MCP_AUTH_TOKEN": "${input:mcp-auth-token}",
        "MCP_HOST": "${input:mcp-host}",
        "MCP_PORT": "${input:mcp-port}",
        "MCP_PUBLIC_URL": "${input:mcp-public-url}",
        "LOG_LEVEL": "${input:log-level}",
        "LANGMAIL_MCP_ALLOW_UNSUBSCRIBE_POST": "${input:langmail-mcp-allow-unsubscribe-post}",
        "LANGMAIL_MCP_ALLOW_REMOTE_IMAGES": "${input:langmail-mcp-allow-remote-images}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

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