claude-context  by zilliztech

Semantic code search for AI coding agents

created 2 months ago
2,545 stars

Top 18.4% on SourcePulse

GitHubView on GitHub
1 Expert Loves This Project
Project Summary

This project provides a Model Context Protocol (MCP) plugin for AI coding assistants, enabling semantic code search across entire codebases. It targets developers using AI tools like Claude Code, Gemini CLI, Cursor, and others, offering efficient, context-aware code retrieval to enhance AI's understanding of large projects without prohibitive costs.

How It Works

The system leverages semantic search via vector databases to find relevant code snippets, moving beyond simple keyword matching. It uses Abstract Syntax Trees (AST) for intelligent code chunking and supports incremental indexing with Merkle trees for efficiency. Integration is primarily through the Model Context Protocol (MCP), allowing seamless connection with various AI coding agents.

Quick Start & Requirements

  • Installation: Primarily via npx @zilliz/claude-context-mcp@latest for MCP integration.
  • Prerequisites: Requires an OpenAI API key for embeddings and a Zilliz Cloud account (or Milvus instance) for vector storage.
  • Setup: Involves configuring API keys and Zilliz Cloud endpoints within the AI assistant's MCP settings.

Highlighted Details

  • Semantic code search for natural language queries.
  • AST-based code chunking for deeper analysis.
  • Incremental indexing for efficient updates.
  • Supports multiple embedding providers (OpenAI, VoyageAI, Ollama, Gemini) and vector databases (Milvus, Zilliz Cloud).

Maintenance & Community

The project is maintained by Zilliz. Links to documentation, examples, and a contributing guide are provided.

Licensing & Compatibility

Licensed under the MIT License, permitting commercial use and integration with closed-source projects.

Limitations & Caveats

The project relies on external services (OpenAI, Zilliz Cloud) for core functionality, requiring API keys and potentially incurring costs. While it supports many AI assistants, compatibility depends on their MCP implementation.

Health Check
Last commit

3 days ago

Responsiveness

Inactive

Pull Requests (30d)
77
Issues (30d)
39
Star History
2,396 stars in the last 30 days

Explore Similar Projects

Starred by Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems"), Ives van Hoorne Ives van Hoorne(Cofounder of CodeSandbox), and
6 more.

bloop by BloopAI

0.1%
9k
Code search engine with natural language interface
created 2 years ago
updated 8 months ago
Starred by Alex Yu Alex Yu(Research Scientist at OpenAI; Former Cofounder of Luma AI), Will Brown Will Brown(Research Lead at Prime Intellect), and
7 more.

avante.nvim by yetone

0.7%
16k
Neovim plugin emulating Cursor AI IDE for AI-driven code assistance
created 1 year ago
updated 2 days ago
Feedback? Help us improve.