← Back to directory
K

Kimi Code MCP Server

Community
Let Kimi Code help Claude Code analyze codebases.
Category
Dev Tools #677 of 751
Stars
★ 63 Popular
Transport
stdio (local process)
Runtime
Node.js 18+
Credentials
API key / credential required
License
MIT
Last commit
Tools
8
37FMRS · D

The README documents the API and CLI tool split, setup requirements, and some version limitations. The session-listing tool reads metadata only from legacy ~/.kimi/sessions; it does not list current ~/.kimi-code sessions.

Strongest · Documentation 9/20 Weakest · Reliability 5/20

Reliability
5/20
Security and permissions
8/20
Maintenance
7/20
Documentation
9/20
Setup experience
8/20
Why each score
Reliability 5/20
The README describes a stdio MCP server, eight tools, and API/CLI routing, but also says the npm 0.3.0 package differs from the documented 0.5.0 source behavior. It discloses that CLI authentication detection and session listing do not fully recognize current CLI 2.x paths. There is no verifiable CI or key-path test evidence, and the package/documentation version gap lowers confidence. The supplied material does not establish that initialization or tool-list handshakes necessarily fail.
Security and permissions 8/20
The documentation identifies API key sources, the external Kimi API endpoint, and that the CLI reads local code; it distinguishes the API and CLI data boundaries. However, the CLI can read code and run commands, while verifiable detail about permission scope, confirmation of dangerous actions, and data handling is limited. The material shows no red-line behavior, but it also cannot establish implementation-level safeguards, so visible risks with limited control evidence warrant a cautious score.
Maintenance 7/20
The repository has an MIT license, version information, and npm publication details, and is not archived with a small number of open issues. The supplied material gives no evidence of recent commits, issue response, dependency updates, a security response channel, or a sustained release process. The documented difference between source and npm versions also indicates a release synchronization gap.
Documentation 9/20
The README provides a two-backend explanation, tool list, configuration examples, model aliases, cost limits, and troubleshooting notes, including some older CLI compatibility issues. It also states that the published package version differs from the source version and that some authentication and session features do not fully recognize current CLI paths. With only the README and manifest supplied, implementation and example consistency cannot be verified.
Setup experience 8/20
The README gives npm and source installation paths, Claude Code project and user stdio configuration examples, and distinguishes API-key-only tools from codebase analysis that requires installing and logging into the CLI. Setup loses points because analysis also requires manually linking the binary, the Windows guidance still depends on a POSIX path, and the README warns that the current npm package may not provide the documented behavior.

Static review · not runReviewed 2026-11-29

Read the FMRS scoring method →

Fit and risk

What it can accessReads local filesRuns commands or codeUses the network

Best for

  • Developers using Claude Code who want Kimi Code to handle large codebase reading tasks.
  • Users seeking a second model's opinion who can provide sufficient code and task context.

Not for

  • Small or single-file changes where reading the files directly is faster.
  • Users who need API or CLI capabilities not described in the README.
  • Users expecting this MCP server itself to provide a full editor or modify code.

Required permissions

  • The local CLI backend invokes Kimi CLI with the configured working directory so it can read the codebase; Kimi Code may also run commands or search files, depending on its capabilities.
  • The API backend receives only the context supplied by the caller and does not read the local codebase itself.
  • API tools require a Kimi Code API key; CLI tools require the CLI to be installed and logged in.

Risks and side effects

  • Code and context sent to the API or CLI are processed by the corresponding Kimi Code backend; avoid sending content that should not be shared.
  • Tool outputs are model analysis or verification and should be reviewed before acting on them.
  • The README's token-savings figures are illustrative and do not represent total cost reductions; Kimi subscription costs are separate.
  • The README says the published npm version 0.3.0 may behave differently from newer source versions.

Setup

Before you start

Runtime:Node.js 18+

KIMICODE_API_KEY optionalsecret Create an API key in the Kimi Code console; used by direct API tools such as kimi_query and kimi_verify.
KIMI_CODE_API_KEY optionalsecret An alternative Kimi Code API key variable; get the key from the Kimi Code console.
KIMI_API_KEY optionalsecret An alternative Kimi Code API key variable; get the key from the Kimi Code console.
Other optional settings (2)
KIMI_BASE_URL optional Optional override for the Kimi Code API endpoint; the default is https://api.kimi.com/coding/v1.
KIMI_MODEL optional Optional model override; the default model is k3.

