# CocoIndex Code MCP server

> Search a local codebase by meaning, using AST-based chunks and incremental re-indexing.

- Listing: https://mcp.tc/i/cocoindex-code
- Connect: this is a local (stdio) server; install it on your machine (see Install). The listing link is a page, not an MCP endpoint.
- Type: local (stdio)
- Auth: no API key needed
- Category: [Developer Tools](https://mcp.tc/c/developer-tools)
- Vendor: CocoIndex
- Homepage: <https://cocoindex.io/>
- Repository: <https://github.com/cocoindex-io/cocoindex-code>
- Package: pypi `cocoindex-code`

## About

CocoIndex Code indexes a local repository into AST-based chunks and lets a coding agent run semantic search over it. The index updates incrementally as files change, so results stay current while you work. It is built on the CocoIndex Rust data transformation engine and also ships a CLI (ccc) and an agent skill.

It runs locally over stdio from the PyPI package cocoindex-code, started with uvx. No sign-in is needed. The full install uses local sentence-transformers embeddings with no API key, while the slim install needs a cloud embedding provider and its API key. Set COCOINDEX\_CODE\_ROOT\_PATH if the client does not start the server inside the codebase.

## What it can do

- Semantic search over a local repository
- AST-based code chunking
- Incremental re-indexing as files change
- Optional index refresh on each search
- Local embeddings or cloud providers via LiteLLM

## Example prompts

- "Find how user sessions are managed in this codebase"
- "Search the repo for where database connections are created"
- "Show me code that handles retry logic for API calls"
- "Locate the functions responsible for parsing config files"

## Install

### Any client

We don’t have a verified install command for this server yet. Its own instructions are the place to start.

Package: `cocoindex-code` on PYPI.

[Open the setup instructions](<https://github.com/cocoindex-io/cocoindex-code>) (opens github.com)

## Recent changes

- 2026-11-06 02:20 UTC: Tracking started: version 0.2.43. Source: automatic check.

More on the History tab, with descriptions before and after for the newest entries: https://mcp.tc/i/cocoindex-code#history (Atom feed: https://mcp.tc/i/cocoindex-code/history.xml). It records what mcp.tc's anonymous checks saw, every 3 hours where the tool list can be read without sign-in; it is not a security review.

## Details

- Server version: 0.2.43
- Last checked: 2026-11-06
- Listed: 2026-11-06
- Updated: 2026-11-06

---
Source: https://mcp.tc/i/cocoindex-code (mcp.tc is an independent directory, not affiliated with this server's publisher). Corrections: https://mcp.tc/report
