Atlas / MCP servers / howardpen9 / Kimi Code

Kimi CodeSAFE

mcp/howardpen9/kimi-code

MCP server for Claude Code × Kimi K2.5 (256K context) — delegate bulk codebase analysis to Kimi, save 90% on token costs. Session caching, parallel agents, TypeScript.

Verdict
SAFE
Grade
B
Trust score
89 /100
Exposed tools
8 6r · 1w · 1d
Transport
stdio
License
MIT
Stars
61
01

Overview

From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.

English | 中文說明

Illustrative estimates. The ~90% is Claude-side token reduction on analysis-heavy tasks — not total cost: Kimi's own subscription still applies. The monorepo row mirrors the example below; the PDF/commits rows are rough sketches.

Delegate codebase analysis from Claude to Kimi Code (`kimi-for-coding`, 256K) — cut Claude-side token cost ~90%.

*Illustrative estimates — savings are on Claude tokens only and depend on the task; Kimi's subscription cost is separate. See Token Economics.

Quick start

# 1. Install Kimi CLI and log in
curl -L code.kimi.com/install.sh | bash
kimi login

# 2. Install via npm
npm install -g kimi-mcp-server

Add to .mcp.json (project-level or ~/.claude/mcp.json for global):

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

Run /mcp in Claude Code to verify — you should see kimi-code with 8 tools.

[!TIP] You don't need the CLI for the common case. kimi_query and kimi_verify call the Kimi Code API directly — no Python CLI install or kimi login required. Just provide an API key via `$KIMICODE_
Read from source at commit 9e649ff195faOBSERVED · 2026-10-07
02

Connect

Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.

claude-code (npm)
claude mcp add kimi-mcp-server -- npx -y [email protected]
03

Exposed tools (8)

6 read · 1 write · 1 destructive. Blast radius: 1 tool can delete or overwrite — an agent that can be talked into calling a tool can be talked into calling this one.

ToolRiskDescription
kimi_analyzeread
kimi_cache_invalidatedestructiveManually invalidate session cache entries. Use when you want to force fresh analysis or if you suspect cached sessions are stale.
kimi_cache_statusreadView session cache statistics and status. Shows cache hits/misses, active sessions, and performance metrics. Use this to monitor cache effectiveness and troubleshoot issues.
kimi_list_sessionsreadList existing Kimi Code sessions with titles, working directories, and timestamps. Use to find session IDs for kimi_resume.
kimi_queryreadAsk Kimi Code a question without codebase context. Default model: ${DEFAULT_MODEL} (K3). Use for general programming questions, algorithm explanations, or getting a second opinion.
kimi_resumereadResume an existing Kimi Code session with a new prompt. The session retains all previous context (up to 256K tokens). Use kimi_list_sessions to find session IDs first. Ideal for drilling deeper after an initial kimi_analyze scan.
kimi_statuswriteCheck Kimi CLI/API status, default model (K3 detection), and auth. Set probe_api=true for a live Coding API model echo check.
kimi_verifyread
04

Trust audit

SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.

LayerWhat it checksResult
L0Provenance & inventoryPASS
L1Static analysis of the codePASS
L2Instruction surface (what it tells the agent)PASS
L3Class-specific surfaceWARN
L4Behavioural (sandbox)SKIPPED

What the source does

Filesystem
declared (1 observation(s))
Network
declared (1 observation(s))
Shell
declared (3 observation(s))
Dependencies
not all pinned
Secrets in source
none-found

Findings (11)

MEDIUMFilesystem / path · mcp.destructive_tools · CWE-22, CWE-59
kimi_cache_invalidate
Why it matters. 1 tool(s) can delete or overwrite
Fix. prefer a read-only mode or scoped tokens; the page states the blast radius
LOWInsecure crypto · crypto.weak_hash · CWE-327, CWE-338
src/cache-manager.ts:321
const hash = createHash('md5')
LOWInsecure crypto · crypto.weak_hash · CWE-327, CWE-338
src/session-reader.test.ts:27
return crypto.createHash('md5').update(input).digest('hex')
LOWInsecure crypto · crypto.weak_hash · CWE-327, CWE-338
src/session-reader.ts:39
const hash = crypto.createHash('md5').update(wd.path).digest('hex')
LOWInsecure crypto · crypto.weak_hash · CWE-327, CWE-338
src/session-reader.ts:54
targetHash = crypto.createHash('md5').update(opts.workDir).digest('hex')
LOWSupply chain · supply.unpinned · CWE-829, CWE-1357
package.json
@modelcontextprotocol/sdk, zod, @types/node, tsx, typescript, vitest
Why it matters. 6 dependency range(s) float
Fix. pin exact versions or ship a lockfile
LOWPrompt injection · prompt.persistence · CWE-94, CWE-1427
README.md:214
# Add to ~/.zshrc (macOS) or ~/.bashrc (Linux)
Why it matters. instructs the agent to persist itself in the user's environment
LOWSupply chain · prompt.pipe_to_shell · CWE-829, CWE-1357
README.md:29
curl -L code.kimi.com/install.sh | bash
LOWSupply chain · prompt.pipe_to_shell · CWE-829, CWE-1357
README.md:122
- **Install**: `curl -L code.kimi.com/install.sh | bash`
LOWSupply chain · prompt.pipe_to_shell · CWE-829, CWE-1357
README_zh.md:34
- **安裝**:`curl -L code.kimi.com/install.sh | bash`
LOWSupply chain · prompt.pipe_to_shell · CWE-829, CWE-1357
README_zh.md:43
curl -L code.kimi.com/install.sh | bash

Gates applied: no_behavioural_pass.

Audited 2026-10-07 · audit v0.4.1 · source sha 9e649ff195fafull audit observations/trust-audit/mcp-server/howardpen9__kimi-code.json · Report an issue / request a re-scan
05

Audit history

Every audit this server has had. A grade with a past is a grade somebody is still checking.

DateSourceVerdictGradeScoreChange
2026-10-079e649ff195faSAFEB89first audit
06

Questions

What is the Kimi Code MCP server?

MCP server for Claude Code × Kimi K2.5 (256K context) — delegate bulk codebase analysis to Kimi, save 90% on token costs. Session caching, parallel agents, TypeScript.

What tools does Kimi Code expose?

8 in total: 6 read-only, 1 that write, and 1 that can delete or overwrite (kimi_cache_invalidate). Every one is listed on this page with its risk.

Is Kimi Code safe to connect to an agent?

The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B. Separately from the audit: 1 of its tools can destroy data, so scope the token you give it to what you actually need.

What credentials does Kimi Code need?

It reads KIMICODE_API_KEY and MY_KEY from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.

How does Kimi Code run?

It speaks stdio, so it runs as a local process your client starts. It is published on npm as kimi-mcp-server at 0.5.0.

How current is this page?

The grade is for one exact copy of the source (9e649ff195fa), read on 2026-10-07. The repository is watched and re-audited when it changes.

Advertisement