English
Installation
Kaiten MCP connects an MCP client to one Kaiten company over stdio. You need Node.js 24 or newer, a Kaiten API token, and a client that can launch a local MCP server. The token determines which spaces, cards and operations are accessible.
1. Check Node.js
Use Node.js 24 or newer. npm and npx are included with Node.js:
sh
node --version
npm --version2. Configure your MCP client
Choose a CLI command or configuration file below. The Codex and Claude Code examples install the server for your user across projects. Replace the company address and token, and merge entries into existing configuration files. Keep real tokens out of version control. Restart the client after setup.
Input values never leave your browser
CLI commands use POSIX shell syntax.
Codex
CLI:
sh
codex mcp add kaiten --env KAITEN_ORIGIN='https://company.kaiten.ru' --env KAITEN_TOKEN='YOUR_KAITEN_TOKEN' -- npx --yes @2chevskii/kaiten-mcpConfiguration file: add to ~/.codex/config.toml:
toml
[mcp_servers.kaiten]
command = "npx"
args = ["--yes", "@2chevskii/kaiten-mcp"]
[mcp_servers.kaiten.env]
KAITEN_ORIGIN = "https://company.kaiten.ru"
KAITEN_TOKEN = "YOUR_KAITEN_TOKEN"For one trusted project, use .codex/config.toml at its root instead. Run codex mcp list to check registration, or /mcp inside Codex for active servers. See the official Codex MCP guide.
Claude Code
CLI:
sh
claude mcp add --scope user --transport stdio kaiten --env KAITEN_ORIGIN='https://company.kaiten.ru' --env KAITEN_TOKEN='YOUR_KAITEN_TOKEN' -- npx --yes @2chevskii/kaiten-mcpConfiguration file: merge this entry into the top-level mcpServers in ~/.claude.json:
json
{
"mcpServers": {
"kaiten": {
"type": "stdio",
"command": "npx",
"args": ["--yes", "@2chevskii/kaiten-mcp"],
"env": {
"KAITEN_ORIGIN": "https://company.kaiten.ru",
"KAITEN_TOKEN": "YOUR_KAITEN_TOKEN"
}
}
}
}For a shared project configuration, put the same JSON in .mcp.json at the project root, or use --scope project in the CLI command. Run claude mcp get kaiten to check status, or /mcp inside Claude Code. See the official Claude Code MCP guide.
Other MCP clients
For clients that accept an mcpServers JSON configuration, add:
json
{
"mcpServers": {
"kaiten": {
"command": "npx",
"args": ["--yes", "@2chevskii/kaiten-mcp"],
"env": {
"KAITEN_ORIGIN": "https://company.kaiten.ru",
"KAITEN_TOKEN": "YOUR_KAITEN_TOKEN"
}
}
}
}npx resolves the package and downloads it into npm's cache when needed. --yes suppresses the installation prompt so the MCP client can start the server unattended. The published package contains the compiled server.
Replace the company address and token. The configuration location and reload procedure depend on your MCP client. Supply the token through the client's environment or secret settings where supported. Ensure the client can find Node.js and npx in its PATH.
For a source checkout, follow development.
Environment variables
| Variable | Required | Value |
|---|---|---|
KAITEN_ORIGIN | Yes | Company origin, such as https://company.kaiten.ru; no API path, credentials, query or fragment |
KAITEN_TOKEN | Either source | Kaiten API token; whitespace around the token is trimmed |
KAITEN_TIMEOUT_MS | No | Timeout per tool operation in milliseconds; default 30000, integer from 1 to 2147483647 |
KAITEN_CONTEXT_FILE | No | Comma-separated context file paths, loaded left to right at startup; overrides automatic discovery |
KAITEN_ADDON_SECRET | No | Addon secret for the optional addon OAuth operations; separate from the API token |
KAITEN_TOKEN_FILE | Alternative | Plain UTF-8 API token file, read before each request; mutually exclusive with KAITEN_TOKEN |
KAITEN_ADDON_SECRET_FILE | No | Rotating addon secret file; mutually exclusive with KAITEN_ADDON_SECRET |
KAITEN_API_VERSION | No | REST prefix: v1 (default) or latest |
KAITEN_MAX_FILE_BYTES | No | Binary upload/download cap; default 5242880 (5 MiB), range 1–104857600; also caps combined comment-form file bytes |
HTTPS is required for a Kaiten company. The client library accepts loopback HTTP for local fixtures. REST requests use API v1 by default. See connection options for API-version selection and rotating credentials.
To connect to several companies or tokens, create separate server entries with unique names and their own environment variables.
Identity and connection context
Without additional configuration, “I”, “me” and “my” refer to the account returned by kaiten_workspace_read (get_current_user). The assistant is instructed to use its Kaiten ID, without asking whether its name matches your OpenAI profile, OS username or nickname. “My tasks” defaults to responsible_ids; explicit requests such as “cards I created” take precedence.
For a service token, set user_id to the person whose tasks should count as yours. This does not change the token account or its permissions: get_current_user always returns the actual token account.
Optionally create .agents/kaiten-mcp.context.json in your project or user profile:
json
{
"user_id": 42,
"my_tasks_role": "responsible",
"instructions": "Show overdue tasks first. Use the delivery board for delivery work.",
"spaces": [{"id": 10, "purpose": "Engineering work"}],
"boards": [
{
"id": 20,
"space_id": 10,
"purpose": "Delivery work",
"guidance": "Choose for delivery requests; use another board for infrastructure."
}
]
}Without KAITEN_CONTEXT_FILE, the server loads existing files in this order:
<user profile>/.agents/kaiten-mcp.context.json..agents/kaiten-mcp.context.jsonin the project root, then each directory down to the server's working directory, with the closest file loaded last.
The project root is the nearest ancestor (including the working directory) with a .git file or directory, including Git worktrees. Without one, only the working directory and user profile are searched. A file reached through both locations is loaded once. The MCP client must launch the server with the project's working directory for project discovery to work; it does not follow the chat's project automatically. Missing automatically discovered files are skipped.
To replace automatic discovery, set KAITEN_CONTEXT_FILE in the same environment settings as the token. For Codex, add under [mcp_servers.kaiten.env]:
toml
KAITEN_CONTEXT_FILE = "C:/Users/me/.agents/kaiten-mcp.context.json,.agents/kaiten-mcp.context.json"Explicit paths load left to right; relative paths resolve against the server's working directory. Every explicit file must exist. Whitespace around paths is trimmed; empty entries and paths containing commas are not supported. Use an explicit file containing {} to disable inherited automatic context.
When merging, the last specified user_id or my_tasks_role wins. instructions are concatenated in load order; later instructions take precedence on conflicts. spaces and boards merge by id, with later records replacing earlier records in full, including optional fields. An omitted field preserves the inherited value; an empty array clears the corresponding list. The same rules apply to automatic discovery and explicit paths.
All JSON fields are optional. my_tasks_role accepts responsible (default), member or owner, selecting the corresponding search filter. Every space or board requires a positive safe integer id and nonempty purpose; guidance is optional, as is a board's space_id. user_id uses the same ID constraints. Unknown fields, invalid values, empty explicit paths, unreadable files and malformed JSON stop startup with a generic diagnostic on stderr. Files are read once; restart the server after edits. Each server entry can use its own files. Their merged contents are shared with the model, so keep secrets out.
The server sends private connection context in MCP initialization instructions. No extra Kaiten requests are made during initialization.
Explicit user requests override connection preferences. For omitted scope, the assistant should choose a configured space or board only if its purpose fits unambiguously. Otherwise it should discover available scopes and ask when needed. Before using configured references, it should use get_space or get_board and verify a configured board/space relationship with list_boards in the workspace read tool, following pagination. Missing or inaccessible references require reporting the problem and asking for a replacement, without silently switching scope. A request for all tasks must not be silently narrowed to a default.
These are instructions to the model, not automatic filter injection or server-side access controls. Tools continue to use the IDs and filters supplied by the client; Kaiten enforces permissions. No network validation of configured references occurs at startup. Actual model behavior needs verification in your MCP client.
3. Verify the connection
Reload your client's MCP configuration and check that it discovers 14 tools with the kaiten_ prefix. Ask the assistant:
Identify my Kaiten user, then list the spaces I can access.
This uses get_current_user and list_spaces and verifies a real read through the configured token. A successful MCP connection alone verifies process startup and tool discovery; the first tool call verifies Kaiten access.
If the process exits or the tool fails, see troubleshooting. Starting the server in a terminal may appear idle while it waits for MCP input.
4. Choose a workflow
Start with finding your cards, reading a card's context, or creating a card and checklist. The tool reference lists every tool's arguments and behavior.
Tools execute changes immediately when called. The MCP host decides how to present or approve calls; server annotations describe read and destructive operations. Kaiten enforces the token's permissions.
Search returns compact summaries. Fetch card details, comments and checklist items with their dedicated tools. For paginated operations, follow the returned continuation field until it is null.
Supported scope
The server exposes 14 tools across seven read/write domains. See the tool reference to select a domain and operation.
- Workspace hierarchy, profiles, groups, roles and access; SCIM provisioning.
- Cards, filters, blockers, dependencies, relationships, members, tags and types.
- Custom fields, options, scores, votes and directories.
- Shared checklists and templates, time tracking, iterations and sprints, and service desk/SLA.
- Documents, groups and schemas, automations, and activity/audit logs.
- File upload, metadata, download and deletion, including comment and custom-property files.
- Incoming card webhooks, addon OAuth, and connection options/rotating credentials.
The server runs over stdio and can return embedded binary file resources. It does not provide an HTTP MCP endpoint, a resource-read service, prompts, or a webhook listener. Upstream metadata/import/addon browser declarations are types, not executable API services; see client coverage. Kaiten permissions, plan availability and the pinned client's pagination limits still apply. Protocol tests use local HTTP fixtures; they do not verify a live Kaiten account.