claude-context
Code search MCP for Claude Code. Make entire codebase the context for any coding agent.
claude-context is an MCP server that provides semantic code search for AI coding assistants, enabling them to efficiently query entire codebases using natural language. Built by Zilliz, it uses vector database technology to index code and retrieve relevant snippets through hybrid search (BM25 + dense embeddings), dramatically reducing context tokens while maintaining high retrieval quality. Instead of loading entire directories for every request, it stores code in a vector database and surfaces only the most relevant chunks, making it cost-effective for large codebases. The server works with Claude Code, Cursor, Windsurf, and other MCP-compatible clients.
Key Features
Use Cases
- 01Finding authentication or authorization functions across a large enterprise codebase
- 02Discovering API endpoints and their implementations without manual browsing
- 03Locating error handling patterns or specific algorithm implementations
- 04Understanding how different modules interact across a multi-million line codebase
- 05Reducing AI assistant costs by loading only relevant code into context
- 06Enabling AI agents to answer questions about unfamiliar codebases efficiently
Related MCP Servers
View moremarkitdown
Python tool for converting files and office documents to Markdown.
firecrawl
The context API to search, scrape, and interact with the web at scale. 🔥
prompts.chat
f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.
langflow
Langflow is a powerful tool for building and deploying AI-powered agents and workflows.
claude-context — FAQ
What is claude-context?+
claude-context is an MCP server that adds semantic code search to AI coding assistants, allowing them to query entire codebases using natural language and retrieve only the relevant code snippets.
How do I install claude-context for Claude Code?+
Run 'claude mcp add claude-context' with environment variables for your OpenAI API key, Zilliz Cloud endpoint, and API token, followed by '-- npx @zilliz/claude-context-mcp@latest'. Node.js 20+ is required.
Which AI clients support claude-context?+
It works with Claude Code, Claude Desktop, Cursor, Windsurf, VS Code (via MCP extensions), Cline, Roo Code, Void, Cherry Studio, Augment, Zencoder, and other MCP-compatible clients.
What API keys do I need?+
You need an OpenAI API key (or alternative embedding provider key) and a Zilliz Cloud API token. Zilliz Cloud offers a free tier for the vector database.
Is claude-context free to use?+
The MCP server itself is MIT-licensed and free. You'll pay for your chosen embedding provider (e.g., OpenAI) and vector database (Zilliz Cloud has a free tier).
How do I index my codebase after installation?+
Open your AI client in your project directory and ask it to 'Index this codebase'. You can check progress with 'Check the indexing status' and then search using natural language queries.
How do I install claude-context?+
Open the source repository on GitHub and follow its README. claude-context is a mcp server — MCP Agents Market links you directly to the official repo.
Is claude-context free?+
claude-context is an open-source project hosted on GitHub. Check the repository for its license and any usage requirements.