Configuration
simplelogin-mcp reads configuration from the process environment and validates the application
settings at startup. A direct Node.js run does not load .env automatically; Docker Compose
reads .env for interpolation and passes only the documented variables into the container.
Required setting
Section titled “Required setting”| Variable | Default | Applies to | Purpose |
|---|---|---|---|
SL_API_KEY |
— | All modes | SimpleLogin API key sent as the Authentication header on outbound API requests. The server refuses to start when it is missing or blank. |
Create a dedicated SimpleLogin API key. A key created on a
self-hosted SimpleLogin instance must be used with that same instance’s SL_API_URL.
Server runtime
Section titled “Server runtime”| Variable | Default | Applies to | Purpose |
|---|---|---|---|
TRANSPORT |
http |
Direct runs | Selects literal http or stdio. The bundled Compose files always use http. |
HOST |
127.0.0.1 |
Direct Node.js — Streamable HTTP | Interface the Node.js HTTP server binds. Ignored for stdio; fixed to 0.0.0.0 inside the bundled container. |
PORT |
3000 |
Direct Node.js — Streamable HTTP | HTTP listener port. Ignored for stdio; fixed to 3000 inside the bundled container. |
SL_API_URL |
https://app.simplelogin.io |
All modes | SimpleLogin web-app origin. Do not add /api; the server appends API paths. |
SL_REQUEST_TIMEOUT_MS |
15000 |
All modes | Per-request timeout to SimpleLogin, from 1 to 2147483647 milliseconds. |
The HTTP server exposes POST /mcp for Streamable HTTP and GET /health for process health. A
GET request to /mcp returns 405 Method Not Allowed by design.
Tool selection
Section titled “Tool selection”Leave both settings unset to expose the full built-in catalog. On stdio and
Streamable HTTP, every client of an instance can discover and call the same selected tools.
Calls to hidden or unknown names return the same JSON-RPC error (-32602, Tool not found)
before the server contacts SimpleLogin. If an advertised tool runs and the upstream request
fails, the response contains a tool result with isError: true. HTTP authentication still applies,
and the SimpleLogin API key retains its original permissions.
SIMPLELOGIN_ENABLED_TOOLSlimits the instance to the listed names. With it unset, selection starts with the full catalog.SIMPLELOGIN_DISABLED_TOOLSremoves the listed names, including any that also appear inSIMPLELOGIN_ENABLED_TOOLS.
Use exact, case-sensitive names separated by commas. Surrounding whitespace is trimmed and repeated names count once. Tools appear in catalog order regardless of the input order. Startup fails if either list contains an unknown name, wildcard, group, or empty element. This includes blank or whitespace-only settings, leading or trailing commas, and consecutive commas. Every disabled name must be valid even when it falls outside the enabled list. To remove a setting, unset it or delete its line.
Alias inspection exposes three tools.
SIMPLELOGIN_ENABLED_TOOLS=alias_list,alias_get,alias_activity_listRemove permanent alias deletion and keep the other tools. Leave SIMPLELOGIN_ENABLED_TOOLS unset.
SIMPLELOGIN_DISABLED_TOOLS=alias_deleteOverlap leaves only alias_list and alias_get.
SIMPLELOGIN_ENABLED_TOOLS=alias_list,alias_get,alias_activity_listSIMPLELOGIN_DISABLED_TOOLS=alias_activity_listTo expose an empty catalog intentionally, disable every enabled tool. For example, setting both
lists to alias_get lets the server initialize and makes tools/list return {"tools":[]}.
Restart the server after changing either setting. For Compose, run docker compose up -d to
recreate the service with the new environment. Reconnect clients and verify the listed tool
names.
HTTP access and exposure
Section titled “HTTP access and exposure”| Variable | Default | Purpose |
|---|---|---|
MCP_AUTH_TOKEN |
— | Requires Authorization: Bearer <token> on POST /mcp. Mandatory for non-loopback HTTP binds unless the unsafe override is explicit. |
MCP_ALLOWED_ORIGINS |
— | Comma-separated additional browser origins allowed to call POST /mcp. Loopback origins are always accepted. |
ALLOW_UNAUTHENTICATED_EXPOSURE |
false |
Allows a non-loopback bind without MCP_AUTH_TOKEN. Accepts true, false, 1, or 0. Use only when another layer already authenticates or isolates the endpoint. |
MCP_ALLOWED_ORIGINS performs an origin check. It does not add CORS response headers, answer
preflight requests, encrypt traffic, or replace MCP_AUTH_TOKEN.
Docker Compose controls
Section titled “Docker Compose controls”These variables control the bundled Compose deployment rather than the application listener inside the container.
| Variable | Default | Purpose |
|---|---|---|
SIMPLELOGIN_MCP_IMAGE_TAG |
latest |
GHCR image tag used by docker-compose.yml. Pin a release tag for repeatable deployments. |
SIMPLELOGIN_MCP_HOST_BIND_IP |
127.0.0.1 |
Host interface on which Docker publishes the service. Keep loopback unless wider access is intentional. |
SIMPLELOGIN_MCP_HOST_PORT |
3000 |
Host port mapped to the container’s fixed port 3000. |
SIMPLELOGIN_MCP_NETWORK |
simplelogin-mcp_network |
Name of the bridge network Compose creates for the service. |
The application binds 0.0.0.0:3000 inside the container so Docker can forward the port.
Consequently, the startup guard requires MCP_AUTH_TOKEN even when Compose publishes the port only
on the host’s loopback interface.
To change only the host port:
SIMPLELOGIN_MCP_HOST_PORT=3001Clients then use http://localhost:3001/mcp; leave the application PORT at 3000 for the bundled
Compose files.
Private certificate authorities and proxies
Section titled “Private certificate authorities and proxies”These are Node.js runtime settings. The application does not reinterpret them, and the bundled Compose files forward them explicitly.
| Variable | Default | Purpose |
|---|---|---|
NODE_EXTRA_CA_CERTS |
— | Path, inside the process or container, to an additional PEM CA file. |
NODE_USE_ENV_PROXY |
— | Set to 1 to enable Node’s environment-proxy support. |
NODE_OPTIONS |
— | Trusted Node.js runtime options; retained for deployments using --use-env-proxy. |
HTTP_PROXY / http_proxy |
— | Proxy URL for outbound HTTP requests. Lowercase takes precedence when both forms are set. |
HTTPS_PROXY / https_proxy |
— | Proxy URL for outbound HTTPS requests. Lowercase takes precedence when both forms are set. |
NO_PROXY / no_proxy |
— | Comma-separated hosts that bypass the proxy. Lowercase takes precedence when both forms are set. |
For Compose, mount a private CA file read-only and set NODE_EXTRA_CA_CERTS to the matching
container path. Treat proxy URLs containing credentials as secrets.
Load a local .env safely
Section titled “Load a local .env safely”-
Copy the example. Run
cp .env.example .envand keep the existing ignored filename. -
Edit the file. Set
SL_API_KEYand only the optional settings your deployment needs. -
Load it for one command. Use a subshell so variables do not remain in the parent shell:
Terminal window (set -a. ./.envset +apnpm start) -
Check the intended boundary. Confirm the selected transport, bind address, authentication, and published Docker port before connecting a client.
Which variables matter in each mode?
Section titled “Which variables matter in each mode?”| Setting group | Local stdio | Direct Node.js — Streamable HTTP | Docker Compose — Streamable HTTP |
|---|---|---|---|
SL_API_KEY |
Yes | Yes | Yes |
| Tool selection | Optional | Optional | Optional |
TRANSPORT |
Yes | Optional | Fixed to http |
HOST / PORT |
No | Optional | Fixed internally |
MCP_AUTH_TOKEN |
No | Optional on loopback; required off loopback | Required by internal non-loopback bind |
MCP_ALLOWED_ORIGINS |
No | Browser clients only | Browser clients only |
SIMPLELOGIN_MCP_HOST_* |
No | No | Optional |
| CA and proxy variables | Optional | Optional | Optional |
Continue with Security & Data before changing network exposure, or use Troubleshooting when startup or client connection fails.