CocoIndex Code MCP
A lightweight embedded code search engine CLI that performs AST-based semantic search over local repositories. It supports incremental re-indexing and allows coding agents like Claude, Codex, and Cursor to connect via MCP or Skills for efficient codebase context retrieval.
Package and access
Local package with source-attributed installation metadata. Koskamo does not execute packages during review.
What you can do with it
- Perform semantic code search over a local repository
- Connect coding agents like Claude or Cursor via MCP
- Index codebase with AST-based chunks
- Enable incremental re-indexing for updated code
Source and maintenance
- Maintenance checked
Packages and installation
Source-provided package data. Koskamo has not executed or live-probed this package.
cocoindex-code 0.2.43
{
"version": "0.2.43",
"transport": "stdio",
"identifier": "cocoindex-code",
"runtimeHint": "uvx",
"registryType": "pypi",
"registryBaseUrl": "https://pypi.org",
"packageArguments": [
{
"type": "positional",
"value": "serve"
}
],
"runtimeArguments": [
{
"name": "--with",
"type": "named",
"value": "cocoindex-code[full]",
"description": "Install the full extra, which adds sentence-transformers for local embeddings. The default embedding model needs it."
}
],
"environmentVariables": [
{
"name": "COCOINDEX_CODE_ROOT_PATH",
"format": "filepath",
"description": "Root directory of the codebase to index. Set it when the client does not start the server inside the codebase. If unset, the server uses its working directory."
}
]
}Tools
Reported by the attributed source; not independently observed by Koskamo.
Connect from your client
Each snippet configures the same source-provided package; replace placeholders before use.
Cursor
{
"mcpServers": {
"cocoindex-code-mcp": {
"command": "uvx",
"args": [
"cocoindex-code==0.2.43",
"serve"
],
"env": {
"COCOINDEX_CODE_ROOT_PATH": "<YOUR_COCOINDEX_CODE_ROOT_PATH>"
}
}
}
}Cline
{
"mcpServers": {
"cocoindex-code-mcp": {
"command": "uvx",
"args": [
"cocoindex-code==0.2.43",
"serve"
],
"env": {
"COCOINDEX_CODE_ROOT_PATH": "<YOUR_COCOINDEX_CODE_ROOT_PATH>"
}
}
}
}VS Code
{
"servers": {
"cocoindex-code-mcp": {
"type": "stdio",
"command": "uvx",
"args": [
"cocoindex-code==0.2.43",
"serve"
],
"env": {
"COCOINDEX_CODE_ROOT_PATH": "<YOUR_COCOINDEX_CODE_ROOT_PATH>"
}
}
}
}Claude Desktop
{
"mcpServers": {
"cocoindex-code-mcp": {
"command": "uvx",
"args": [
"cocoindex-code==0.2.43",
"serve"
],
"env": {
"COCOINDEX_CODE_ROOT_PATH": "<YOUR_COCOINDEX_CODE_ROOT_PATH>"
}
}
}
}Let your agent find its tools
Find servers like CocoIndex Code MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.