Skip to content

codetree-claude

MCP server & CLI: codebase index + cache for Claude Code, Cursor, OpenAI Codex, Google Antigravity/Gemini. Model Context Protocol tools (codetree_read, codetree_search, …), hooks on Claude, rules on other IDEs. Token savings, SQLite index, symbol search,

48
Weekly Downloads
build.protocol_tooling.mcp#claude#claude-code#claude-code-cache#anthropic#anthropic-claude#mcp#mcp-server#mcp-tools#model-context-protocol#model-context

Install codetree-claude in your MCP client

codetree-claude is a Model Context Protocol server. Add it to your MCP client config once, restart, and the server's tools become available to your AI assistant. The same JSON snippet below works across all four major clients — only the config file path differs.

  1. Locate your client's MCP config file.
    • Cursor: ~/.cursor/mcp.json
    • Claude Desktop (macOS): ~/Library/Application Support/Claude/claude_desktop_config.json
    • Claude Desktop (Windows): %APPDATA%\Claude\claude_desktop_config.json
    • VS Code: Settings → Extensions → MCP
    • Windsurf: Settings → MCP Servers
  2. Add codetree-claude to the mcpServers map — paste the snippet below into your config file. If you already have other MCP servers, merge the entry into the existing mcpServers object.
  3. Restart your client so it picks up the new server.
  4. Verify — ask the assistant to list available tools; codetree-claude's tools should appear.
{
  "mcpServers": {
    "codetree-claude": {
      "command": "npx",
      "args": [
        "-y",
        "codetree-claude"
      ]
    }
  }
}

Install codetree-claude in Cursor

Open ~/.cursor/mcp.json in your editor, paste the snippet above into mcpServers, save, and restart Cursor. codetree-claude will show up in the assistant's tool list on next launch.

Install codetree-claude in Claude Desktop (macOS)

Open ~/Library/Application Support/Claude/claude_desktop_config.json in your editor, paste the snippet above into mcpServers, save, and restart Claude Desktop (macOS). codetree-claude will show up in the assistant's tool list on next launch.

Install codetree-claude in Claude Desktop (Windows)

Open %APPDATA%\Claude\claude_desktop_config.json in your editor, paste the snippet above into mcpServers, save, and restart Claude Desktop (Windows). codetree-claude will show up in the assistant's tool list on next launch.

Install codetree-claude in VS Code

Open Settings → Extensions → MCP in your editor, paste the snippet above into mcpServers, save, and restart VS Code. codetree-claude will show up in the assistant's tool list on next launch.

npm package: codetree-claude

Transport

codetree-claude supports the following MCP transports. Most AI clients use stdio by default for locally-installed servers.

stdio

From the codetree-claude README

# CodeTree > **Persistent codebase index + Model Context Protocol (MCP) server for AI coding assistants.** > Cuts redundant **Read / Grep / Glob** token usage by routing AI tool calls through a **cached SQLite index** with **symbol-aware** APIs. [![npm](https://img.shields.io/badge/npm-codetree--claude-cb3837?logo=npm)](https://www.npmjs.com/package/codetree-claude) [![VS Code](https://img.shields.io/badge/VS%20Code-Marketplace-007ACC?logo=visualstudiocode)](https://marketplace.visualstudio.com/) [![License](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE) [![Node](https://img.shields.io/badge/node-%3E%3D20-339933?logo=node.js)](https://nodejs.org/) CodeTree works with **Anthropic Claude Code**, **Cursor**, **OpenAI Codex**, **Google Antigravity / Gemini**, and any **MCP-co

Other Model Context Protocol servers in the same space as codetree-claude. Each one adds different capabilities to your AI assistant — pick based on the data sources or workflows you need.

Browse the full MCP server directory or use Stork's one-line install to let your agent pick the right server automatically.