Skip to main content
Glama

@jdlar/kimai-mcp

MCP (Model Context Protocol) server for Kimai time-tracking. Exposes your Kimai instance as 44 tools that any MCP-compatible AI client can use — Claude Desktop, OpenCode, Cursor, etc.

Prerequisites

  • Node.js >= 18

  • A running Kimai instance with API access

  • An API token (generate one in your Kimai user profile under API Access / API Token)

Related MCP server: Timesheet MCP Server

Quick Start

KIMAI_API_URL=https://your-kimai.example.com KIMAI_API_TOKEN=your-token npx @jdlar/kimai-mcp

Option 2: Global Installation

# 1. Install globally
npm install -g @jdlar/kimai-mcp

# 2. Set environment variables and run
KIMAI_API_URL=https://your-kimai.example.com KIMAI_API_TOKEN=your-token @jdlar/kimai-mcp

Option 3: Environment File

# Create .env file with your credentials
echo "KIMAI_API_URL=https://your-kimai.example.com" > .env
echo "KIMAI_API_TOKEN=your-token" >> .env

# Run with npx
npx @jdlar/kimai-mcp

# Or run with global installation
@jdlar/kimai-mcp

MCP Client Configuration

Claude Desktop

Add to your Claude Desktop config file:

Windows: %APPDATA%\Claude\claude_desktop_config.json macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Linux: ~/.config/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "kimai": {
      "command": "npx",
      "args": ["-y", "@jdlar/kimai-mcp"],
      "env": {
        "KIMAI_API_URL": "https://your-kimai.example.com",
        "KIMAI_API_TOKEN": "your-api-token-here"
      }
    }
  }
}

Option B: Using Global Installation

{
  "mcpServers": {
    "kimai": {
      "command": "@jdlar/kimai-mcp",
      "env": {
        "KIMAI_API_URL": "https://your-kimai.example.com",
        "KIMAI_API_TOKEN": "your-api-token-here"
      }
    }
  }
}

OpenCode

Add to your opencode.json:

{
  "mcp": {
    "kimai": {
      "type": "local",
      "command": ["npx", "-y", "@jdlar/kimai-mcp"],
      "env": {
        "KIMAI_API_URL": "https://your-kimai.example.com",
        "KIMAI_API_TOKEN": "your-api-token-here"
      }
    }
  }
}

Cursor

Add to .cursor/mcp.json in your project root:

{
  "mcpServers": {
    "kimai": {
      "command": "npx",
      "args": ["-y", "@jdlar/kimai-mcp"],
      "env": {
        "KIMAI_API_URL": "https://your-kimai.example.com",
        "KIMAI_API_TOKEN": "your-api-token-here"
      }
    }
  }
}

Other MCP Clients

For any MCP-compatible client, configure:

  • Command: npx (or @jdlar/kimai-mcp if installed globally)

  • Args: ["-y", "@jdlar/kimai-mcp"] (only when using npx)

  • Transport: stdio

  • Environment variables:

    • KIMAI_API_URL — Your Kimai instance URL (without trailing slash)

    • KIMAI_API_TOKEN — API token from your Kimai user profile

Available Tools

Timesheets (10 tools)

Tool

Description

kimai-list-timesheets

List/filter timesheet entries (by user, project, customer, date range, active state, tags, etc.)

kimai-get-timesheet

Get a single timesheet by ID

kimai-create-timesheet

Create a new timesheet entry (start a timer or log completed work)

kimai-update-timesheet

Update an existing timesheet

kimai-delete-timesheet

Delete a timesheet entry

kimai-get-active-timesheets

Get currently running timesheets

kimai-stop-timesheet

Stop a running timesheet

kimai-restart-timesheet

Restart a stopped timesheet

kimai-duplicate-timesheet

Duplicate a timesheet entry

kimai-get-recent-timesheets

Get recent timesheet entries

Customers (4 tools)

Tool

Description

kimai-list-customers

List/filter customers

kimai-get-customer

Get customer by ID

kimai-create-customer

Create a new customer

kimai-update-customer

Update an existing customer

Projects (4 tools)

Tool

Description

kimai-list-projects

List/filter projects

kimai-get-project

Get project by ID

kimai-create-project

Create a new project

kimai-update-project

Update an existing project

Activities (4 tools)

Tool

Description

kimai-list-activities

List/filter activities

kimai-get-activity

Get activity by ID

kimai-create-activity

Create a new activity (project-scoped or global)

kimai-update-activity

Update an existing activity

Users (3 tools)

Tool

Description

kimai-list-users

List users (requires view_user permission)

kimai-get-user

