local code search.com
local code search.com logo

Local Code Search

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

  1. Clone and enter the repository:
  1. Create a .env file by copying .env.example:
  1. Configure your .env file:Example:
  1. Start the indexing server:
  1. Configure Cursor to use the local search server: Create or edit ~/.cursor/mcp.json:
  1. 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.
  1. Open a project that you configured as indexed.
Create a .cursorrules file and add the following:
  1. 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

  1. Clone and enter the repository:
  1. Create a .env file by copying .env.example:
  1. Configure your .env file:Example:
  1. Start the indexing server:
  1. Configure Cursor to use the local search server: Create or edit ~/.cursor/mcp.json:
  1. 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.
  1. Open a project that you configured as indexed.
Create a .cursorrules file and add the following:
  1. Start using the Cursor Agent mode and see it doing local vector searches!