Kimi MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| KIMI_MCP_CWD | No | Override working directory for every tool call | |
| MOONSHOT_API_KEY | No | Forwarded to Kimi CLI for unattended auth | |
| KIMI_MAX_SESSIONS | No | Max concurrent sessions | 50 |
| KIMI_SESSION_TTL_MS | No | Session expiration in milliseconds | 86400000 |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {} |
| logging | {} |
| prompts | {} |
| completions | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| ask-kimiB | Execute Kimi Code CLI with file analysis (@syntax), session resume, MCP passthrough, and safety controls. |
| batch-kimiA | Delegate multiple atomic tasks to Kimi for batch processing. Ideal for repetitive operations, mass refactoring, and automated transformations. |
| review-changesA | Run a code review against the current repository using Kimi (collects git diff + structured review prompt). |
| brainstormA | Generate creative ideas using structured frameworks with domain context and feasibility analysis. |
| bg-kimiA | Run Kimi CLI as a detached background task. Subactions: start (returns taskId), status, tail (log output), stop, remove, list. Use for long-running autonomous work — the MCP call returns immediately and you poll status later. |
| plan-kimiA | Generate a structured implementation plan using Kimi's --plan mode. Use BEFORE coding to get steps, files-to-touch, risks, and open questions. Distinct from ask-kimi: uses --plan flag (different system prompt) and parses structured output. |
| digest-kimiA | Ingest many files at once and answer a focused question. Uses Kimi's 262K context to swallow whole modules / docs that don't fit in the caller's context. Walks directories, filters by extension, truncates oversized files, caps total payload. Returns a concentrated brief. |
| delegate-kimiA | Delegate an implementation task to Kimi in an isolated git worktree. Kimi runs autonomously (--yolo) on a fresh branch, optionally looping against a test command. Returns a taskId; later 'collect' to grab the diff. Safe: changes are sandboxed, caller reviews & applies. |
| list-sessionsB | List active conversation sessions with metadata, or manage them (delete/clear) |
| healthA | Check Kimi CLI installation, authentication, and session health |
| pingC | Echo |
| HelpA | Show Kimi CLI help output |
| versionA | Display version and system information |
| metricsA | Expose Prometheus-formatted metrics for Kimi MCP server |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| ask-kimi | Execute Kimi Code CLI in print mode with optional session continuity |
| batch-kimi | Execute multiple atomic Kimi tasks in batch mode for efficient automation |
| review-changes | Review uncommitted changes / branch diff / specific commit with Kimi |
| brainstorm | Create structured brainstorming with chosen methodology and analysis |
| list-sessions | View and manage active Kimi sessions |
| health | Diagnose Kimi CLI installation, authentication, and session health |
| ping | Echo test message with structured response. |
| Help | Receive help information |
| version | Get version information for Kimi CLI and MCP server |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- 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/x51xxx/kimi-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server