Official server.json
{
"name": "io.github.langmail/langmail-mcp",
"title": "Langmail MCP for your own Stalwart: email, calendar and contacts",
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
"version": "0.1.0",
"packages": [
{
"version": "0.1.0",
"transport": {
"type": "stdio"
},
"identifier": "langmail-mcp",
"registryType": "npm",
"environmentVariables": [
{
"name": "STALWART_URL",
"format": "string",
"isRequired": true,
"description": "Base URL of your Stalwart server (JMAP, CalDAV and CardDAV), e.g. https://mail.example.com",
"placeholder": "https://mail.example.com"
},
{
"name": "STALWART_USERNAME",
"format": "string",
"description": "Account login name, usually the mail address; use together with STALWART_PASSWORD",
"placeholder": "[email protected]"
},
{
"name": "STALWART_PASSWORD",
"format": "string",
"isSecret": true,
"description": "App password for STALWART_USERNAME, created in Stalwart's account manager"
},
{
"name": "STALWART_TOKEN",
"format": "string",
"isSecret": true,
"description": "Bearer token such as a Stalwart API key, as an alternative to STALWART_USERNAME and STALWART_PASSWORD"
},
{
"name": "MCP_TRANSPORT",
"format": "string",
"choices": [
"stdio",
"http"
],
"default": "stdio",
"description": "Transport: stdio (the default) or http, which serves Streamable HTTP at /mcp"
},
{
"name": "MCP_AUTH_TOKEN",
"format": "string",
"isSecret": true,
"description": "Required with MCP_TRANSPORT=http: the secret callers send as Authorization: Bearer; at least 16 characters"
},
{
"name": "MCP_HOST",
"format": "string",
"default": "127.0.0.1",
"description": "HTTP transport: address to listen on"
},
{
"name": "MCP_PORT",
"format": "number",
"default": "8080",
"description": "HTTP transport: port to listen on"
},
{
"name": "MCP_PUBLIC_URL",
"format": "string",
"description": "HTTP transport: the address callers reach the server under, e.g. behind a TLS-terminating reverse proxy",
"placeholder": "https://mcp.example.com"
},
{
"name": "LOG_LEVEL",
"format": "string",
"choices": [
"fatal",
"error",
"warn",
"info",
"debug",
"trace",
"silent"
],
"default": "warn",
"description": "Log level for stderr: fatal, error, warn, info, debug, trace or silent"
},
{
"name": "LANGMAIL_MCP_ALLOW_UNSUBSCRIBE_POST",
"format": "string",
"choices": [
"0",
"1"
],
"description": "Set to 1 to let unsubscribe_from_list send the RFC 8058 one-click request to the sender's URL; off by default"
},
{
"name": "LANGMAIL_MCP_ALLOW_REMOTE_IMAGES",
"format": "string",
"choices": [
"0",
"1"
],
"description": "Set to 1 to let preview_email load a message's remote images through this server; off by default"
}
]
}
],
"repository": {
"url": "https://github.com/langmail/langmail-mcp",
"source": "github"
},
"description": "Self-hosted MCP server for Stalwart: email, calendar and contacts over JMAP, CalDAV and CardDAV."
}