KosmoKrator

productivity

Kimai MCP Integration for Codex

Connect Kimai to Codex through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.

7 functions 6 read 1 write Bearer token auth

Connect Kimai to Codex

Use KosmoKrator as a local MCP proxy for Codex so coding sessions can reach selected integrations with explicit write policy.

Register kosmo mcp:serve as a local stdio server and choose the integration allowlist. The gateway is local, scoped to this integration, and starts with --write=deny so Codex can inspect read-capable tools without receiving write access by default.

Kimai MCP Config for Codex

Keep write access denied or ask-based unless the workspace is trusted.

{
  "mcpServers": {
    "kosmokrator-kimai": {
      "type": "stdio",
      "command": "kosmo",
      "args": [
        "mcp:serve",
        "--integration=kimai",
        "--write=deny"
      ]
    }
  }
}

Run the Gateway Manually

kosmokrator mcp:serve --integration=kimai --write=deny

Why Use KosmoKrator Here

Scoped tools

Expose only Kimai instead of a broad multi-service tool list.

Local credentials

Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.

Write policy

Start read-only, then opt into ask or allow for trusted workspaces.

Kimai Tools Visible to Codex

Codex sees stable MCP tool names generated from the Kimai integration catalog.

MCP toolSource functionTypeDescription
integration__kimai__kimai_list_timesheets kimai.kimai_list_timesheets Read List time-tracking entries from Kimai. Supports filtering by user, project, date range, and state. Returns paginated results with timesheet details including duration, description, and associated project/activity.
integration__kimai__kimai_get_timesheet kimai.kimai_get_timesheet Read Get details of a specific timesheet entry from Kimai. Returns the full timesheet record including begin/end timestamps, duration, description, project, activity, and user information.
integration__kimai__kimai_create_timesheet kimai.kimai_create_timesheet Write Create a new time-tracking entry in Kimai. Requires a begin timestamp and at least a project ID. Optionally specify an end time, activity, and description to categorize the time entry.
integration__kimai__kimai_list_projects kimai.kimai_list_projects Read List projects from Kimai. Supports filtering by customer and visibility. Returns project details including name, customer, budget, and time budget information.
integration__kimai__kimai_get_project kimai.kimai_get_project Read Get details of a specific project from Kimai. Returns the full project record including name, customer, comment, budget, time budget, and visibility status.
integration__kimai__kimai_list_customers kimai.kimai_list_customers Read List customers from Kimai. Supports filtering by visibility. Returns customer details including name, company, contact information, and associated project count.
integration__kimai__kimai_get_current_user kimai.kimai_get_current_user Read Get the profile of the currently authenticated Kimai user. Returns user details including username, display name, email, timezone, and language preferences.

Related Kimai Pages