contextplus MCP server
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.
What contextplus does
Summarised from the project README; check the repository for the latest details.
Tools exposed (19)
Discoveryget_context_tree– Structural AST tree of a project with file headers and symbol ranges (line numbers for functions/classes/methods). Dynamic pruning shrinks oget_file_skeleton– Function signatures, class methods, and type definitions with line ranges, without reading full bodies. Shows the API surface.semantic_code_search– Search by meaning, not exact text. Uses embeddings over file headers/symbols and returns matched symbol definition lines.semantic_identifier_search– Identifier-level semantic retrieval for functions/classes/variables with ranked call sites and line numbers.semantic_navigate– Browse codebase by meaning using spectral clustering. Groups semantically related files into labeled clusters.Analysisget_blast_radius– Trace every file and line where a symbol is imported or used. Prevents orphaned references.run_static_analysis– Run native linters and compilers to find unused variables, dead code, and type errors. Supports TypeScript, Python, Rust, Go.propose_commit– The only way to write code. Validates against strict rules before saving. Creates a shadow restore point before writing.get_feature_hub– Obsidian-style feature hub navigator. Hubs are `.md` files with `[[wikilinks]]` that map features to code files.list_restore_points– List all shadow restore points created by `proposecommit`. Each captures file state before AI changes.undo_change– Restore files to their state before a specific AI change. Uses shadow restore points. Does not affect git.upsert_memory_node– Create or update a memory node (concept, file, symbol, note) with auto-generated embeddings.create_relation– Create typed edges between nodes (relatesto, dependson, implements, references, similarto, contains).search_memory_graph– Semantic search with graph traversal — finds direct matches then walks 1st/2nd-degree neighbors.prune_stale_links– Remove decayed edges (e^(-λt) below threshold) and orphan nodes with low access counts.add_interlinked_context– Bulk-add nodes with auto-similarity linking (cosine ≥ 0.72 creates edges automatically).retrieve_with_traversal– Start from a node and walk outward — returns all reachable neighbors scored by decay and depth.
Requirements
- Environment variables: OLLAMA_API_KEY
Website: https://contextplus.vercel.app
Stars: ★1983
Language: TypeScript
Last updated: 2026-07-13
mcp-server
How to install contextplus MCP in Claude Desktop, Cursor and VS Code
Install
Taken from the project README (README mcpServers JSON). Check the README for required API keys before use.
Claude Desktop
claude_desktop_config.json
{
"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"
}
}
}
}Cursor
~/.cursor/mcp.json
{
"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"
}
}
}
}VS Code
.vscode/mcp.json
{
"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"
}
}
}
}Add to config generator – combine it with other servers, or get the Windsurf format.
Featured in: Best MCP servers for Obsidian · Best MCP servers for research
Maintain this project? Get it featured for free during launch →
Related Memory & Knowledge MCP servers
🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems.
Memory & Knowledge
Context window optimization for AI coding agents. Sandboxes tool output (98% reduction), persists session memory, and enforces routing acr
Memory & Knowledge
Turbocharge Claude Code, Cursor, Codex, Gemini & every coding agent: faster, cheaper, with contextual understanding specific to your codebas
Memory & Knowledge
Own your AI. The native macOS harness for AI agents -- any model, persistent memory, autonomous execution, cryptographic identity. Built in
Memory & Knowledge
Fast and Accurate Code Search for Agents. Uses 99% fewer tokens than grep+read
Memory & Knowledge
Cortex - Generates interactive API documentation, typed SDKs, and MCP servers from OpenAPI, AsyncAPI, GraphQL, gRPC, OpenRPC, and Markdown.
Memory & Knowledge