Workspace Code Search MCP Server
Indexación de código local para el cursor
Un servidor experimental basado en Python que indexa localmente bases de código utilizando ChromaDB y proporciona una herramienta de búsqueda semántica a través de un servidor MCP (Protocolo de contexto de modelo) para herramientas como Cursor.
Configuración
Clonar y entrar al repositorio:
git clone <repository-url> cd cursor-local-indexingCree un archivo
.envcopiando.env.example:cp .env.example .envConfigure su archivo
.env:PROJECTS_ROOT=~/your/projects/root # Path to your projects directory FOLDERS_TO_INDEX=project1,project2 # Comma-separated list of folders to indexEjemplo:
PROJECTS_ROOT=~/projects FOLDERS_TO_INDEX=project1,project2Iniciar el servidor de indexación:
docker-compose up -dConfigurar Cursor para usar el servidor de búsqueda local: Cree o edite
~/.cursor/mcp.json:{ "mcpServers": { "workspace-code-search": { "url": "http://localhost:8978/sse" } } }Reinicie Cursor IDE para aplicar los cambios.
El servidor comenzará a indexar los proyectos especificados y podrá utilizar la búsqueda de código semántico dentro de Cursor cuando esos proyectos estén activos.
Abra un proyecto que haya configurado como indexado.
Cree un archivo .cursorrules y agregue lo siguiente:
<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>¡Comienza a utilizar el modo Agente de Cursor y observa cómo realiza búsquedas vectoriales locales!
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Code intelligence for coding agents: semantic, AST, graph, and full-text search. 279+ languages.
Versioned documentation registry and semantic search for AI tools and coding assistants.
Shared memory for coding agents. Stop re-explaining your codebase every session.
A search engine that learns from your grades. Store text, records, images or embeddings.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA 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.4-
- FlicenseNot gradedqualityCmaintenanceHTTP-based server that provides semantic code search capabilities to IDEs through the Model Context Protocol, allowing efficient codebase exploration without repeated indexing.121-
- AlicenseNot gradedqualityDmaintenanceA local code indexing and search library that enables AI agents to perform semantic and keyword searches across codebases using tree-sitter and SQLite. It provides tools for indexing projects and finding precise code definitions without requiring external APIs, Docker, or server infrastructure.1,841 npm350MIT
- AlicenseBqualityBmaintenanceSemantic search server for code and documentation using Qdrant vector database. Supports multi-language indexing, live updates, and natural language queries.141Apache 2.0