Skip to Content
OpenPerf

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 by api for MCP_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_MINUTE requests 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.

VariableDefaultDescription
PORT4500HTTP port.
API_ORIGINhttp://localhost:4000Public origin of api, which issues the OAuth tokens and their keys.
MCP_ORIGINhttp://localhost:4500Public origin of mcp. Must match MCP_ORIGIN in api.
MCP_RATE_LIMIT_PER_MINUTE600Requests 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:

CommandWhat it does
mcpRuns the service.
mcp healthcheckExits with 0 when /healthz on PORT answers, else 1.

On this page