Dev & Engineering semantic-code-searchmcp-servervector-databasecode-indexinghybrid-search

Claude Context — Semantic Code Search MCP for AI Coding Agents

Make your entire codebase the context for any coding agent with semantic code search.

FollowAgents review · FARS-2.1
Not recommended
49/ 100 5-point scale 2.5 / 5
1 2 3 4 5 6
1Trust7 / 29 · 1.2/5

Evidence shows: MCP server receives API keys via environment variables, no hardcoded credentials found; but no user confirmation mechanism, limited data flow transparency (only states sending to vector DB and embedding service), sensitive data handling not detailed, dependency security not audited, external effects (e.g., indexing entire codebase) not explicitly warned, rollback mechanism absent, source attribution partially via README and package.json author field. Deductions: lack of user confirmation, data flow details, sensitive data protection, dependency audit, external effect warnings, rollback.

2Reliability8 / 14 · 2.9/5

Evidence shows: README and package.json descriptions consistent, build scripts and CI config present, dependencies declared clearly, but failure messages not detailed in docs. Deduction: insufficient failure message documentation.

3Adaptability12 / 18 · 3.3/5

Evidence shows: README provides config examples for multiple MCP clients, supports multiple embedding providers and vector DBs, file inclusion/exclusion rules customizable, environment requirements clear. Deductions: capability boundaries (e.g., supported languages) listed but not deeply explained, trigger precision (e.g., indexing commands) not detailed.

4Convention10 / 18 · 2.8/5

Evidence shows: README well-structured, install notes detailed, naming consistent, examples and FAQ provided, MIT license clear, but version changelog absent, maintenance responsibility only partially via GitHub repo and author info. Deductions: missing changelog, unclear maintenance responsibility.

5Effectiveness9 / 13 · 3.5/5

Evidence shows: README claims ~40% token reduction, provides usage examples, but no detailed cost-benefit analysis. Deduction: insufficient cost-benefit analysis.

6Verifiability3 / 8 · 1.9/5

Evidence shows: Claims (e.g., token reduction) lack detailed data or methodology, evaluation directory exists but not shown in provided files, facts and inferences not clearly separated. Deductions: claims lack traceability, insufficient cross-validation.

Evidence confidence: Low Reviewed Aug 17, 2026 Reviewed revision 6fc318b4e3ce
Safety controls not found in source: confirmation before acting, rollback or recovery path
Before you use it
  • This tool sends codebase content to external vector database and embedding services, posing potential sensitive code leakage risks; ensure trusted providers and proper access controls.
  • No user confirmation mechanism; tool may automatically index entire codebase; use with caution in sensitive environments.
  • Dependency security not audited; recommend regular vulnerability checks.
Review evidence [1][2][3][4][5]
See the full review method →

What does this agent do, and when should you use it?

Claude Context is an MCP plugin that adds semantic code search to Claude Code and other AI coding assistants, providing deep context from your entire codebase. It indexes code into a vector database and retrieves only relevant snippets, reducing token usage and cost while maintaining retrieval quality. The repository is a monorepo containing the core indexing engine (`@zilliz/claude-context-core`), the MCP server (`@zilliz/claude-context-mcp`), and a VS Code extension. It supports hybrid search (BM25 + dense vectors), incremental indexing via Merkle trees, and AST-based code chunking. Deployment requires an OpenAI embedding API key and a Milvus or Zilliz Cloud vector database. The MCP server follows the standard MCP protocol with stdio transport, integrating with multiple clients such as Claude Code, Codex CLI, Cursor, and more.

