zilliztech/claude-context
Hybrid code search over indexed repositories for MCP coding agents
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
Claude Context is a TypeScript pnpm monorepo with three main components: @zilliz/claude-context-core, the @zilliz/claude-context-mcp server, and the VS Code Semantic Code Search extension. The core owns the indexing and retrieval pipeline. It selects files, splits them into searchable chunks, generates embeddings through a configured provider, and uses a Milvus-compatible backend to store and query the index.
The core Context API exposes indexCodebase() with a progress callback and semanticSearch() for retrieval. The direct API example returns snippet content, relative paths, line ranges, and scores. The MCP server exposes indexing, hybrid search, status, and clearing to coding agents. The agent receives relevant snippets rather than the entire checkout, while the VS Code extension offers a separate search and navigation interface.
Key Capabilities & Differentiators
The MCP searchcode tool combines BM25 with dense-vector search. Lexical matching is useful when a query contains identifiers or distinctive terms; vector similarity helps when a developer describes behavior without knowing the implementation's vocabulary. The indexer uses Merkle trees to limit re-indexing to changed files. An AST-based splitter with automatic fallback gives the pipeline a syntax-aware option, and a LangChain character-based splitter is also available.
Indexable languages include TypeScript, JavaScript, Python, Java, C++, C#, Go, Rust, PHP, Ruby, Swift, Kotlin, Scala, and Markdown, with configurable extensions and ignore patterns. Embeddings can come from OpenAI, VoyageAI, Ollama, or Gemini; concrete model examples include text-embedding-3-small, text-embedding-3-large, and voyage-code-3. Milvus and Zilliz Cloud are the listed vector backends. A controlled evaluation reports roughly 40% lower token use at equivalent retrieval quality; use evaluation/ to assess whether the comparison applies to your workload rather than treating it as a general savings estimate.
Trade-offs & Limitations
Compared with ripgrep or an IDE's symbol navigation, Claude Context is most useful when the developer knows what the code does but not what it is called. Exact search remains the simpler choice for known symbols, and syntax-aware navigation is the better fit for verifying references. Search hits are ranked snippets, not a call graph. The gain in discovery comes with an initial indexing pass, an embedding service, a maintained vector index, and results that depend on file scope and chunking.
OpenAI embeddings and Zilliz Cloud avoid running those services yourself, but put code text on the remote embedding path and the index on a hosted backend. Ollama and self-hosted Milvus give operators more control over those paths at the cost of running and sizing both services. Neither setup determines where the MCP client sends retrieved snippets. For proprietary repositories, verify exclusion rules before indexing, and plan to validate retrieval quality and rebuild the index when changing embedding models.
Hardware & Deployment Guide
The MCP server requires Node.js 20 or newer, an embedding provider, and a vector database. The Claude Code setup registers npx @zilliz/claude-context-mcp@latest with claude mcp add; the OpenAI and Zilliz Cloud example passes OPENAI_API_KEY, MILVUS_ADDRESS, and MILVUS_TOKEN. For repeatable rollouts, pin a tested package version instead of tracking @latest. The source workspace requires pnpm 10 or newer and includes pnpm build:mcp, pnpm build:core, and pnpm build:vscode.
Ollama and self-hosted Milvus can keep the embedding and index services on infrastructure you control. An offline rollout still needs local access to the npm package and model artifacts, plus a separate check of the MCP client's model traffic. Managed services reduce local compute and storage needs but add network dependencies and credential management. No GitHub release entry is listed, so there is no release-based timeline to use for tracking recent changes.
searchcode combines BM25 lexical matching with dense-vector similarity on indexed code.Teams repeatedly navigating large or unfamiliar repositories with an MCP coding agent, especially when they can describe the behavior but don't know the symbol names.
Exact search and symbol navigation already cover the job, you cannot operate or approve an embedding service and vector store, or you need exhaustive references rather than ranked snippets.
Quick Start & Installation
npx @zilliz/claude-context-mcp@latestComparison vs. Top Coding, Skills & MCP Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| claude-context ★ | 12.8k | +18 | TypeScript | MIT | Hybrid code search over indexed repositories for MCP coding agents |
| graphify | 156.8k | +2.4k | Python | Apache-2.0 | Local AST graphs for dependency tracing, with CLI and MCP access. |
| codebase-memory-mcp | 49.6k | +362 | C | MIT | A local code graph for tracing code, docs, and infrastructure via MCP. |
| rea | 488.8k | +7.6k | TypeScript | MIT | A local CLI and MCP server for evidence-backed app and binary analysis |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/zilliztech/claude-context.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about claude-context
How does a coding agent connect to the index, and what is the indexing lifecycle?
indexcodebase for the project directory. getindexingstatus reports progress, searchcode queries the index, and clearindex removes the index for that codebase. Applications that do not use MCP can call the TypeScript core directly.Does the MCP server need a GPU, and how should I size a local deployment?
Can we self-host it for commercial use with proprietary code?
When is this preferable to ripgrep or an IDE's Find References?
rg or an IDE's symbol navigation when you know the exact identifier or need references tied to a specific symbol. Use Claude Context when you can describe behavior but do not know how it is named in the repository. Hybrid search can surface relevant snippets, but a ranked match is not proof of a call relationship or a complete list of references.Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy