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!
This server cannot be installed
local-only server
The server can only run on the client's local machine because it depends on local resources.
Un servidor de indexación local basado en Python que crea capacidades de búsqueda semántica para bases de código utilizando ChromaDB, lo que permite que Cursor IDE realice búsquedas vectoriales en su código sin enviar datos a servicios externos.
Related MCP Servers
- AsecurityAlicenseAqualityA server that provides data retrieval capabilities powered by Chroma embedding database, enabling AI models to create collections over generated data and user inputs, and retrieve that data using vector search, full text search, and metadata filtering.Last updated -13331Apache 2.0
- -securityFlicense-qualityA local server that provides powerful code analysis and search capabilities for software projects, helping AI assistants and development tools understand codebases for tasks like code generation and refactoring.Last updated -3
- -securityFlicense-qualityHTTP-based server that provides semantic code search capabilities to IDEs through the Model Context Protocol, allowing efficient codebase exploration without repeated indexing.Last updated -877
- -securityAlicense-qualityAn intelligent server that provides semantic code search, domain-driven analysis, and advanced code understanding for large codebases using LLMs and vector embeddings.Last updated -5MIT License