Skip to main content
Glama

kimi-code-mcp

npm version CI License: MIT

MCP server wrapping Kimi Code CLI (kimi-k2.5) — 14 tools for filesystem, shell, web, and agent operations.

Prerequisites

  • Node.js >= 18

  • Kimi CLI installed and authenticated

Related MCP server: emcp

Usage with Claude Desktop

Add to your Claude Desktop configuration:

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

Usage with VS Code

Install the Kimi Code MCP server in VS Code:

Or add to .vscode/mcp.json:

{
  "servers": {
    "kimi": {
      "command": "npx",
      "args": ["-y", "kimi-code-mcp@latest"]
    }
  }
}

Tools

Tool

Description

kimi_read_file

Read a text file (up to 1000 lines)

kimi_read_media

Analyze images and videos

kimi_write_file

Create or overwrite a file

kimi_edit_file

Find-and-replace edit in a file

kimi_glob

Find files matching a glob pattern

kimi_grep

Search for regex patterns in files

kimi_shell

Execute shell commands

kimi_web_search

Search the web (up to 20 results)

kimi_fetch_url

Fetch and extract webpage content

kimi_agent

Autonomous agent for complex tasks

kimi_think

Extended reasoning and analysis

kimi_review

Code review (bugs, security, perf, style)

kimi_research

Research with 256K context window

kimi_test

Generate or fix tests with edge cases

Environment Variables

Variable

Description

Default

KIMI_CLI_PATH

Absolute path to kimi binary

kimi (from PATH)

MCP_KIMI_DEBUG

Enable debug logging to stderr

unset

Development

git clone https://github.com/userfrm/kimi-code-mcp.git
cd kimi-code-mcp
npm install
npm run build
npm test

License

MIT

Available Tools

14 tools
kimi_agentC

Full autonomous agent for complex multi-step tasks.

Inputs: prompt (required), timeout, workFolder.

kimi_edit_fileA

Edit a file by replacing an exact string with new content.

Inputs: path (required), new_string (required), old_string (required), workFolder.

kimi_fetch_urlB

Fetch and extract text content from a webpage.

Inputs: url (required), prompt.

kimi_globA

Find files matching a glob pattern.

Inputs: pattern (required), path, workFolder.

kimi_grepB

Search for regex patterns in files using ripgrep.

Inputs: pattern (required), path, include, workFolder.

kimi_read_fileA

Read a text file. Returns file content up to 1000 lines.

Inputs: path (required), limit, offset, workFolder.

kimi_read_mediaB

Analyze images and videos using multimodal capabilities.

Inputs: path (required), prompt, workFolder.

kimi_researchD

Research and analysis with 256K context window.

Inputs: question (required), context, workFolder.

kimi_reviewB

Code review analyzing bugs, security, performance, and style.

Inputs: code_or_path (required), focus, workFolder.

kimi_shellB

Execute shell commands and return output.

Inputs: command (required), timeout, workFolder.

kimi_testC

Generate or fix comprehensive tests with edge cases.

Inputs: target (required), workFolder, instructions.

kimi_thinkA

Extended reasoning and analysis without taking actions.

Inputs: problem (required), context.

kimi_write_fileA

Create or overwrite a file with specified content.

Inputs: path (required), content (required), workFolder.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 14 tools

    Disambiguation4/5

    Most tools have clearly distinct purposes: file operations (write/read/edit), search (glob/grep), web (search/fetch), and media analysis are unambiguous. Some potential overlap exists between agent, think, review, and research, but their descriptions differentiate them sufficiently for agent selection.

    Naming Consistency4/5

    All tools share the consistent 'kimi_' prefix, which provides strong brand consistency. However, the suffix style varies: some are verb_noun (write_file, read_media), while others are single verbs or nouns (glob, shell, think, review). This is a minor deviation from a strict verb_noun pattern but remains predictable.

    Tool Count5/5

    With 14 tools, the server is well within the ideal 3-15 range. Each tool covers a distinct capability area for a coding assistant, and none feel redundant or superfluous. The count feels appropriately scoped for the server's purpose.

    Completeness4/5

    The tool surface covers core coding needs: file manipulation, search, shell execution, web access, and specialized tasks like review, test, and research. Minor gaps exist (e.g., no explicit delete or rename file tool), but these can be handled by the agent or shell tools, so agents can work around them.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      C
      maintenance
      MCP server that turns Kimi K2.6 Turbo into an agentic coding assistant with tools for file operations, shell commands, and code search.
      4
      29 PyPI
      2
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      MCP server providing filesystem operations, shell execution, and web search capabilities.
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      MCP server that provides file operations and Moonshot API-powered tools (reasoning, code review, testing, research, web search, agent) for Kimi K2.5, requiring only a Moonshot API key.
      199 npm
      1
      MIT