Local Code Indexing for Cursor

by luotocompany

35 stars
373 downloads
Not rated
GitHub

About

A Python-based server that locally indexes codebases using ChromaDB to provide semantic search for tools like Cursor.

Details

Author
luotocompany
GitHub stars
35
Downloads
373
Categories
Developer Tools, Other, Knowledge Base
Tags
#vector-search

- Fully local code indexing using ChromaDB
- Semantic code search via MCP for Cursor
- Configurable project root and folders to index
- Docker-based deployment for easy setup
- SSE transport on port 8978

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Local Code Indexing for Cursor
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Clone the repository, create a .env file with PROJECTS_ROOT and FOLDERS_TO_INDEX, then start the server with docker-compose up -d. Configure Cursor by adding the server URL http://localhost:8978/sse to ~/.cursor/mcp.json. Optionally create a .cursorrules file to prompt the Cursor Agent to use the @search_code tool.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "local code indexing for cursor": {
            "workspace-code-search": {
                "type": "http",
                "url": "http://localhost:8978/sse"
            }
        }
    }
}

McpServers

{
    "workspace-code-search": {
        "type": "http",
        "url": "http://localhost:8978/sse"
    }
}

A Python-based server that locally indexes codebases using ChromaDB to provide semantic search for tools like Cursor.

An experimental Python-based server thatlocallyindexes codebases using ChromaDB and provides a semantic search tool via an MCP (Model Context Protocol) server for tools like Cursor.

git clone <repository-url> cd cursor-local-indexing

Create a.envfile by copying.env.example:

PROJECTS_ROOT=~/your/projects/root # Path to your projects directory FOLDERS_TO_INDEX=project1,project2 # Comma-separated list of folders to index
PROJECTS_ROOT=~/projects FOLDERS_TO_INDEX=project1,project2

Configure Cursor to use the local search server: Create or edit~/.cursor/mcp.json:

{ "mcpServers": { "workspace-code-search": { "url": "http://localhost:8978/sse" } } }

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.cursorrulesfile and add the following:

<instructions> For any request, use the @search_code tool to check what the code does. Prefer that first before resorting to command line grepping etc. </instructions>

- Start using the Cursor Agent mode and see it doing local vector searches!

This is a web browser that enables your coding agent, such as Claude Code, to visit websites on your behalf and assist you in identifying bugs or creating UI test cases.

A knowledge management tool for code repositories using vector embeddings, powered by a local Ollama service.

An advanced code analysis and editing server with semantic search capabilities using vector embeddings.

A framework for bias-aware code retrieval using semantic-augmented reranking and localization.

Fast, accurate, local code search for agents. Indexes any local path or GitHub repo on demand in ~250ms and answers queries in ~1.5ms. Works on CPU, no API keys or external services.

A platform-agnostic code analysis library with semantic search capabilities and MCP server support.

MCP server that ingests project docs once and lets Claude search by meaning instead of reading everything — saving tokens on large codebases

A server for CodeFuse-CGM, a graph-integrated large language model designed for repository-level software engineering tasks.

Easily provide codebase context to Large Language Models (LLMs).

An intelligent codebase search engine that transforms local codebases into a natural language queryable knowledge base.

A local MCP server for AI coding agents. AST-aware indexing, semantic search, and automatic compression. Your agent stops re-reading your entire codebase every session.

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.