Get user by ID

kimai-get-me

Get current authenticated user

Tags (3 tools)

Tool

Description

kimai-list-tags

List/filter tags

kimai-create-tag

Create a new tag

kimai-delete-tag

Delete a tag

Teams (13 tools)

Tool

Description

kimai-list-teams

List all teams

kimai-get-team

Get team by ID

kimai-create-team

Create a new team

kimai-update-team

Update an existing team

kimai-delete-team

Delete a team

kimai-add-team-member

Add a user to a team

kimai-remove-team-member

Remove a user from a team

kimai-add-team-customer

Grant team access to a customer

kimai-remove-team-customer

Revoke team access to a customer

kimai-add-team-project

Grant team access to a project

kimai-remove-team-project

Revoke team access to a project

kimai-add-team-activity

Grant team access to an activity

kimai-remove-team-activity

Revoke team access to an activity

System (3 tools)

Tool

Description

kimai-ping

Test API connection

kimai-get-version

Get Kimai version info

kimai-get-timesheet-config

Get timesheet configuration

Example Prompts

Once connected, you can ask your AI assistant things like:

Time Tracking

Start a timer on project "Website Redesign", activity "Development"
What timesheets did I log this week?
Stop my running timer

Reporting

Show me all timesheet entries for customer "Acme Corp" in January 2026
How many hours did I track on project "Mobile App" this month?

Management

List all active projects for customer "Acme Corp"
Create a new customer called "NewCo" based in the US with USD currency
Create a project "Q1 Campaign" under the "Marketing Agency" customer

Permissions

All 44 tools are always registered. If your API token lacks a required permission for a specific tool, it returns a clear error message instead of failing silently — for example:

Permission denied (403): Your Kimai API token does not have access to this endpoint.
Check your user role and permissions in Kimai.

No role configuration is needed. Just use the tools and Kimai's permission system handles the rest.

Generating an API Token

  1. Log in to your Kimai instance

  2. Click on your profile icon (top right)

  3. Navigate to API Access or API Token

  4. Create a new API token

  5. Copy the token and use it as KIMAI_API_TOKEN

The token inherits the permissions of the user who created it. Admin tokens can access all endpoints; regular user tokens are scoped to their own data.

Development

# Install dependencies
pnpm install

# Build
pnpm build

# Watch mode
pnpm dev

# Run the server
pnpm start

License

MIT

Available Tools

44 tools
kimai-add-team-activityC

Grant a team access to an activity.

Inputs: id (required), activityId (required).

kimai-add-team-customerC

Grant a team access to a customer.

Inputs: id (required), customerId (required).

kimai-add-team-memberB

Add a user to an existing team.

Inputs: id (required), userId (required).

kimai-add-team-projectC

Grant a team access to a project.

Inputs: id (required), projectId (required).

kimai-create-activityA

Create a new activity. Requires name. Optionally link to a project (otherwise it becomes a global activity).

Inputs: name (required), color, budget, number, +7 more.

kimai-create-customerC

Create a new customer. Requires name, country (2-letter ISO code), currency (3-letter code), and timezone.

Inputs: name (required), country (required), currency (required), timezone (required), +18 more.

kimai-create-projectB

Create a new project. Requires name and customer ID.

Inputs: name (required), customer (required), end, color, +11 more.

kimai-create-tagC

Create a new tag. The tag name must not contain commas.

Inputs: name (required), color, visible.

kimai-create-teamB

Create a new team. Requires a name and at least one member.

Inputs: name (required), members (required), color.

kimai-create-timesheetA

Create a new timesheet entry. Requires project and activity. If no begin is set, starts now. If no end is set, the timesheet will be running (active timer).

Inputs: project (required), activity (required), end, tags, +7 more.

kimai-delete-tagB

Delete a tag by ID. This removes the tag from all associated entries.

Inputs: id (required).

kimai-delete-teamC

Delete a team by ID.

Inputs: id (required).

kimai-delete-timesheetB

Delete a timesheet entry by ID. This action is irreversible.

Inputs: id (required).

kimai-duplicate-timesheetA

Duplicate a timesheet entry. Creates a copy with export state reset.

Inputs: id (required).

kimai-get-active-timesheetsA

Get all currently running (active) timesheet entries for the current user.

Inputs: no named parameters.

kimai-get-activityB

Get a single activity by ID with full details.

Inputs: id (required).

kimai-get-customerC

Get a single customer by ID with full details.

Inputs: id (required).

kimai-get-meA

Get the currently authenticated user's profile. Useful to check your identity, permissions, and preferences.

Inputs: no named parameters.

