Local MCP server that indexes code into a knowledge graph for semantic, structural, and relationship-aware code search.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
One-click editor setup isnβt available for this listing yet β we donβt have a confirmed install command, and weβd rather show nothing than point your editor at the wrong package or host. Follow the projectβs own setup instructions, linked above.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Octocode.
semantic_searchFind code by meaning β "authentication flow", "error handling", "database queries"
view_signaturesView file structure β function signatures, class definitions, imports
graphragAlways-on file/symbol graph β search nodes, inspect relationships, and find paths without indexing
structural_searchAST pattern matching β find `.unwrap()` calls, `new` instantiations, specific patterns
lsp_goto_definitionJump to a symbol's definition (requires `--with-lsp`)
lsp_find_referencesFind all usages of a symbol across the workspace (requires `--with-lsp`)
Give your AI assistant a brain for your codebase. Octocode transforms your project into a navigable knowledge graph that Claude, Cursor, and other AI agents can search, understand, and navigate.
π Quick Start β’ π€ MCP Integration β’ π Documentation β’ π Website
The Problem: AI assistants are blind to your codebase. They can't search your files, understand dependencies, or remember context across sessions.
The Solution: Octocode's MCP server gives AI agents:
Works with: Claude Desktop β’ Cursor β’ Windsurf β’ Any MCP-compatible AI
Now your AI assistant can:
Standard RAG treats your code as flat text chunks. It finds similar-sounding snippets but has no idea that auth_middleware.rs imports jwt.rs, calls user_store.rs, and is wired into router.rs. Octocode understands structure.
Octocode uses tree-sitter AST parsing to build a live graph of files, symbols, imports, calls, inheritance, and implementations. The MCP graphrag tool builds this graph lazily from the current source tree, without an index, embeddings, or an LLM. Optional indexed GraphRAG adds semantic file discovery, descriptions, and broader architectural relationships.
contains, imports, calls, extends, and implements relationships directly from current source[graphrag].enabled = falsesemantic_search, view_signatures, graphrag, and structural_search to any MCP-compatible client| Standard RAG | Doc Lookup Tools | Octocode | |
|---|---|---|---|
| Indexes | Text chunks | External library docs | Your codebase structure (AST) |
| Understands | Similar text | API specs & usage | Functions, imports, dependencies |
| Cross-file | No | No | Yes β navigates the dependency graph |
| Relationships | No | No | imports, calls, implements, extends... |
| AI integration | Varies | MCP | Native MCP server + LSP |
Doc tools give AI the manual for libraries you use. Octocode gives AI the blueprint of how you put them together.
Built with Rust for performance. Local-first for privacy. Open source (Apache 2.0) for transparency.
Octocode ships a reproducible retrieval benchmark (benchmark/): 127 curated code-search queries with line-range ground truth, run against octocode's own source (pinned at b1771ba so annotations never drift). The numbers below use a fully local, no-API-key stack β jina-embeddings-v2-base-code via fastembed, no reranker β so they are a floor, not a ceiling:
| Config | Hit@5 | Hit@10 | MRR | NDCG@10 | Recall@10 |
|---|---|---|---|---|---|
| Dense vector only | 0.598 | 0.717 | 0.485 | 0.528 | 0.671 |
| Hybrid, default RRF weights (0.7/0.3) | 0.598 | 0.717 | 0.485 | 0.528 | 0.671 |
| Hybrid, keyword-tuned (0.3/0.7) | 0.732 | 0.835 | 0.572 | 0.620 | 0.807 |
Tilting RRF fusion toward the BM25/keyword signal β which carries disproportionate weight for code's exact identifiers β lifts Hit@5 by +22% and Recall@10 by +20% at zero added cost.
The benchmark also flags what doesn't help here (full 6-variant matrix in benchmark/RESULTS.md): a generic local cross-encoder reranker (bge-reranker-base) actually regressed results (Hit@5 0.732 β 0.598) β code retrieval needs a code-aware reranker (e.g. voyage:rerank-2.5), not an off-the-shelf one.
See benchmark/README.md for methodology and metric definitions.
See Installation Guide for platform-specific instructions.
Get your Voyage API key: voyageai.com (free tier available)
Octocode supports multiple embedding providers:
See API Keys guide for all supported providers.
Add to your MCP client config (Claude Desktop, Cursor, Windsurf):
Done! Your AI assistant now understands your codebase structure.
Factual signals from GitHub, npm, and our automated checks β not a rating.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/muvon-octocode)<a href="https://allmcps.com/mcp/muvon-octocode"><img src="https://allmcps.com/api/badge/muvon-octocode?style=directory" alt="Octocode on AllMCPs" /></a>