$git clone https://github.com/zilliztech/claude-context> ๐ Looking for persistent memory for Claude Code? Check out memsearch Claude Code plugin โ a markdown-first memory system that gives your AI agent long-term memory across sessions.
| 1 |  |
| 2 | ย |
| 3 | > ๐ **Looking for persistent memory for Claude Code?** Check out [memsearch Claude Code plugin](https://github.com/zilliztech/memsearch#for-claude-code-users) โ a markdown-first memory system that gives your AI agent long-term memory across sessions. |
| 4 | ย |
| 5 | ### Your entire codebase as Claude's context |
| 6 | ย |
| 7 | [](https://opensource.org/licenses/MIT) |
| 8 | [](https://nodejs.org/) |
| 9 | [](docs/) |
| 10 | [](https://marketplace.visualstudio.com/items?itemName=zilliz.semanticcodesearch) |
| 11 | [](https://www.npmjs.com/package/@zilliz/claude-context-core) |
| 12 | [](https://www.npmjs.com/package/@zilliz/claude-context-mcp) |
| 13 | [](https://twitter.com/zilliz_universe) |
| 14 | [](https://deepwiki.com/zilliztech/claude-context) |
| 15 | <a href="https://discord.gg/mKc3R95yE5"><img height="20" src="https://img.shields.io/badge/Discord-%235865F2.svg?style=for-the-badge&logo=discord&logoColor=white" alt="discord" /></a> |
| 16 | <a href="https://trendshift.io/repositories/15064"><img src="https://trendshift.io/api/badge/repositories/15064" alt="zilliztech/claude-context | Trendshift" width="250" height="55" /></a> |
| 17 | </div> |
| 18 | ย |
| 19 | **Claude Context** is an MCP plugin that adds semantic code search to Claude Code and other AI coding agents, giving them deep context from your entire codebase. |
| 20 | ย |
| 21 | ๐ง **Your Entire Codebase as Context**: Claude Context uses semantic search to find all relevant code from millions of lines. No multi-round discovery needed. It brings results straight into the Claude's context. |
| 22 | ย |
| 23 | ๐ฐ **Cost-Effective for Large Codebases**: Instead of loading entire directories into Claude for every request, which can be very expensive, Claude Context efficiently stores your codebase in a vector database and only uses related code in context to keep your costs manageable. |
| 24 | ย |
| 25 | --- |
| 26 | ย |
| 27 | ## ๐ Demo |
| 28 | ย |
| 29 |  |
| 30 | ย |
| 31 | Model Context Protocol (MCP) allows you to integrate Claude Context with your favorite AI coding assistants, e.g. Claude Code. |
| 32 | ย |
| 33 | ## Quick Start |
| 34 | ย |
| 35 | ### Prerequisites |
| 36 | ย |
| 37 | <details> |
| 38 | <summary>Get a free vector database on Zilliz Cloud ๐</summary> |
| 39 | ย |
| 40 | Claude Context needs a vector database. You can [sign up](https://cloud.zilliz.com/signup?utm_source=github&utm_medium=referral&utm_campaign=2507-codecontext-readme) on Zilliz Cloud to get an API key. |
| 41 | ย |
| 42 |  |
| 43 | ย |
| 44 | Copy your Personal Key to replace `your-zilliz-cloud-api-key` in the configuration examples. |
| 45 | </details> |
| 46 | ย |
| 47 | <details> |
| 48 | <summary>Get OpenAI API Key for embedding model</summary> |
| 49 | ย |
| 50 | You need an OpenAI API key for the embedding model. You can get one by signing up at [OpenAI](https://platform.openai.com/api-keys). |
| 51 | ย |
| 52 | Your API key will look like this: it always starts with `sk-`. |
| 53 | Copy your key and use it in the configuration examples below as `your-openai-api-key`. |
| 54 | ย |
| 55 | </details> |
| 56 | ย |
| 57 | ### Configure MCP for Claude Code |
| 58 | ย |
| 59 | **System Requirements:** |
| 60 | ย |
| 61 | - Node.js >= 20.0.0 |
| 62 | ย |
| 63 | #### Configuration |
| 64 | ย |
| 65 | Use the command line interface to add the Claude Context MCP server: |
| 66 | ย |
| 67 | ```bash |
| 68 | claude mcp add claude-context \ |
| 69 | -e OPENAI_API_KEY=sk-your-openai-api-key \ |
| 70 | -e M |