claude-context
Provides vector database integration for storing and retrieving code context embeddings, enabling semantic search over codebases.
Provides integration with locally-hosted Ollama models for embedding generation, enabling offline operation.
Provides integration with OpenAI's embedding API for generating embeddings of code chunks.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@claude-contextindex the project in /workspace"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
@lbruton/claude-context
Actively maintained fork of zilliztech/claude-context — hardened for self-hosted Milvus deployments.
Why this fork?
The upstream @zilliz/claude-context-mcp targets Zilliz Cloud. When used with self-hosted Milvus it has several issues:
No fetch/gRPC timeout — hangs indefinitely on
DEADLINE_EXCEEDEDZilliz Cloud fallback — silently falls back to cloud on any connection error, masking local Milvus failures
No retry logic — a single transient failure aborts the entire indexing run
No error differentiation — timeout vs auth vs connection failure all look the same
Carries unused packages — chrome extension, VS Code extension, and evaluation suite add attack surface without value for MCP-only deployments
Ignore file accumulation —
.dockerignore,.npmignoreetc. loaded alongside.gitignore, causing patterns like*.mdto bleed across repos indexed in the same session
This fork strips it down to core + MCP server, patches all known issues, and publishes to @lbruton/ on npm.
Related MCP server: Semantica Search MCP
Changes from upstream
Reliability (CC-1)
Removed Zilliz Cloud fallback — failed Milvus connections surface as errors immediately, no silent cloud redirect
Retry with exponential backoff — transient
DEADLINE_EXCEEDEDand connection errors retry automatically before failingHealth check on startup — Milvus connectivity verified at server init with a clear error if unreachable
30s fetch + gRPC timeouts — no more indefinite hangs on REST or gRPC calls
Hardened snapshot validation — safety guards prevent corrupted state files from breaking subsequent runs
Indexing correctness (CC-2 — v0.1.13)
Allowlist for ignore files — only
.gitignoreand.contextignoreare loaded;.dockerignore,.npmignore, and other tool-specific files are excluded. Prevents patterns like*.mdfrom a Docker ignore file bleeding into unrelated repos indexed in the same session.Negation line filtering —
!-prefixed lines in.gitignoreare stripped rather than passed as positive rules to the glob engine, preventing false exclusions.
Cleaner MCP startup (CC-3 — v0.1.13)
Removed debug logs —
[DEBUG]lines that dumped environment variable names (including API key presence) to stderr on every startup have been removed fromconfig.ts.
Security hardening (v0.1.8)
Removed unused packages — chrome extension, VS Code extension, and
evaluation/benchmark suite eliminated along with their vulnerable dependency treesPatched all dependencies — 67 audit vulnerabilities resolved (0 remaining)
pnpm overrides for transitive deps pinned by upstream packages
Codacy SCA/SAST clean —
.codacy.ymlconfigured, false positives suppressed
Scope
Rebranded to
@lbruton/npm scope —@lbruton/claude-context-core+@lbruton/claude-context-mcpLean monorepo — only
packages/coreandpackages/mcpremain in the workspace
Installation (Claude Code MCP)
In ~/.claude/.mcp.json:
{
"mcpServers": {
"claude-context": {
"command": "npx",
"args": ["-y", "@lbruton/claude-context-mcp@latest"],
"env": {
"OPENAI_API_KEY": "sk-...",
"EMBEDDING_PROVIDER": "OpenAI",
"EMBEDDING_MODEL": "text-embedding-3-small",
"MILVUS_ADDRESS": "192.168.1.81:19530"
},
"startupTimeoutMs": 30000
}
}
}Environment Variables
Variable | Required | Description |
| Yes | Milvus gRPC endpoint — bare |
| Yes* | API key for OpenAI embeddings |
| No |
|
| No | Model name (default: |
| No | Authentication token for Milvus (if auth enabled) |
| No | Required when |
| No | Required when |
| No | Ollama server host (default: |
| No | Ollama model name (alternative to |
*Required when using OpenAI embeddings (default).
Custom ignore patterns
By default only .gitignore and .contextignore are loaded. To exclude files or directories from indexing without modifying your .gitignore, add a .contextignore file at the root of the codebase:
# .contextignore
dist/
*.generated.ts
secrets/Local Milvus setup
This fork is designed for local Milvus Standalone. Run Milvus via Docker:
docker compose -f docker-compose-milvus.yml up -dOr point MILVUS_ADDRESS at an existing Milvus instance on your network.
Building from source
pnpm install
pnpm build:core
pnpm build:mcpPublishing
pnpm release:core
pnpm release:mcpLicense
MIT — same as upstream.
Upstream
Original project by Zilliz: zilliztech/claude-context. This fork diverges in scope (MCP-only, self-hosted Milvus) but the core indexing engine and MCP protocol implementation remain theirs.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/lbruton/claude-context'
If you have feedback or need assistance with the MCP directory API, please join our Discord server