What is Claude Context?
Claude Context, from Zilliz, the company behind the Milvus vector database, splits a repository into chunks along syntax-tree boundaries, sends them to an embedding model and stores the vectors, with the code itself, in a Milvus collection. A coding agent then searches it through four MCP tools: index_codebase, search_code, get_indexing_status and clear_index. Search mixes BM25 keyword ranking with vector similarity by default, and a Merkle tree of file hashes lets a re-index touch only the files that changed.
It needs two services you supply. Embeddings come from OpenAI (text-embedding-3-small by default), VoyageAI, Gemini or a local Ollama model; vectors go to Zilliz Cloud or a Milvus server you run. The same repo ships a core npm library and a VS Code extension.
The repo was created in June 2025, has about 12,700 stars, is MIT-licensed and is written in TypeScript. Work comes in bursts: no commits from November 2025 to February 2026, 67 from March to June 2026, then nothing between 14 July and 11 November. Version 0.1.16 reached npm on 12 November 2026 and the latest commit landed on 24 November. The MCP package logged about 1,690 npm downloads in the week to 28 November.
How to install Claude Context
claude mcp add claude-context -e OPENAI_API_KEY=sk-... -e MILVUS_ADDRESS=... -e MILVUS_TOKEN=... -- npx @zilliz/claude-context-mcp@latestIs Claude Context worth it?
Claude Context gives an agent the one thing grep cannot: search by description. Ask for "where webhook retries are handled" and search_code returns ranked chunks with file paths and line numbers, 10 by default and up to 50. CocoIndex Code ranks on embeddings alone; Claude Context blends BM25 keyword scores with vector similarity, so an exact function name still lands near the top. Four tools keep the standing cost in the context window small.
The quick start asks for an OpenAI key and a Zilliz Cloud account, and in that configuration every indexed chunk goes to OpenAI for embedding and then sits, as text, in Zilliz's cloud. The docs describe a fully local route with Milvus in Docker Compose and Ollama's nomic-embed-text, which works out to a database stack kept alive for the sake of a search box. Zilliz Cloud's free tier allows five collections and the server creates one per codebase, keyed by absolute path, so a sixth repository, or a second clone of the first, means a paid plan or some tidying up.
Indexing is where users get burnt. Tokens are cheap at $0.02 per million for text-embedding-3-small, but the counts run away. In GitHub issue #165 one user reported 276.878M input tokens and about 3,500 requests on a codebase nowhere near that size, and another described a run that went on for hours and used 110M tokens before hitting the Zilliz Cloud free-tier limit. A December 2025 report described embedding spikes with no file changes behind them. The maintainer's first suspect was dependency files slipping past the ignore rules; users also point at background sync, which rescans indexed codebases every five minutes unless CLAUDE_CONTEXT_BACKGROUND_SYNC=false is set. Indexing also stops dead at a hard-coded 450,000 chunks.
The token savings are Zilliz's own figures. Its evaluation ran 30 SWE-bench Verified tasks on GPT-4o-mini, three runs per arm, and average token use fell from 73,373 to 44,449, about 39%, with retrieval F1 level at 0.40. The harness is published, which is more than most rivals offer, but the sample is small, the model is cheap and the test used version 0.1.0. A Hacker News commenter recalled in January 2026 that Anthropic had tried vector search for Claude Code and found grep worked better, and no independent benchmark has settled the point either way.
Upkeep has been patchy. An October 2025 issue titled "Project Status?" asked whether the project had been abandoned, and a reply pointed users to a fork that added Qdrant. Work resumed in March 2026, paused again in July and restarted in November with fixes to index recovery and AST chunk coverage. The most-discussed open bug, in which search_code calls a freshly indexed codebase unindexed, has 33 comments and dates from August 2025.
Against the other servers we review, Claude Context answers "where is the code that does this?" codebase-memory-mcp, CodeGraph and code-review-graph answer "what calls this, and what breaks if I change it?" from a local graph with no API key at all. Serena gets there through language servers and can also edit by symbol. Context7 covers library documentation and never reads your own code.
Where it earns its place
A backend developer new to a large Java monorepo
Find which service handles refunds without knowing anyone's class names
Register the server with an OpenAI key and a free Zilliz Cloud cluster, index once and ask in plain English. Add build output and vendored folders to CUSTOM_IGNORE_PATTERNS first and watch the OpenAI usage page during the first run; users have reported runs of more than 100M tokens.
A fintech team barred from sending source code to third parties
Get semantic code search with nothing leaving the network
Run Milvus standalone with Docker Compose and Ollama with nomic-embed-text, then point MILVUS_ADDRESS and OLLAMA_HOST at them. There is no per-token bill; the cost is a Milvus stack to maintain and embedding speed set by local hardware.
A developer running several agent sessions in OpenCode or Claude Code at once
Stop every MCP process rescanning the same repositories
Set CLAUDE_CONTEXT_BACKGROUND_SYNC=false and touch ~/.context/.sync-trigger from a PostToolUse hook, so re-indexing follows actual edits instead of a five-minute timer in each process.
Before you commit
- Setup
- Needs Node.js 20 or newer, an embedding key and a Milvus endpoint. Run claude mcp add claude-context with OPENAI_API_KEY, MILVUS_ADDRESS and MILVUS_TOKEN set and npx @zilliz/claude-context-mcp@latest, then ask the agent to index the codebase and check get_indexing_status, whose percentage moves in phases. Configs are documented for Codex CLI, Gemini CLI, Cursor, Qwen Code, Void and other MCP clients.
- Integrations
- Four MCP tools over stdio: index_codebase, search_code, get_indexing_status and clear_index. Embeddings from OpenAI, VoyageAI (voyage-code-3 by default), Gemini or Ollama; vectors in Milvus or Zilliz Cloud. AST chunking for 14 languages including TypeScript, Python, Java, Go and Rust. Also a @zilliz/claude-context-core npm library and a VS Code extension.
- Data and privacy
- With a cloud embedding provider, every indexed chunk goes to that provider. Chunks and vectors are stored in your Milvus collection, which is on Zilliz Cloud in the default setup. Keys can sit in plain text in ~/.context/.env. No telemetry is documented. Keeping everything on your own machines needs Milvus and Ollama run locally.
- Cost at scale
- The software is free. Embedding spend grows with repository size and how often it re-indexes, at the provider's rate ($0.02 per million tokens for text-embedding-3-small). Zilliz Cloud Free covers 5 GB, 2.5M vCUs a month and five collections, one per indexed codebase; Standard starts at $0 a month serverless or $126 a month dedicated.
- Limits
- Indexing stops at a hard-coded 450,000 chunks. Background sync rescans every five minutes by default. Each absolute path is a separate index. About 147 open issues and pull requests, including a search_code "not indexed" bug open since August 2025.
What’s good
- Hybrid BM25 and vector ranking by default
- Only four tools, so little context overhead
- Embeddings from OpenAI, VoyageAI, Gemini or local Ollama
- Merkle-tree incremental re-indexing
What’s not
- Default setup sends code to OpenAI and Zilliz Cloud
- Users report runaway embedding token counts
- Stop-start maintenance; a search bug open since August 2025
- Fully local mode means running Milvus in Docker
Best for
Developers on large repositories who already pay for an embedding API or run Milvus and want their agent to find code by describing it.
Claude Context alternatives
Where it fits in the AI stack
Claude Context: common questions
- Is Claude Context worth it?
- Hybrid ranking and a large following make it the usual answer for semantic search in Claude Code, but the standard setup sends your code to two cloud services and its maintainers work in fits and starts. We rate it 3.6 out of 5.
- How much does Claude Context cost?
- Free and open source (MIT). You pay your embedding provider per token (OpenAI's text-embedding-3-small lists at $0.02 per million) and Zilliz Cloud beyond its free tier, unless you run Ollama and Milvus yourself.
- What are the downsides of Claude Context?
- Default setup sends code to OpenAI and Zilliz Cloud; users report runaway embedding token counts; stop-start maintenance; a search bug open since August 2025; fully local mode means running Milvus in Docker.
- Who is Claude Context best for?
- Developers on large repositories who already pay for an embedding API or run Milvus and want their agent to find code by describing it.
- How much does Claude Context cost for a team or in production?
- The software is free. Embedding spend grows with repository size and how often it re-indexes, at the provider's rate ($0.02 per million tokens for text-embedding-3-small). Zilliz Cloud Free covers 5 GB, 2.5M vCUs a month and five collections, one per indexed codebase; Standard starts at $0 a month serverless or $126 a month dedicated.
- Is Claude Context safe for company data?
- With a cloud embedding provider, every indexed chunk goes to that provider. Chunks and vectors are stored in your Milvus collection, which is on Zilliz Cloud in the default setup. Keys can sit in plain text in ~/.context/.env. No telemetry is documented. Keeping everything on your own machines needs Milvus and Ollama run locally.
- What are the best Claude Context alternatives?
- The closest alternatives we have reviewed are codebase-memory-mcp, CodeGraph, Serena, CocoIndex Code, code-review-graph and Context7.
Answers checked Nov 29, 2026.