productivity
Kimai MCP Integration for Claude Agent SDK
Connect Kimai to Claude Agent SDK through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect Kimai to Claude Agent SDK
Give Claude Agent SDK workflows access to KosmoKrator integrations through a local MCP server.
Add a KosmoKrator stdio MCP server to the Claude Agent SDK options. The gateway is local, scoped to this integration, and starts with
--write=deny so Claude Agent SDK can inspect read-capable tools without receiving write access by default.
Kimai MCP Config for Claude Agent SDK
Use a narrow integration list so the agent does not load unrelated tools.
{
"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
Expose only Kimai instead of a broad multi-service tool list.
Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.
Start read-only, then opt into ask or allow for trusted workspaces.
Kimai Tools Visible to Claude Agent SDK
Claude Agent SDK sees stable MCP tool names generated from the Kimai integration catalog.
| MCP tool | Source function | Type | Description |
|---|---|---|---|
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. |