mcp-code-vector--search
Verified Safeby wgawan
Overview
Builds a semantic index of a codebase for natural language search and code context retrieval, often used as a tool for AI coding agents.
Installation
PROJECT_ROOT=$YOUR_PROJECT_PATH ./run-docker.shEnvironment Variables
- PROJECT_ROOT
- PERSIST_DIR
- FORCE_REINDEX
- DEBUG
Security Notes
The server design generally appears robust. It uses standard, reputable libraries (ChromaDB, Sentence Transformers). When run via Docker, it limits file system write access to only the index directory (`/vector-index`). Input validation for `query` and `filter_filepath` in `semantic_search` is handled by ChromaDB's query interface, reducing direct injection risks. No 'eval' or obvious hardcoded secrets are present. The communication for the MCP client interface occurs over standard I/O (`stdio_server`), which reduces the direct network attack surface. The primary risk would be if a malicious client (within a trusted environment) could craft highly inefficient queries leading to excessive resource consumption, but this is generally mitigated by running against your own codebase in a controlled environment.
Similar Servers
chunkhound
Provides local-first codebase intelligence, extracting architecture, patterns, and institutional knowledge for AI assistants.
codegraph-rust
Transforms codebases into a semantically searchable knowledge graph, enabling AI agents to reason about code relationships, architecture, and impact rather than just performing text-based searches.
codeweaver
A code intelligence platform that provides semantically rich, context-aware code search for AI agents, aimed at reducing cognitive load and token costs for coding tasks.
viberag
Local codebase semantic search (RAG) for AI coding assistants via MCP server.