luotocompany_cursor_local_indexing

luotocompany_cursor_local_indexing

by LuotoCompany
A Python-based MCP server for locally indexing codebases using ChromaDB, enabling semantic search in Cursor.

Local Code Indexing for Cursor with ChromaDB

Overview

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. This implementation allows developers to perform semantic code searches within their local projects directly from the Cursor IDE.

Setup

Prerequisites

  1. Clone the Repository:
    shell git clone <repository-url> cd cursor-local-indexing

  2. Create .env File:
    shell cp .env.example .env

  3. Configure .env File:
    dotenv PROJECTS_ROOT=~/your/projects/root # Path to your projects directory FOLDERS_TO_INDEX=project1,project2 # Comma-separated list of folders to index

Example:
dotenv PROJECTS_ROOT=~/projects FOLDERS_TO_INDEX=project1,project2

  1. Start the Indexing Server:
    shell docker-compose up -d

  2. Configure Cursor:
    Create or edit ~/.cursor/mcp.json:
    json { "mcpServers": { "workspace-code-search": { "url": "http://localhost:8978/sse" } } }

  3. Restart Cursor IDE to apply the changes.

  4. Open a Project:
    Open a project that you configured as indexed.

  5. Create .cursorrules File:
    Add the following instructions:
    plaintext For any request, use the @search_code tool to check what the code does. Prefer that first before resorting to command line grepping etc.

  6. Start Using Cursor Agent Mode:
    Begin using the Cursor Agent mode and see it performing local vector searches!

About

This project provides ChromaDB-powered local indexing support for Cursor, exposed as an MCP server. It enables developers to perform semantic searches within their codebases directly from the Cursor IDE, enhancing productivity and code navigation.

Resources

Statistics

  • Stars: 6
  • Watchers: 4
  • Forks: 1

Languages

  • Python: 97.8%
  • Dockerfile: 2.2%

Features & Capabilities

Categories
mcp_server model_context_protocol python chromadb docker semantic_search code_indexing cursor

Implementation Details

Stats

0 Views
6 GitHub Stars

Repository Info

LuotoCompany Organization

Similar MCP Servers

continuedev_continue by continuedev
25049
21423
9300