kimai-mcp-server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@kimai-mcp-servershow my recent timesheets"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
@nightsquawktech/kimai-mcp-server
Model Context Protocol server for Kimai time-tracking instances. Read tools cover the full Kimai API surface; timesheet write tools exist but are guarded behind explicit authorization.
API Notes
Kimai exposes a JSON API under /api. Current Kimai documentation uses bearer-token authentication:
Authorization: Bearer <api-token>The base URL should be the browser URL without a trailing slash, for example https://demo.kimai.org, not https://demo.kimai.org/. Kimai's current API docs are available at your own instance under /api/doc, and official docs note that the OpenAPI export is available from that UI.
Pagination uses page and size query parameters. Kimai defaults to 50 records per page and documents 500 as the maximum page size. Paginated responses may include X-Page, X-Total-Count, X-Total-Pages, and X-Per-Page headers.
Read tools are safe to call without changing Kimai. Write tools are intentionally guarded because Kimai timekeeping data is sensitive:
Every write tool requires
authorization_confirmed: true.Every write tool requires an
authorization_notedescribing the user's explicit approval.Every write tool writes a JSON backup under the system temp directory before or immediately after mutation.
Update/state-change tools save the previous Kimai record before calling the mutation endpoint.
Create/duplicate tools save the request/source and created record so the created ID can be audited and reverted manually if needed.
Delete tools are intentionally not exposed.
References:
Related MCP server: timedoctor-mcp
Tools
kimai_get_server_inforeads/api/ping,/api/version,/api/plugins, and/api/config/timesheet.kimai_get_current_userreads/api/users/me.kimai_list_usersandkimai_get_userread users.kimai_list_customersandkimai_get_customerread customers.kimai_list_projectsandkimai_get_projectread projects.kimai_list_activitiesandkimai_get_activityread activities.kimai_list_tagsreads tags.kimai_list_timesheets,kimai_get_timesheet,kimai_list_active_timesheets, andkimai_list_recent_timesheetsread time entries.kimai_create_timesheetcreates a time entry after explicit authorization and stores a temp backup.kimai_update_timesheetupdates a time entry after explicit authorization and stores the previous record in a temp backup.kimai_stop_timesheetstops an active time entry after explicit authorization and stores the previous record in a temp backup.kimai_restart_timesheetrestarts a stopped time entry after explicit authorization and stores the previous record in a temp backup.kimai_duplicate_timesheetduplicates a time entry after explicit authorization and stores source/created records in a temp backup.kimai_list_teamsandkimai_get_teamread teams.kimai_list_invoicesandkimai_get_invoiceread invoice history.kimai_list_expensesandkimai_get_expenseread expenses when that endpoint is available.kimai_list_tasksandkimai_get_taskread tasks when that endpoint is available.
Setup
Configure an MCP client to run the server with npx:
{
"mcpServers": {
"kimai": {
"command": "npx",
"args": ["-y", "@nightsquawktech/kimai-mcp-server"],
"env": {
"KIMAI_BASE_URL": "https://your-instance.example.com",
"KIMAI_API_TOKEN": "your-api-token"
}
}
}
}For Codex global TOML config:
[mcp_servers.kimai]
command = "npx"
args = ["-y", "@nightsquawktech/kimai-mcp-server"]
[mcp_servers.kimai.env]
KIMAI_BASE_URL = "https://your-instance.example.com"
KIMAI_API_TOKEN = "your-api-token"Environment variables
Variable | Required | Description |
| Yes | Base URL of your Kimai instance without a trailing slash, e.g. |
| Yes | Kimai API token (bearer token) |
| No | HTTP request timeout in milliseconds, default |
Development
npm install
npm run dev
npm run buildCreate .env for local development:
KIMAI_BASE_URL=https://your-instance.example.com
KIMAI_API_TOKEN=your-api-token
KIMAI_TIMEOUT_MS=30000The server uses stdio for local MCP clients. Use stderr for logs so stdout remains reserved for MCP protocol messages.
License
Licensed under the GNU AGPL v3.0. Free for personal and open-source use.
Organizations that cannot comply with the AGPL can purchase a commercial license. See COMMERCIAL.md or contact hello@nightsquawk.tech.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/NightSquawk/kimai-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server