Skip to content
VS Code

Kimi MCP Server for VS Code

io.github.x51xxx/kimi-mcp-server

MCP server bridging AI assistants to Moonshot AI Kimi Code CLI for code analysis and review

client:VS Code transport:stdio runtime:npm

Install Kimi MCP Server in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "kimi-mcp-cwd",
      "description": "KIMI_MCP_CWD",
      "password": true
    },
    {
      "type": "promptString",
      "id": "kimi-session-ttl-ms",
      "description": "KIMI_SESSION_TTL_MS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "kimi-max-sessions",
      "description": "KIMI_MAX_SESSIONS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "moonshot-api-key",
      "description": "MOONSHOT_API_KEY",
      "password": true
    }
  ],
  "servers": {
    "kimi-mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@trishchuk/kimi-mcp-server"
      ],
      "env": {
        "KIMI_MCP_CWD": "${input:kimi-mcp-cwd}",
        "KIMI_SESSION_TTL_MS": "${input:kimi-session-ttl-ms}",
        "KIMI_MAX_SESSIONS": "${input:kimi-max-sessions}",
        "MOONSHOT_API_KEY": "${input:moonshot-api-key}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

Kimi MCP Server in other clients