Services
mcp
The MCP server for AI assistants. Port 4500. Optional.
Serves the Model Context Protocol over streamable HTTP at /mcp, without sessions. To connect an assistant, see MCP server.
- The bearer token is an API token (
opt_…) or an OAuth access token issued byapiforMCP_ORIGIN/mcp. Anything else answers 401. - Each organization turns the server on in Settings → API. Until then it answers 403.
- Past
MCP_RATE_LIMIT_PER_MINUTErequests per client address, counted before the token is checked, or per token or user, it answers 429.
Reads PostgreSQL, ClickHouse, Redis, proxies and logging. All variables below are optional.
| Variable | Default | Description |
|---|---|---|
PORT | 4500 | HTTP port. |
API_ORIGIN | http://localhost:4000 | Public origin of api, which issues the OAuth tokens and their keys. |
MCP_ORIGIN | http://localhost:4500 | Public origin of mcp. Must match MCP_ORIGIN in api. |
MCP_RATE_LIMIT_PER_MINUTE | 600 | Requests per client address and per API token or OAuth user per minute before 429. 0 turns it off. |
Commands
The image exposes the mcp command:
| Command | What it does |
|---|---|
mcp | Runs the service. |
mcp healthcheck | Exits with 0 when /healthz on PORT answers, else 1. |