MCP Server
Ontime exposes an MCP server over Streamable HTTP.
Endpoint
Section titled “Endpoint”The default endpoint for connecting to the server is:
https://cloud.getontime.no/<stage>/mcpwhile for local installs the default would be
http://localhost:4001/mcpIf Ontime is running on another host or port, replace localhost:4001 with that address.
Authentication
Section titled “Authentication”If Ontime has no session password configured, no MCP authentication is required.
If a session password is configured, authenticate with the hashed Ontime token. The settings UI generates an endpoint URL with the token in the query string:
http://localhost:4001/mcp?token=<hashed-token>If your MCP client supports request headers, you can send the same token as a bearer token instead:
Authorization: Bearer <hashed-token>This is the same token used in authenticated Ontime share URLs as the token query
parameter. The raw session password is not accepted as the bearer token.
Client Configuration
Section titled “Client Configuration”Use a Streamable HTTP MCP client and point it at the MCP endpoint:
{ "mcpServers": { "ontime": { "url": "http://localhost:4001/mcp?token=<hashed-token>" } }}Omit the token when Ontime is not password protected. If you prefer headers, use
"url": "http://localhost:4001/mcp" and add an Authorization header with the
same bearer token.