claude-context
by
zilliztech

Description: Code search MCP for Claude Code. Make entire codebase the context for any coding agent.

View zilliztech/claude-context on GitHub ↗

Summary Information

Updated 1 minute ago
Added to GitGenius on May 18th, 2026
Created on June 6th, 2025
Open Issues & Pull Requests: 107 (+0)
Number of forks: 847
Total Stargazers: 11,525 (+0)
Total Subscribers: 50 (+0)

Issue Activity (beta)

Open issues: 67
New in 7 days: 2
Closed in 7 days: 0
Avg open age: 205 days
Stale 30+ days: 52
Stale 90+ days: 45

Recent activity

Opened in 7 days: 2
Closed in 7 days: 0
Comments in 7 days: 1
Events in 7 days: 1

Top labels

No label distribution available yet.

Detailed Description

The zilliztech/claude-context repository provides a powerful solution for integrating semantic code search into Claude Code and other AI coding agents. Its primary purpose is to make an entire codebase accessible as context for AI assistants, enabling them to answer coding questions and generate code with a deep understanding of the project’s structure and content. By leveraging advanced hybrid search techniques (combining BM25 and dense vector search), Claude Context can efficiently retrieve relevant code snippets from millions of lines, eliminating the need for multi-round discovery and manual context assembly.

A key feature of Claude Context is its cost-effective approach to handling large codebases. Instead of loading entire directories into the AI agent for every request—which can be expensive and inefficient—it indexes the codebase into a scalable vector database (such as Milvus or Zilliz Cloud). When a query is made, only the most relevant code is retrieved and provided as context, significantly reducing token usage and operational costs. Controlled evaluations demonstrate that this method achieves approximately 40% token reduction while maintaining equivalent retrieval quality, translating to substantial savings in production environments.

Claude Context is implemented as a Model Context Protocol (MCP) server, making it compatible with a wide range of AI coding tools and IDEs, including VS Code, Gemini CLI, Codex CLI, Cursor, Void, Claude Desktop, Windsurf, Cherry Studio, Cline, Augment, Roo Code, Zencoder, and LangChain/LangGraph. Integration is straightforward, typically involving configuration of environment variables and MCP server settings. The repository provides detailed instructions for each supported client, ensuring seamless adoption across different development workflows.

The architecture of Claude Context is modular and scalable. It consists of three main packages: @zilliz/claude-context-core (the core indexing engine), @zilliz/claude-context-mcp (the MCP server), and a VS Code extension for semantic code search. The core engine supports multiple embedding providers (OpenAI, VoyageAI, Ollama, Gemini) and languages (TypeScript, JavaScript, Python, Java, C++, C#, Go, Rust, PHP, Ruby, Swift, Kotlin, Scala, Markdown). Code chunking is performed using AST-based splitters, with automatic fallback to character-based methods, and incremental indexing is achieved via Merkle trees to efficiently re-index only changed files.

Users can index their codebase, check indexing status, perform natural language code searches, and clear the index as needed. The system is highly customizable, allowing configuration of file extensions, ignore patterns, and embedding models. For developers, the @zilliz/claude-context-core package can be used directly to build custom applications, while the VS Code extension offers an intuitive interface for semantic code search and navigation within the IDE.

Overall, Claude Context empowers AI coding agents with deep, scalable, and efficient access to entire codebases, making them more context-aware and capable of handling complex coding tasks. Its integration with vector databases and support for multiple embedding models ensures high performance and adaptability for projects of any size. The repository is actively maintained, open-source under the MIT license, and provides comprehensive documentation and support for both end users and developers.

claude-context
by
zilliztechzilliztech/claude-context

Repository Details

Fetching additional details & charts...