Use the README's example to add the supplied MCP configuration to .mcp.json at the root of a Claude Code project, or use Claude Code's user-scope stdio configuration method. Direct API tools require a Kimi Code API key. kimi_analyze and kimi_resume require the Kimi Code CLI, a completed kimi login, and an executable at ~/.local/bin/kimi. The README warns that npm's 0.3.0 package differs from the newer source behavior described there; the listed npm install command may not provide newer behavior such as the k3 default.

.mcp.json
{"mcpServers":{"kimi-code":{"command":"npx","args":["-y","kimi-mcp-server"]}}}

Shown for Claude Code. Other clients may use a different file or key (VS Code uses "servers") — the configurator below converts it.

.vscode/mcp.json
{
  "servers": {
    "kimi-code": {
      "command": "npx",
      "args": [
        "-y",
        "kimi-mcp-server"
      ]
    }
  }
}

Goes in your project's .vscode/mcp.json (VS Code uses a "servers" key).

~/.codex/config.toml
[mcp_servers.kimi-code]
command = "npx"
args = ["-y", "kimi-mcp-server"]

Append to ~/.codex/config.toml (OpenAI Codex CLI uses TOML).

Terminal
claude mcp add kimi-code -- npx -y kimi-mcp-server

Run it in a terminal; replace any <…> placeholders with your own values first.

Check that it works

Run /mcp in Claude Code and confirm kimi-code appears with 8 tools. Then ask it to analyze the codebase architecture and confirm you receive Kimi's analysis.

Troubleshooting

  1. Run kimi_status to check API key state separately from CLI installation and authentication.
  2. For API tool failures, confirm the MCP process can access KIMICODE_API_KEY; CLI login does not provide an API key.
  3. If CLI tools cannot find the executable, confirm ~/.local/bin/kimi points to the installed Kimi Code CLI.
  4. If the CLI reports failed authentication or a rejected token, the README advises running kimi login again.
  5. Check the installed version and model alias; the README says npm 0.3.0 may not have the newer source's default k3 behavior.

Things to try

Once connected, you can ask your AI assistant things like:

  • Analyze this codebase's architecture and summarize its main modules.
  • Review the recent changes for regressions and edge cases.
  • Independently check this code for security issues.

Tools 8

kimi_analyze read-only
Use the Kimi CLI to deeply analyze a codebase in the specified working directory.
kimi_query read-only
Answer general programming questions through the Kimi API; falls back to the CLI if no API key is configured.
kimi_verify read-only
Independently review provided code, diffs, or claims through the API using the supplied context.
kimi_list_sessions read-only
List session metadata in legacy ~/.kimi/sessions; current ~/.kimi-code sessions are not included.
kimi_resume read-only
Continue a Kimi CLI session using its session ID.
kimi_status read-only
Check API key configuration and CLI version and authentication status.
kimi_cache_status read-only
View session cache statistics and performance data.
kimi_cache_invalidate writes
Invalidate cached sessions by directory or clear all.

Use cases

Delegate codebase architecture analysis or cross-file scans.
Ask Kimi to review a code diff or claim using context you provide.
Continue an existing Kimi CLI analysis session from Claude Code.

Supported clients

Claude Code

Listed from the project's documentation, not tested by this site.

Overview

This stdio MCP server lets Claude Code delegate large codebase analysis tasks to Kimi Code. It has direct API and local CLI backends: analysis and session continuation use the CLI, while general questions and verification can use the API. The README describes k3 as the default model and kimi-for-coding as K2.8 Preview. Its token-savings figures are illustrative estimates for Claude-side tokens only; Kimi Code subscription costs are separate.

Similar servers

Source revision 9e827890c24a Data synced 2026-12-05 Read the FMRS scoring method Markdown

Maintainer badge: embed FMRS score

Paste this Markdown into your repository README to display a live score badge:

README.md
[![FollowMCP](https://followmcp.com/badges/kimi-code-mcp.svg)](https://followmcp.com/en/servers/kimi-code-mcp)