Skip to main content
Glama

Workspace Code Search MCP Server

by LuotoCompany

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:
    git clone <repository-url> cd cursor-local-indexing
  2. Create a .env file by copying .env.example:
    cp .env.example .env
  3. Configure your .env file:
    PROJECTS_ROOT=~/your/projects/root # Path to your projects directory FOLDERS_TO_INDEX=project1,project2 # Comma-separated list of folders to index
    Example:
    PROJECTS_ROOT=~/projects FOLDERS_TO_INDEX=project1,project2
  4. Start the indexing server:
    docker-compose up -d
  5. Configure Cursor to use the local search server: Create or edit ~/.cursor/mcp.json:
    { "mcpServers": { "workspace-code-search": { "url": "http://localhost:8978/sse" } } }
  6. 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:

<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>
  1. Start using the Cursor Agent mode and see it doing local vector searches!
-
security - not tested
-
license - not tested
-
quality - not tested

local-only server

The server can only run on the client's local machine because it depends on local resources.

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.

  1. Setup

    Related MCP Servers

    • -
      security
      A
      license
      -
      quality
      Facilitates integration with the Cursor code editor by enabling real-time code indexing, analysis, and bi-directional communication with Claude, supporting concurrent sessions and automatic reconnection.
      Last updated -
      2
      21
      31
      TypeScript
      MIT License
    • -
      security
      A
      license
      -
      quality
      A 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 -
      157
      Python
      Apache 2.0
    • -
      security
      A
      license
      -
      quality
      A Python server that enables AI assistants to perform hybrid search queries against Apache Solr indexes through the Model Context Protocol, combining keyword precision with vector-based semantic understanding.
      Last updated -
      1
      Python
      MIT License
      • Linux
      • Apple
    • -
      security
      F
      license
      -
      quality
      A Managed Context Provider server that crawls and indexes Zerops documentation, making it available as a searchable context source for Cursor IDE.
      Last updated -
      TypeScript

    View all related MCP servers

    MCP directory API

    We provide all the information about MCP servers via our MCP API.

    curl -X GET 'https://glama.ai/api/mcp/v1/servers/LuotoCompany/cursor-local-indexing'

    If you have feedback or need assistance with the MCP directory API, please join our Discord server