MCP server for Kaiten — 63 tools covering cards, comments, checklists, time tracking, members, blockers, sprints, custom properties, external links, file uploads, location history, and a global timesheet.
Connect Cursor, Claude Desktop, Claude Code, or any MCP client to your Kaiten workspace.
Start with a single command: npx -y kaiten-mcp.
This is a fork of iamtemazhe/mcp-kaiten with extensive Wave 1–5 fixes: 22 net new tools, schema repairs, preflight checks, response simplification ladders, and reliability improvements. See WHYIEXIST.md and the CHANGELOG.
- Open your Kaiten instance (e.g.
https://your-company.kaiten.ru) - Profile → API Key
- Create a token and copy it
{
"mcpServers": {
"kaiten": {
"command": "npx",
"args": ["-y", "kaiten-mcp"],
"env": {
"KAITEN_API_TOKEN": "your-api-token",
"KAITEN_URL": "https://your-company.kaiten.ru"
}
}
}
}That's it. The server starts automatically when the MCP client connects. There is no user_id to configure — the current user is resolved automatically from the token.
63 tools across 14 families. Every tool accepts an optional verbosity parameter (min / normal / max / raw) to control response size.
| Tool | Description |
|---|---|
kaiten_get_card |
Get card by ID, with optional children |
kaiten_search_cards |
Search cards with 15+ filters, dates, pagination |
kaiten_get_space_cards |
Cards in a space |
kaiten_get_board_cards |
Cards on a board |
kaiten_create_card |
Create a new card |
kaiten_update_card |
Update fields, move between columns/boards, set custom property values |
kaiten_delete_card |
Delete a card (fails if it has logged time — delete time logs first) |
kaiten_get_card_location_history |
Audit trail: how long the card sat in each column (Wave 5) |
| Tool | Description |
|---|---|
kaiten_get_card_comments |
List comments for a card |
kaiten_create_comment |
Add a comment |
kaiten_update_comment |
Update a comment |
kaiten_delete_comment |
Delete a comment |
| Tool | Description |
|---|---|
kaiten_get_user_timelogs |
Time logs for a user in a date range |
kaiten_get_card_timelogs |
Time logs for a card |
kaiten_create_timelog |
Create a time-log entry (requires roleId) |
kaiten_update_timelog |
Update a time-log entry |
kaiten_delete_timelog |
Delete a time-log entry (requires cardId) |
kaiten_get_timesheet |
Global timesheet across users/spaces/boards (Wave 5) |
| Tool | Description |
|---|---|
kaiten_list_spaces |
List all spaces |
kaiten_get_space |
Get space by ID |
kaiten_list_boards |
List boards in a space |
kaiten_get_board |
Get board by ID (with inline columns/lanes at verbosity=max) |
kaiten_list_columns |
Columns (statuses) of a board |
kaiten_list_subcolumns |
Sub-columns inside a parent column (Wave 5) |
kaiten_list_lanes |
Lanes (swimlanes) of a board |
kaiten_list_card_types |
Card types (global to the company) |
kaiten_list_space_users |
Users assigned to a specific space |
| Tool | Description |
|---|---|
kaiten_list_subtasks |
List child cards |
kaiten_attach_subtask |
Attach a card as a subtask |
kaiten_detach_subtask |
Detach a subtask |
| Tool | Description |
|---|---|
kaiten_list_card_tags |
Tags currently on a card |
kaiten_list_workspace_tags |
All tags defined in the workspace |
kaiten_add_tag |
Add a tag to a card (auto-creates the tag if it doesn't exist) |
kaiten_remove_tag |
Remove a tag from a card |
| Tool | Description |
|---|---|
kaiten_get_checklist |
Get a checklist with its items |
kaiten_create_checklist |
Create a new checklist on a card |
kaiten_delete_checklist |
Delete a checklist |
kaiten_rename_checklist |
Rename a checklist |
kaiten_add_checklist_item |
Add an item to a checklist |
kaiten_update_checklist_item |
Update an item (text, checked, due date, responsible) |
kaiten_delete_checklist_item |
Delete a checklist item |
| Tool | Description |
|---|---|
kaiten_list_files |
List card attachments |
kaiten_upload_file |
Upload a file to a card |
kaiten_delete_file |
Delete a card attachment |
| Tool | Description |
|---|---|
kaiten_list_custom_properties |
List custom properties available in the workspace |
kaiten_list_custom_property_select_values |
List allowed values for a select / multi_select property (Wave 5) |
| Tool | Description |
|---|---|
kaiten_get_current_user |
The authenticated user |
kaiten_list_users |
All users in the workspace |
kaiten_list_company_roles |
Roles defined at the company level (renamed from get_user_roles) |
| Tool | Description |
|---|---|
kaiten_list_card_members |
Members assigned to a card |
kaiten_add_card_member |
Add a user as a card member |
kaiten_remove_card_member |
Remove a member from a card |
kaiten_set_card_responsible |
Set the responsible user (the card always has an owner — only re-assignment) |
| Tool | Description |
|---|---|
kaiten_list_card_blockers |
Blockers on a card |
kaiten_add_card_blocker |
Add a blocker (free-form reason or referencing another card) |
kaiten_update_card_blocker |
Update blocker reason or referenced card |
kaiten_release_card_blocker |
Release a blocker (soft release — flips released:true, the row stays in the list) |
| Tool | Description |
|---|---|
kaiten_list_card_external_links |
List external links on a card |
kaiten_add_card_external_link |
Link the card to a Jira ticket, GitHub issue, etc. |
kaiten_update_card_external_link |
Update a link's URL or description |
kaiten_remove_card_external_link |
Remove a link (true hard-delete, unlike blockers) |
| Tool | Description |
|---|---|
kaiten_list_sprints |
List sprints visible to the user |
kaiten_get_sprint |
Get a sprint summary with its cards |
| URI | Description |
|---|---|
kaiten://spaces |
All spaces with IDs and titles |
kaiten://boards |
All boards across spaces (id, title, spaceId) |
| Name | Description |
|---|---|
create-card |
Step-by-step card creation workflow |
time-report |
Time tracking report for a date range |
board-overview |
Summarize a board: columns, cards, overdue items |
Kaiten uses API tokens. OAuth is not supported by the Kaiten API.
- Profile → API Key in your Kaiten instance
- Create a token, copy it
- Set
KAITEN_API_TOKENandKAITEN_URLin your MCP client config
The current user is detected automatically — you don't need to set a user ID anywhere.
Only two variables are required: KAITEN_API_TOKEN and KAITEN_URL. Everything else is optional and exists for performance/safety tuning.
| Variable | Required | Default | Description |
|---|---|---|---|
KAITEN_API_TOKEN |
yes | — | API token (Bearer) |
KAITEN_URL |
yes | — | Kaiten instance URL, e.g. https://your-company.kaiten.ru |
KAITEN_DEFAULT_SPACE_ID |
no | — | Default space ID for kaiten_search_cards when spaceId is omitted. Without it, the LLM will discover spaces via kaiten_list_spaces first time it needs to search — costs one extra round-trip. Useful if you have many spaces and want to pin search to one. |
KAITEN_REQUEST_TIMEOUT_MS |
no | 10000 |
HTTP request timeout in milliseconds |
KAITEN_CACHE_TTL_MS |
no | 300000 |
TTL for cached reference data (spaces, boards, users, roles) |
KAITEN_ALLOWED_SPACE_IDS |
no | — | Comma-separated whitelist of space IDs the AI can access (multi-team safety) |
KAITEN_ALLOWED_BOARD_IDS |
no | — | Comma-separated whitelist of board IDs |
You don't need a developer console — every Kaiten ID is visible in the browser address bar.
- Space ID — click a space in the left menu, look at the URL:
https://your-company.kaiten.ru/space/762572→ space ID is762572. - Board ID — click a board, look at the URL:
https://your-company.kaiten.ru/space/762572/boards/1727446→ board ID is1727446. - Card ID — open a card, look at the URL:
https://your-company.kaiten.ru/space/762572/card/63258149→ card ID is63258149(also visible in the card header as#63258149).
These are the values you put into KAITEN_DEFAULT_SPACE_ID, KAITEN_ALLOWED_SPACE_IDS, and KAITEN_ALLOWED_BOARD_IDS.
Every tool accepts an optional verbosity parameter (default: min):
| Level | Description |
|---|---|
min |
Compact response, saves LLM context — only key fields |
normal |
Common fields — strict superset of min |
max |
Full detail — strict superset of normal, includes nested children where relevant |
raw |
Unprocessed API response, no transformation |
The min → normal → max ladder is a strict superset chain (Wave 4 PR 4.6) — anything visible at min is also visible at normal and max.
- Cross-resource preflight (Wave 4 PR 4.7): mutating tools that take both a parent ID and a child ID (e.g. card + comment, card + checklist) verify the child belongs to the parent before sending the mutation. Prevents silent cross-resource bugs.
- Author enrichment (Wave 2): comment/timelog responses include
author_nameeven when the API returns onlyauthor_id— the current user's name is filled in client-side. - Context-aware error hints (Wave 4 PR 4.5): error messages from the API include a hint about which related read tool to call to recover (e.g. "404 on
/cards/{id}→ trykaiten_search_cards"). - Automatic retries: failed requests (429, 5xx, network errors, timeouts) are retried up to 3 times with exponential backoff and jitter. The
Retry-Afterheader is honored. - Idempotency: write requests include idempotency keys to prevent duplicate mutations on retries.
- Caching: spaces, boards, users, roles cached in-memory with configurable TTL. Stale data is returned immediately while a background refresh runs.
- Crash protection: unhandled errors are logged without crashing the server.
- Response truncation: very large responses are auto-truncated to protect the LLM context window.
These are real Kaiten-side behaviors discovered during Wave 4–5 implementation. Each is mitigated in the corresponding tool, but the LLM will see them in tool descriptions.
update_card.stateis read-only. The card'sstateis computed fromcolumn.type(1→queued, 2→in_progress, 3→done). To change state, move the card withcolumn_id.update_card.sizedoesn't accept a number. UsesizeText: "5 SP"(sent assize_text) orestimate_workloadin seconds.owner_idcannot be cleared. Cards always have an owner. You can only re-assign, not remove.- Empty
PATCH /cards/{id}returns 403 (a quirk of the API itself). The server validates this client-side and returns a clearer error. - Blocker
DELETEis a soft release. It flipsreleased:truebut keeps the row in the list endpoint. The tool is namedkaiten_release_card_blocker(notremove_*) to make this explicit. - External-link
DELETEis a true hard-delete. Asymmetric with blockers — the link disappears. location_history.idis a string, not a number — it's preserved as-is (Number-parsing would lose precision for IDs > 2^53).- Sprint not-found returns 403, not 404. Both are handled by the error hint helper.
- Timesheet rejects empty array filters.
card_ids=(empty value) returns 400. Empty arrays are skipped from the query string entirely. - Card descriptions and comments default to markdown. Kaiten's UI renders descriptions and comments as markdown. If you send raw HTML without telling Kaiten, the angle brackets stay in the body and the UI shows them as literal text. To send HTML, pass
textFormat: 'html'tokaiten_create_card/kaiten_update_card/kaiten_create_comment/kaiten_update_comment— the server will then parse and normalize. Discovered live during the 0.1.1 → 0.1.2 dogfooding round (cards use the documentedtext_format_type_id; comments use an undocumentedtypefield that we verified works). - Workspace tags can't be deleted via the API. Kaiten's
/tagsendpoint only supportsGETandPOST(verifieddocs/api/tags/).kaiten_remove_tagonly detaches a tag from a card — it doesn't remove it from the workspace pool. Orphan workspace tags accumulate over time and can only be cleaned up via the Kaiten admin UI.
The package ships with LLM_GUIDE.md — a comprehensive reference designed to be read by an LLM before it starts using the tools. It covers the Kaiten object hierarchy, common workflows, API quirks, error recovery patterns, and a tool selection quick-reference.
Add this line to your project's CLAUDE.md (or equivalent instructions file):
Read ./node_modules/kaiten-mcp/LLM_GUIDE.md before working with Kaiten.
This gives the LLM full context about Kaiten's data model and the non-obvious behaviors (like state being computed from column.type, or blocker soft-release semantics) before it makes its first tool call.
The guide is included in the npm package — it's available at node_modules/kaiten-mcp/LLM_GUIDE.md after npx -y kaiten-mcp runs.
- Server won't start: check that
KAITEN_API_TOKENandKAITEN_URLare set in the MCP configenvblock. - 401 errors: the token may be expired or invalid — generate a new one in your Kaiten profile.
- Large responses: use filters (
boardId,spaceId) or lower thelimit. - 403 on a write operation: check the card isn't archived and that your token has write access to the space.
Contributions are welcome! See CONTRIBUTING.md for setup instructions, code style, and PR guidelines.