# Context+ — Semantic Code Intelligence MCP Server > MCP server combining RAG, Tree-sitter AST parsing, and spectral clustering to turn large codebases into searchable feature graphs. 99% accuracy on monorepos. 1,700+ GitHub stars. ## Install Merge the JSON below into your `.mcp.json`: ## Quick Use Add to your `.mcp.json`: ```json { "mcpServers": { "contextplus": { "command": "npx", "args": ["-y", "@contextplus/mcp-server"] } } } ``` Restart Claude Code. Ask: "Explain the authentication architecture" or "Which modules depend on the database layer?" --- ## Intro Context+ is an MCP server that combines RAG, Tree-sitter AST parsing, spectral clustering, and Obsidian-style linking to turn massive codebases into searchable, hierarchical feature graphs with 1,700+ GitHub stars. Designed for developers working on large monorepos where dumping files into context is impractical, Context+ gives your AI agent deep semantic understanding of code architecture — functions, classes, modules, and their relationships. Best for teams on 100K+ LOC codebases who need precise code intelligence. Works with: Claude Code, Cursor, any MCP client. Setup time: under 2 minutes. --- ## Core Capabilities ### Feature Graph Context+ builds a hierarchical graph of your codebase: ``` Project ├── Auth Module │ ├── login() → calls validateToken(), createSession() │ ├── logout() → calls destroySession() │ └── middleware → imports from Auth Module ├── API Layer │ ├── /users → depends on Auth, Database │ ├── /products → depends on Database, Cache │ └── /orders → depends on Auth, Database, Payment └── Database Layer ├── connection pool ├── migrations └── models ``` ### Tree-sitter AST Parsing Accurate code parsing across 50+ languages using Tree-sitter. Extracts function signatures, class hierarchies, import chains, and type definitions. ### Spectral Clustering Groups related code into logical features automatically. Discovers modules and boundaries that may not match the file system structure. ### Obsidian-Style Linking Navigate between code concepts using bidirectional links: - "Show everything connected to the User model" - "What calls the payment processing pipeline?" - "Trace data flow from API request to database write" ### Semantic Search Natural language queries against the code graph: ``` "Where is authentication handled?" "Which functions modify the order state?" "Find all database queries that join more than 3 tables" ``` ### Key Stats - 1,700+ GitHub stars - 50+ languages via Tree-sitter - Spectral clustering for feature discovery - Sub-second query response - Handles 500K+ LOC codebases ### FAQ **Q: What is Context+?** A: Context+ is an MCP server that builds a semantic knowledge graph of your codebase, giving AI agents deep understanding of code architecture, dependencies, and relationships. **Q: Is Context+ free?** A: Yes, fully open-source under MIT license. **Q: How is Context+ different from Codebase Memory MCP?** A: Codebase Memory focuses on token-efficient retrieval. Context+ focuses on semantic understanding — it clusters code into features and maps relationships using spectral analysis and AST parsing. --- ## Source & Thanks > Created by [ForLoopCodes](https://github.com/ForLoopCodes). Licensed under MIT. > > [contextplus](https://github.com/ForLoopCodes/contextplus) — ⭐ 1,700+ Thanks for bringing deep semantic code intelligence to MCP. --- ## Quick Use Add the following to `.mcp.json`: ```json { "mcpServers": { "contextplus": { "command": "npx", "args": ["-y", "@contextplus/mcp-server"] } } } ``` Restart Claude Code to use it. --- ## Intro Context+ is an MCP server that combines RAG, Tree-sitter AST parsing, spectral clustering, and bidirectional linking to turn large codebases into searchable hierarchical feature maps, with 1,700+ GitHub stars. Built for developers working in large monorepos. Ideal for projects over 100K lines of code. --- ## Source & Thanks > Created by [ForLoopCodes](https://github.com/ForLoopCodes). Licensed under MIT. > > [contextplus](https://github.com/ForLoopCodes/contextplus) — ⭐ 1,700+ --- Source: https://tokrepo.com/en/workflows/context-semantic-code-intelligence-mcp-server-bf876394 Author: MCP Hub