Kimi MCP Server logo

Kimi MCP Server

Bridges MCP clients to Moonshot AI’s Kimi Code CLI for code analysis, reviews, brainstorming, and session-based tasks.

Install Kimi MCP Server

Run the project’s own setup commands, in order.

Setup steps from the project

Kimi MCP Server installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    npm install -g @trishchuk/kimi-mcp-server
    

Overview

Kimi MCP Server MCP server connects MCP-aware clients to Moonshot AI’s Kimi Code CLI through a stdio process. It provides tools for file analysis, structured brainstorming, batched tasks, Git-based code reviews, session management, and CLI diagnostics. Reach for it when an editor or agent needs to delegate coding work to Kimi while preserving project context and optional conversation sessions.

Use cases

  • Analyze files from an MCP-enabled editor
  • Review working-tree or branch changes
  • Delegate independent coding tasks in batches
  • Resume Kimi conversations by workspace
  • Diagnose Kimi CLI authentication and session state

Key features

  • Kimi Code CLI access over stdio
  • File-context prompts with @path references
  • Workspace-isolated session resumption
  • Structured brainstorming and batch execution
  • Git diff-based code review
  • CLI health and smoke-test tools

Tools7

What Kimi MCP Server lets your agent do. Expand a tool for its parameters.

Self-reported~135 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

15/15 checks healthy over the last 83d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars1Stargazers on the source repository.
Last commit6mo agoMost recent push to the default branch.
Tools exposed7Callable tools this server registers over MCP.
Directory activity4 viewsConfig copies, upvotes, and views on AllMCPs.

How Kimi MCP Server works

What Kimi MCP Server does

Kimi MCP Server MCP server exposes Moonshot AI’s Kimi Code CLI as tools for MCP clients. It is intended for use from Claude Desktop, Cursor, Claude Code, or another client that can launch an MCP server over stdio. The server lets an agent send prompts to Kimi, include file references, resume conversations, and request structured development workflows.

The main entry point, ask-kimi, handles general prompts and supports @path/to/file references for adding file context. It can also resume a tracked session, select a model, change thinking settings, return either final text or fuller tool output, and pass an MCP configuration file to Kimi for nested MCP access.

How it works

The server starts Kimi CLI in non-interactive print mode and translates MCP tool arguments into the CLI’s supported flags. Kimi performs the requested work in the selected project directory, and the server returns the result to the calling client. Streaming JSON output can be parsed into assistant and tool messages, while the default response mode returns only the final assistant text.

Working-directory selection follows a defined priority: the per-call workingDir argument, KIMI_MCP_CWD, PWD, INIT_CWD, an inferred path from an @path reference, and finally the current process directory. Additional project roots can be supplied through repeated addDirs values.

Session identifiers are isolated by workspace and tracked by the server. Native Kimi session IDs can be replayed for later calls, and continueLatest can request the most recent session in the current directory. Sessions expire after the configured time-to-live and are limited by the configured maximum.

Setup and configuration

Install the npm package globally, then install Kimi Code CLI separately using its installer or uv. Kimi must be run once for platform login, unless unattended authentication is provided with MOONSHOT_API_KEY. The MCP client can launch the server with the command kimi-mcp and needs no extra setting when its working directory is the intended project.

Set KIMI_MCP_CWD to pin a project root when the client starts the process elsewhere. KIMI_SESSION_TTL_MS controls session expiration, and KIMI_MAX_SESSIONS sets the concurrent session limit. These settings are optional; authentication can use the Kimi login flow or the API key environment variable.

Kimi MCP Server MCP server is configured as a standard stdio MCP process. Development from the repository uses the package install, TypeScript build, lint check, and a direct Node smoke run against the generated entry point.

Tools and capabilities

  • ask-kimi: Send prompts, attach file context, resume sessions, choose models, toggle thinking, and pass nested MCP configuration.
  • brainstorm: Run divergent, convergent, SCAMPER, design-thinking, lateral, or automatic ideation modes.
  • batch-kimi: Execute atomic tasks sequentially or in parallel with priorities, stop-on-error behavior, and a structured report.
  • review-changes: Review the working tree, a branch diff, or a specific commit after collecting the relevant Git diff.
  • list-sessions: List, delete, or clear active conversation sessions.
  • health: Check Kimi CLI installation, authentication, and session state.
  • ping, help, and version operations: Run smoke checks or forward basic CLI information.

Limitations and notes

The server depends on a separately installed Kimi Code CLI and on valid Kimi authentication. Its MCP transport is stdio, so the client must support launching a local command. Print mode is required for MCP calls, and approval shortcuts such as yolo and afk are mainly documentation or logging controls because print mode automatically approves operations. Kimi CLI transient failures may use exit code 75, while fatal failures use exit code 1.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Kimi MCP Server

Kimi MCP Server is an MCP server that connects MCP-aware clients to Moonshot AI’s Kimi Code CLI. Its main tools support prompt and file analysis, brainstorming, batched tasks, Git change reviews, session management, and diagnostics. It runs locally over stdio and delegates the requested work to the installed Kimi CLI.

Install it globally with npm using the package’s published install command, then install Kimi Code CLI separately. Run Kimi once and authenticate with `/login`, or provide `MOONSHOT_API_KEY`. Configure the MCP client to launch the `kimi-mcp` command over stdio.

Yes, Kimi MCP Server works with Cursor. Add a stdio MCP server entry whose command is `kimi-mcp`; set `KIMI_MCP_CWD` if Cursor starts the process outside the intended project directory.

Use the `review-changes` tool to review the working tree, a branch diff, or a specific commit. The server collects the relevant `git diff` and sends it to Kimi for analysis.

Use `sessionId` to address a tracked workspace-isolated session, or set `continueLatest` to request the latest session in the current directory. The server stores the native Kimi session ID and replays it through the CLI.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewKimi MCP Server AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/kimi-mcp-server?style=directory)](https://allmcps.com/mcp/kimi-mcp-server)
HTML Embed
<a href="https://allmcps.com/mcp/kimi-mcp-server"><img src="https://allmcps.com/api/badge/kimi-mcp-server?style=directory" alt="Kimi MCP Server on AllMCPs" /></a>