Skip to content

MCP Server

Ontime exposes an MCP server over Streamable HTTP.

The default endpoint for connecting to the server is:

Terminal window
https://cloud.getontime.no/<stage>/mcp

while for local installs the default would be

Terminal window
http://localhost:4001/mcp

If Ontime is running on another host or port, replace localhost:4001 with that address.

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.

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.