An MCP (Model Context Protocol) server for indexing and querying codebases using CocoIndex. Features semantic code search with natural language queries, incremental indexing for fast updates, multi-language support (Python, JavaScript/TypeScript, Rust, Go, Java, C/C++, C#, SQL, Shell), flexible embeddings via local SentenceTransformers or 100+ cloud providers via LiteLLM, and portable SQLite storage with no external database required.
Server Config
{
"mcpServers": {
"cocoindex-code": {
"command": "uvx",
"args": [
"--prerelease=explicit",
"--with",
"cocoindex>=1.0.0a13",
"cocoindex-code@latest"
]
}
}
}