Claude Context indexes a codebase into a vector store and exposes search through the Model Context Protocol. It helps coding agents pull relevant snippets instead of loading entire directories into context.
Overview
Claude Context is an MCP integration that adds semantic code search to Claude Code and other MCP-compatible AI coding tools. It indexes project files, stores embeddings in a vector database such as Zilliz Cloud, and retrieves related code when agents answer questions or implement changes.
Indexing combines dense vectors with BM25 for hybrid search. The project describes AST-based chunking with incremental re-indexing via Merkle trees, configurable ignore patterns and file extensions, and support for many languages including TypeScript, Python, Go, and others. MCP tools cover indexing a directory, searching with natural language, clearing an index, and checking indexing progress.
Setup typically requires Node.js, an OpenAI API key for embeddings, and Milvus or Zilliz Cloud credentials. Configuration examples are provided for Claude Code, Cursor, VS Code MCP clients, Gemini CLI, Codex CLI, and several other assistants. The same functionality is also available through a core npm package and a VS Code extension named Semantic Code Search.
Key features
- Hybrid BM25 and vector search
- MCP server for coding agents
- AST-based code chunking
- Incremental Merkle-tree re-indexing
- Index and search MCP tools
- Zilliz Cloud vector backend
- Configurable embedding providers
- VS Code semantic search extension
Use cases
- Large monorepo navigation for agents
- Reducing prompt tokens for code tasks
- Cross-file context for Claude Code
- Natural-language code discovery
- Multi-project indexed search