Claude Context takes a codebase directory as input, splits files into chunks, generates embeddings using OpenAI models, and stores them in a Milvus/Zilliz Cloud vector database. It exposes MCP tools: index_codebase, search_code, clear_index, and get_indexing_status. On search, it performs hybrid retrieval (BM25 + dense vectors) to return relevant code snippets with file paths, line numbers, and content. Core classes include Context, MilvusVectorDatabase, and OpenAIEmbedding. The MCP server runs via npx @zilliz/claude-context-mcp, and configuration uses environment variables OPENAI_API_KEY, MILVUS_ADDRESS, and MILVUS_TOKEN.

  1. A developer working on a large or unfamiliar codebase wants to quickly locate functions implementing specific behavior without manual grep.
  2. An engineering team wants to reduce token costs when using Claude Code on big repos by loading only relevant code into context.
  3. A team using multiple AI coding assistants (e.g., Cursor, Gemini CLI) needs a standardized MCP-based semantic search across tools.
  4. A developer maintaining a fast-moving codebase needs incremental indexing to keep the semantic index up to date efficiently.
  5. A VS Code user wants to search code using natural language within the IDE and see results with line numbers directly.

What are this agent's strengths and limitations?

Pros
  • Hybrid search (BM25 + dense vectors) yields relevant and context-rich results.
  • Incremental indexing with Merkle trees reduces re-indexing overhead.
  • AST-based code chunking improves understanding and supports many languages.
  • MCP protocol allows integration with many AI coding tools, including Claude Code, Codex, Cursor.
  • Evaluation shows ~40% token reduction with equivalent retrieval quality, saving costs.
Limitations
  • Requires external vector database (Zilliz Cloud or Milvus) and OpenAI API key, not fully local.
  • Setup involves multiple configuration steps and API key management.
  • Potential vendor lock-in with Zilliz Cloud, though Milvus offers an open-source alternative.
  • Node.js-only runtime may limit adoption in non-Node.js environments.

How do you install or deploy this agent?

Prerequisites: Node.js >= 20; obtain an OpenAI API key; set up a Zilliz Cloud instance (or Milvus) and get the public endpoint and API token.

For Claude Code, run:

claude mcp add claude-context \
  -e OPENAI_API_KEY=sk-your-openai-api-key \
  -e MILVUS_ADDRESS=your-zilliz-cloud-public-endpoint \
  -e MILVUS_TOKEN=your-zilliz-cloud-api-key \
  -- npx @zilliz/claude-context-mcp@latest

For other clients (Codex CLI, Gemini CLI, Cursor, etc.), see the README sections with configuration snippets.

How do you use this agent?

  1. Start Claude Code in your project directory (cd your-project && claude).
  2. Type Index this codebase to index.
  3. Check status with Check the indexing status.
  4. Ask questions like Find functions that handle user authentication.

You can also use the core package programmatically in TypeScript:

import { Context, MilvusVectorDatabase, OpenAIEmbedding } from '@zilliz/claude-context-core';
const embedding = new OpenAIEmbedding({ apiKey: 'your-openai-api-key', model: 'text-embedding-3-small' });
const vectorDatabase = new MilvusVectorDatabase({ address: 'your-zilliz-cloud-public-endpoint', token: 'your-zilliz-cloud-api-key' });
const context = new Context({ embedding, vectorDatabase });
const stats = await context.indexCodebase('./your-project', (progress) => {});
const results = await context.semanticSearch('./your-project', 'vector database operations', 5);

How does this agent compare with similar options?

Claude Context is compared with other coding tools like Serena, Context7, or DeepWiki in the FAQ; unlike these, it emphasizes hybrid search and incremental indexing for codebase context.

FAQ

Can I use a fully local deployment setup?
Yes, you can use Milvus locally as the vector database and local embedding models via Ollama, but you need to configure the environment accordingly.
Does it support multiple projects / codebases?
Yes, it supports indexing multiple projects; each can be indexed and searched independently.
What files does Claude Context decide to embed?
It uses AST-based analysis and configurable file inclusion/exclusion rules to select code files; details are in the file inclusion rules documentation.
Can I avoid using Zilliz Cloud?
Yes, you can use Milvus, an open-source vector database, by specifying its address and token in the environment variables.

Compare agents like this one

The same FARS review applied across the shortlist this agent qualifies for.

Related agents