Locally indexes codebases using ChromaDB to enable semantic code search without sending code to external services, featu...
Created byApr 23, 2025
Local Code Indexing for Cursor
An experimental Python-based server that locally indexes codebases using ChromaDB and provides a semantic search tool via an MCP (Model Context Protocol) server for tools like Cursor.
Setup
Clone and enter the repository:
Create a .env file by copying .env.example:
Configure your .env file:Example:
Start the indexing server:
Configure Cursor to use the local search server:
Create or edit ~/.cursor/mcp.json:
Restart Cursor IDE to apply the changes.
The server will start indexing your specified projects, and you'll be able to use semantic code search within Cursor when those projects are active.
Open a project that you configured as indexed.
Create a .cursorrules file and add the following:
Start using the Cursor Agent mode and see it doing local vector searches!
Local Code Indexing for Cursor
An experimental Python-based server that locally indexes codebases using ChromaDB and provides a semantic search tool via an MCP (Model Context Protocol) server for tools like Cursor.
Setup
Clone and enter the repository:
Create a .env file by copying .env.example:
Configure your .env file:Example:
Start the indexing server:
Configure Cursor to use the local search server:
Create or edit ~/.cursor/mcp.json:
Restart Cursor IDE to apply the changes.
The server will start indexing your specified projects, and you'll be able to use semantic code search within Cursor when those projects are active.
Open a project that you configured as indexed.
Create a .cursorrules file and add the following:
Start using the Cursor Agent mode and see it doing local vector searches!