kimai-get-projectB

Get a single project by ID with full details.

Inputs: id (required).

kimai-get-recent-timesheetsB

Get the most recent timesheet entries (useful for quick time entry). Returns a short list of recent activity combinations.

Inputs: size, user, begin.

kimai-get-teamB

Get a single team by ID with full details including members and assigned entities.

Inputs: id (required).

kimai-get-timesheetB

Get a single timesheet entry by ID.

Inputs: id (required).

kimai-get-timesheet-configA

Get the Kimai instance timesheet configuration (tracking mode, rounding rules, defaults, etc.).

Inputs: no named parameters.

kimai-get-userA

Get a single user by ID. Requires 'view_user' permission.

Inputs: id (required).

kimai-get-versionA

Get the Kimai instance version, environment, and edition information.

Inputs: no named parameters.

kimai-list-activitiesB

List activities. Supports filtering by project, visibility, global-only, and search.

Inputs: term, order, globals, orderBy, +2 more.

kimai-list-customersC

List all customers. Supports filtering by visibility, search term, and sorting.

Inputs: term, order, orderBy, visible.

kimai-list-projectsC

List projects. Supports filtering by customer, visibility, date range, and search.

Inputs: end, term, order, start, +5 more.

kimai-list-tagsB

List all tags, optionally filtered by name.

Inputs: name.

kimai-list-teamsA

List all teams. Requires 'view_team' permission.

Inputs: no named parameters.

kimai-list-timesheetsA

List and filter timesheet entries. Supports filtering by user, customer, project, activity, date range, running/stopped state, billable status, tags, and full text search. Results are paginated.

Inputs: end, full, page, size, +12 more.

kimai-list-usersA

List users. Requires 'view_user' permission. Supports filtering by visibility, search, and sorting.

Inputs: full, term, order, orderBy, +1 more.

kimai-pingA

Test the Kimai API connection. Returns 'pong' if successful.

Inputs: no named parameters.

kimai-remove-team-activityC

Revoke a team's access to an activity.

Inputs: id (required), activityId (required).

kimai-remove-team-customerC

Revoke a team's access to a customer.

Inputs: id (required), customerId (required).

kimai-remove-team-memberC

Remove a user from an existing team.

Inputs: id (required), userId (required).

kimai-remove-team-projectC

Revoke a team's access to a project.

Inputs: id (required), projectId (required).

kimai-restart-timesheetA

Restart a previously stopped timesheet entry. Creates a new running timesheet based on the original.

Inputs: id (required), copy, begin.

kimai-stop-timesheetA

Stop a currently running timesheet entry. Sets the end time to now.

Inputs: id (required).

kimai-update-activityA

Update an existing activity. Pass only the fields you want to change.

Inputs: id (required), name, color, budget, +8 more.

kimai-update-customerA

Update an existing customer. Pass only the fields you want to change.

Inputs: id (required), city, name, color, +19 more.

kimai-update-projectA

Update an existing project. Pass only the fields you want to change.

Inputs: id (required), end, name, color, +12 more.

kimai-update-teamA

Update an existing team. Pass name, color, and/or the full members list. Note: members array replaces all existing members.

Inputs: id (required), name, color, members.

kimai-update-timesheetA

Update an existing timesheet entry. Pass only the fields you want to change.

Inputs: id (required), end, tags, user, +8 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 44 tools

    Disambiguation4/5

    Each tool targets a distinct resource+action pair, and the timesheet timer lifecycle (stop/restart/duplicate/get-active) is reasonably well delineated by descriptions. Minor overlap exists between kimai-get-active-timesheets and kimai-list-timesheets with a running filter, and between restart/duplicate/create-timesheet, but an agent can pick correctly with the descriptions provided.

    Naming Consistency5/5

    Every tool uses the same kimai-<verb>-<noun> pattern (kimai-create-tag, kimai-list-timesheets, kimai-add-team-member), with only natural exceptions like kimai-get-me, kimai-ping, and kimai-get-version that still fit the verb-first convention.

    Tool Count2/5

    At 44 tools the surface is heavy, and a large share comes from ten near-mechanical team add/remove pairs for members, customers, projects, and activities that could be consolidated into fewer parameterized tools. While the underlying Kimai domain is genuinely broad, the set is larger than an agent can comfortably navigate in one pass.

    Completeness3/5

    Timesheets, teams, and tags have full lifecycle coverage, but customers, projects, and activities support list/get/create/update with no delete operation, leaving agents unable to complete removal workflows. Users are also read-only, which is likely intentional but leaves gaps relative to the rest of the CRUD surface.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers