# Kimi Code MCP Server

> Let Kimi Code help Claude Code analyze codebases.

- **URL**: https://followmcp.com/en/servers/kimi-code-mcp
- **Category**: Dev Tools
- **Origin**: Community
- **Stars**: 63
- **FMRS Score**: 37/100 (Grade D)
- **Source**: https://github.com/howardpen9/kimi-code-mcp
- **Transports**: stdio (local process)
- **Runtimes**: Node.js 18+
- **Auth**: API key / credential required

## 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.

## 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
- 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.

## Client config (JSON)
```json
{"mcpServers":{"kimi-code":{"command":"npx","args":["-y","kimi-mcp-server"]}}}
```

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