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:Copy
- Create a
.env
file by copying.env.example
:Copy - Configure your
.env
file:Example:CopyCopy - Start the indexing server:Copy
- Configure Cursor to use the local search server:
Create or edit
~/.cursor/mcp.json
:Copy - 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:
Copy
- Start using the Cursor Agent mode and see it doing local vector searches!
This server cannot be installed
A Python-based local indexing server that creates semantic search capabilities for codebases using ChromaDB, allowing Cursor IDE to perform vector searches on your code without sending data to external services.