Manages codebase changes via a shadow restore system that tracks file states before AI modifications, allowing undos without impacting the project's Git history.
Supports Obsidian-style feature hub navigation by using markdown files and wikilinks to map high-level features to their corresponding code files.
Integrates with Ollama to provide semantic intelligence, including vector embeddings for code search and chat models for labeling semantic file clusters.
Provides static analysis tools for Python codebases to detect unused variables, dead code, and type errors.
Provides static analysis tools for Rust codebases to detect unused variables, dead code, and type errors.
Provides static analysis tools for TypeScript codebases to detect unused variables, dead code, and type errors.
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., "@Context+show the blast radius of changing the 'processPayment' function"
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.
Context+
Semantic Intelligence for Large-Scale Engineering.
Context+ is an MCP server designed for developers who demand 99% accuracy. By combining RAG, Tree-sitter AST, Spectral Clustering, and Obsidian-style linking, Context+ turns a massive codebase into a searchable, hierarchical feature graph.
https://github.com/user-attachments/assets/a97a451f-c9b4-468d-b036-15b65fc13e79
Tools
Discovery
Tool | Description |
| Structural AST tree of a project with file headers and symbol ranges (line numbers for functions/classes/methods). Dynamic pruning shrinks output automatically. |
| Function signatures, class methods, and type definitions with line ranges, without reading full bodies. Shows the API surface. |
| Search by meaning, not exact text. Uses embeddings over file headers/symbols and returns matched symbol definition lines. |
| Identifier-level semantic retrieval for functions/classes/variables with ranked call sites and line numbers. |
| Browse codebase by meaning using spectral clustering. Groups semantically related files into labeled clusters. |
Analysis
Tool | Description |
| Trace every file and line where a symbol is imported or used. Prevents orphaned references. |
| Run native linters and compilers to find unused variables, dead code, and type errors. Supports TypeScript, Python, Rust, Go. |
Code Ops
Tool | Description |
| The only way to write code. Validates against strict rules before saving. Creates a shadow restore point before writing. |
| Obsidian-style feature hub navigator. Hubs are |
Version Control
Tool | Description |
| List all shadow restore points created by |
| Restore files to their state before a specific AI change. Uses shadow restore points. Does not affect git. |
Memory & RAG
Tool | Description |
| Create or update a memory node (concept, file, symbol, note) with auto-generated embeddings. |
| Create typed edges between nodes (relates_to, depends_on, implements, references, similar_to, contains). |
| Semantic search with graph traversal — finds direct matches then walks 1st/2nd-degree neighbors. |
| Remove decayed edges (e^(-λt) below threshold) and orphan nodes with low access counts. |
| Bulk-add nodes with auto-similarity linking (cosine ≥ 0.72 creates edges automatically). |
| Start from a node and walk outward — returns all reachable neighbors scored by decay and depth. |
Setup
Quick Start (npx / bunx)
No installation needed. Add Context+ to your IDE MCP config.
For Claude Code, Cursor, and Windsurf, use mcpServers:
{
"mcpServers": {
"contextplus": {
"command": "bunx",
"args": ["contextplus"],
"env": {
"OLLAMA_EMBED_MODEL": "nomic-embed-text",
"OLLAMA_CHAT_MODEL": "gemma2:27b",
"OLLAMA_API_KEY": "YOUR_OLLAMA_API_KEY"
}
}
}
}For VS Code (.vscode/mcp.json), use servers and inputs:
{
"servers": {
"contextplus": {
"type": "stdio",
"command": "bunx",
"args": ["contextplus"],
"env": {
"OLLAMA_EMBED_MODEL": "nomic-embed-text",
"OLLAMA_CHAT_MODEL": "gemma2:27b",
"OLLAMA_API_KEY": "YOUR_OLLAMA_API_KEY"
}
}
},
"inputs": []
}If you prefer npx, use:
"command": "npx""args": ["-y", "contextplus"]
Or generate the MCP config file directly in your current directory:
npx -y contextplus init claude
bunx contextplus init cursor
npx -y contextplus init opencodeSupported coding agent names: claude, cursor, vscode, windsurf, opencode.
Config file locations:
IDE | Config File |
Claude Code |
|
Cursor |
|
VS Code |
|
Windsurf |
|
OpenCode |
|
CLI Subcommands
init [target]- Generate MCP configuration (targets:claude,cursor,vscode,windsurf,opencode).skeleton [path]ortree [path]- (New) View the structural tree of a project with file headers and symbol definitions directly in your terminal.[path]- Start the MCP server (stdio) for the specified path (defaults to current directory).
From Source
npm install
npm run buildArchitecture
Three layers built with TypeScript over stdio using the Model Context Protocol SDK:
Core (src/core/) - Multi-language AST parsing (tree-sitter, 43 extensions), gitignore-aware traversal, Ollama vector embeddings with disk cache, wikilink hub graph, in-memory property graph with decay scoring.
Tools (src/tools/) - 17 MCP tools exposing structural, semantic, operational, and memory graph capabilities.
Git (src/git/) - Shadow restore point system for undo without touching git history.
Runtime Cache (.mcp_data/) - created on server startup; stores reusable file, identifier, and call-site embeddings to avoid repeated GPU/CPU embedding work. A realtime tracker refreshes changed files/functions incrementally.
Config
Variable | Type | Default | Description |
| string |
| Embedding model |
| string | - | Ollama Cloud API key |
| string |
| Chat model for cluster labeling |
| string (parsed as number) |
| Embedding batch size per GPU call, clamped to 5-10 |
| string (parsed as number) |
| Per-chunk chars before merge, clamped to 256-8000 |
| string (parsed as number) |
| Skip non-code text files larger than this many bytes |
| string (parsed as number) | - | Optional Ollama embed runtime |
| string (parsed as number) | - | Optional Ollama embed runtime |
| string (parsed as number) | - | Optional Ollama embed runtime |
| string (parsed as number) | - | Optional Ollama embed runtime |
| string (parsed as number) | - | Optional Ollama embed runtime |
| string (parsed as boolean) | - | Optional Ollama embed runtime |
| string (parsed as boolean) |
| Enable realtime embedding refresh on file changes |
| string (parsed as number) |
| Max changed files processed per tracker tick, clamped to 5-10 |
| string (parsed as number) |
| Debounce window before tracker refresh |
Test
npm test
npm run test:demo
npm run test:allResources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.