MCP Hub
Back to servers

contextplus

Semantic Intelligence for Large-Scale Engineering. Context+ is an MCP server designed for developers who demand 99% accuracy. By combining Tree-sitter AST parsing, Spectral Clustering, and Obsidian-style linking, Context+ turns a massive codebase into a searchable, hierarchical feature graph.

Stars
648
Forks
44
Updated
Feb 28, 2026
Validated
Mar 2, 2026

Context+

Semantic Intelligence for Large-Scale Engineering.

Context+ is an MCP server designed for developers who demand 99% accuracy. By combining Tree-sitter AST parsing, 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

ToolDescription
get_context_treeStructural AST tree of a project with file headers and symbol ranges (line numbers for functions/classes/methods). Dynamic pruning shrinks output automatically.
get_file_skeletonFunction signatures, class methods, and type definitions with line ranges, without reading full bodies. Shows the API surface.
semantic_code_searchSearch by meaning, not exact text. Uses embeddings over file headers/symbols and returns matched symbol definition lines.
semantic_identifier_searchIdentifier-level semantic retrieval for functions/classes/variables with ranked call sites and line numbers.
semantic_navigateBrowse codebase by meaning using spectral clustering. Groups semantically related files into labeled clusters.

Analysis

ToolDescription
get_blast_radiusTrace every file and line where a symbol is imported or used. Prevents orphaned references.
run_static_analysisRun native linters and compilers to find unused variables, dead code, and type errors. Supports TypeScript, Python, Rust, Go.

Code Ops

ToolDescription
propose_commitThe only way to write code. Validates against strict rules before saving. Creates a shadow restore point before writing.
get_feature_hubObsidian-style feature hub navigator. Hubs are .md files with [[wikilinks]] that map features to code files.

Version Control

ToolDescription
list_restore_pointsList all shadow restore points created by propose_commit. Each captures file state before AI changes.
undo_changeRestore files to their state before a specific AI change. Uses shadow restore points. Does not affect git.

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

Supported coding agent names: claude, cursor, vscode, windsurf.

Config file locations:

IDEConfig File
Claude Code.mcp.json
Cursor.cursor/mcp.json
VS Code.vscode/mcp.json
Windsurf.windsurf/mcp.json

From Source

npm install
npm run build
node build/index.js                      # analyze current directory
node build/index.js /path/to/my-project  # analyze a specific project

Architecture

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.

Tools (src/tools/) — 11 MCP tools exposing structural, semantic, and operational 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

VariableDefaultDescription
OLLAMA_EMBED_MODELnomic-embed-textEmbedding model
OLLAMA_API_KEYOllama Cloud API key
OLLAMA_CHAT_MODELllama3.2Chat model for cluster labeling
CONTEXTPLUS_EMBED_BATCH_SIZE8Embedding batch size per GPU call, clamped to 5-10
CONTEXTPLUS_EMBED_TRACKERtrueEnable realtime embedding refresh on file changes
CONTEXTPLUS_EMBED_TRACKER_MAX_FILES8Max changed files processed per tracker tick, clamped to 5-10
CONTEXTPLUS_EMBED_TRACKER_DEBOUNCE_MS700Debounce window before tracker refresh

Test

npm test
npm run test:demo
npm run test:all

Reviews

No reviews yet

Sign in to write a review