
Kimi MCP Server
Bridges MCP clients to Moonshot AI's Kimi Code CLI, letting you invoke Kimi's coding agents without leaving your editor. Wraps the native CLI flags (sessions, multi-root workspaces, MCP passthrough) and adds structured tools: ask-kimi for file analysis with @path references and session resume, batch-kimi for parallel task execution, review-changes for git diff code review, and brainstorm for structured ideation modes. Uses the same working directory inference chain as codex-mcp-tool (argument, env var, @path, process cwd). Useful when you want Kimi K2.6's agent orchestration and 262k context as a sub-agent inside Claude Desktop, Cursor, or any stdio MCP client. Requires Kimi CLI installed and authenticated via /login or MOONSHOT_API_KEY.
- tools
- 9
- auth
- Secret needed
- transport
- STDIO
- env vars
- 4
- last updated
- May 27, 2026
Tools
9 toolsPublic tool metadata for what this MCP can expose to an agent.
ask-kimiMain entry — file analysis (@path), session resume, MCP passthrough
Main entry — file analysis (@path), session resume, MCP passthrough
No parameter schema in public metadata yet.
brainstormStructured ideation (divergent / convergent / SCAMPER / design-thinking / lateral / auto)
Structured ideation (divergent / convergent / SCAMPER / design-thinking / lateral / auto)
No parameter schema in public metadata yet.
batch-kimiSequential or parallel atomic tasks with priority, stop-on-error, structured report
Sequential or parallel atomic tasks with priority, stop-on-error, structured report
No parameter schema in public metadata yet.
review-changesCode review of working tree / branch diff / specific commit (collects git diff and prompts Kimi)
Code review of working tree / branch diff / specific commit (collects git diff and prompts Kimi)
No parameter schema in public metadata yet.
list-sessionsList, delete, or clear active conversation sessions
List, delete, or clear active conversation sessions
No parameter schema in public metadata yet.
healthDiagnose Kimi CLI installation, auth, and session state
Diagnose Kimi CLI installation, auth, and session state
No parameter schema in public metadata yet.
pingSmoke test
Smoke test
No parameter schema in public metadata yet.
HelpHelp passthrough
Help passthrough
No parameter schema in public metadata yet.
versionSmoke test
Smoke test
No parameter schema in public metadata yet.
Sponsors
Configuration
KIMI_MCP_CWDOverride working directory for all tool calls
KIMI_SESSION_TTL_MSdefault: 86400000Session time-to-live in milliseconds (default: 86400000 = 24h)
KIMI_MAX_SESSIONSdefault: 50Maximum concurrent sessions (default: 50)
MOONSHOT_API_KEYsecretForwarded to Kimi CLI for unattended auth. Leave unset to use OAuth (run `kimi /login` once).
Readme
Kimi MCP Server
MCP server (stdio) that bridges Claude / Cursor / any MCP client to Moonshot AI's Kimi Code CLI.
Architecture mirrors @trishchuk/codex-mcp-tool — same patterns, adapted to Kimi's flag surface (--print, --quiet, -r, --continue, --add-dir, --mcp-config-file, --config).
Why
Kimi K2.6 (April 2026) is a 1T-parameter MoE open-weight model with native agent-swarm orchestration, 262k context, and SWE-Bench Pro on par with GPT-5.5. Kimi Code CLI is the reference agent harness. This server lets MCP-aware editors call Kimi as a sub-agent without leaving their primary interface.
Install
npm install -g @trishchuk/kimi-mcp-server
You also need Kimi Code CLI:
curl -LsSf https://code.kimi.com/install.sh | bash
# OR
uv tool install --python 3.13 kimi-cli
Then run kimi once and use /login to authenticate via the Kimi Code platform — or set MOONSHOT_API_KEY.
Configure (Claude Desktop / Cursor / Claude Code)
Details
- Repository
- github.com/x51xxx/kimi-mcp-server
- Website
- github.com/x51xxx/kimi-mcp-server#readme
- Package
@trishchuk/kimi-mcp-server- Transport
- STDIO
- Auth
- Required
- Registry
- MCP registry, active