Claude Context — Semantic Code Search MCP for AI Coding Agents

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

Stars
★ 13k
Last updated
9d ago
FARS reviewed
Nov 08, 2026
License
MIT
Primary language
TypeScript

At a glance

How it runs
MCP serverCLIIDE extension
Works with
Portable with changesCodex · Claude Code · OpenAI API
Cost
Free software; you pay for model usage
Setup effort
Medium · a few setup steps
You'll need
Node.js >= 20OpenAI API keyZilliz Cloud or Milvus vector databaseShell / CLINetwork accessMCP Server
Typical use
A developer working on a large or unfamiliar codebase wants to quickly locate functions implementing specific behavior without manual grep.
Not a fit if
  • Users wanting zero-config setup without managing a vector database and API keys
  • Projects outside Node.js 20+ or unwilling to depend on an external vector database
Maintenance
Commits in the last 30 dayslast commit 2026-11-24+3.6 ★/day over 7 days

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.

Key setup facts

Pulled from the install and usage notes below. The project README has the current values.

Environment variables
OPENAI_API_KEY MILVUS_TOKEN
Runtime
Node.js 20+

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);

Safety boundaries, hardening & integrations

Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.

Declared capability surface (blast radius)

Local shell command execution

Can run terminal commands; pair with approval gates or container/OS sandboxing.

Outbound network access

Makes outbound requests; verify telemetry settings and model data routing on private repos.

External MCP tool bridge

Inherits capabilities of connected MCP servers; audit third-party servers before enabling.

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 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.

Key facts side by side with the most closely related agents.

Agent Source review Form / cost Stars Updated Language Full support on
Claude Context — Semantic Code Search MCP for AI Coding Agents This agent 59 · Major gaps MCP serverFree + model costs ★ 13k 9d ago TypeScript Codex · Claude Code · OpenAI API
CocoIndex Code 66 · Some gaps CLIFree + model costs ★ 3k 7d ago Python Codex · Claude Code · OpenAI API
Compartment 73 · Some gaps CLIFree ★ 470 2d ago Python Codex · Claude Code
AOCI-CODE — a Git-versioned cognition index for coding agents 82 · Good CLIFree + model costs ★ 3.2k today Go Codex · Claude Code

How does FollowAgents rate this agent?

FollowAgents source review · FARS-2.1
Major gaps
59/ 100 5-point scale 3.0 / 5
Trust 11/29
Reliability 6/14
Adaptability 14/18
Convention 14/18
Effectiveness 9/13
Verifiability 5/8
Why each dimension lost points
Trust11 / 29 · 1.9/5

Tools are scoped to indexing, searching, status lookup, and clearing for an explicit absolute path. The README says code is sent to the selected embedding service and stored in Milvus/Zilliz; the FAQ describes a local Ollama/Milvus option, so data flows are partly disclosed. Deductions: clearing is available but no recovery mechanism is shown; the material does not describe sensitive-file safeguards or transmission and retention controls; default and configured inclusion rules combine, while external effects and privilege boundaries are only lightly explained. The re-index confirmation requirement appears in tool text but there is no general confirmation or rollback mechanism. Dependency security and source verification evidence are limited.

Reliability6 / 14 · 2.1/5

AGENTS.md and CLAUDE.md agree on architecture and error handling, and the README, FAQ, and MCP entry point support the main capabilities. The materials describe a clear error for unindexed searches, status lookup, and troubleshooting steps. Deductions: Node ranges conflict (README says 20+, repository guidance says <24, while CI includes 24), and MCP examples use latest; the supplied material does not establish dependency availability or supply-chain review, and only part of error handling is visible.

Adaptability14 / 18 · 3.9/5

The README covers Claude Code, several MCP clients, VS Code, and library use; the FAQ describes multiple projects and local deployment. Tool descriptions specify indexing and search scenarios, absolute-path requirements, and the unindexed-codebase flow. Deductions: capability boundaries are mainly described at overview level, and workspace discovery and background sync depend on client/configuration details that are not fully specified in the tool guidance.

Convention14 / 18 · 3.9/5

The README, documentation tree, FAQ, troubleshooting guide, and examples provide clear information architecture, multi-client setup instructions, examples, and an explicit MIT license. Deductions: some limitations are documented, such as separate indexes for path aliases and phase-based progress, but there is no systematic limitations list; package metadata shows version 0.1.15 and a release workflow but no changelog; contribution guidance and repository authorship exist, while maintenance commitments and update paths are only partly clear.

Effectiveness9 / 13 · 3.5/5

The product offers hybrid semantic code search, incremental indexing, and clearly named MCP tools for multiple coding workflows; the README claims an evaluation showing about 40% fewer tokens. Deductions: that benefit is a project claim, and the supplied material does not fully explain data/indexing costs or retrieval-quality tradeoffs; evidence about output format and result interpretation across scenarios is limited.

Verifiability5 / 8 · 3.1/5

Core claims can be traced to the README, MCP tool definitions, FAQ, package metadata, and CI/release configuration, with architecture descriptions corroborated by the tool entry point. Deductions: runtime-version ranges conflict across sources, the evaluation is summarized without its method or data in the supplied material, and several performance, support, and automatic-behavior claims lack independent corroboration.

Risks and how to mitigate them
  • Indexing reads project files, sends embedding requests to the configured service, and writes vectors to the configured database. Confirm the target path, exclusion rules, and service data-handling terms before use.
  • The README Node.js requirement differs from repository guidance and the CI matrix; installation examples use @latest, so verify the version used for deployment.
Evidence confidence: Low Reviewed Nov 08, 2026 Reviewed revision 6fc318b4e3ce New commits since this review; the score may not cover them
See the full review method →
Maintain this project? Add the FARS badge to your README

The badge shows the current review score and verdict and links back to this page. It refreshes about once an hour after a re-review.

FARS

[![FARS review](https://followagents.com/badge/claude-context.svg)](https://followagents.com/en/agents/claude-context)
<a href="https://followagents.com/en/agents/claude-context"><img src="https://followagents.com/badge/claude-context.svg" alt="FARS review"></a>

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.
Was this page helpful?
View on GitHub ↗ Install ↓

Host ecosystems

Compare agents like this one

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

Related concepts