octocode
View on GitHubStructural code intelligence for AI agents — semantic search, knowledge graphs, and a built-in MCP server in one Rust binary. Give Claude, Cursor, and any MCP client a deep understanding of your codebase.
Rust CLI and MCP server that indexes a codebase into embeddings and a tree-sitter AST knowledge graph, exposing semantic search, GraphRAG navigation, structural search, and optional LSP tools to Claude, Cursor, and other MCP clients. Local-first, Apache-2.0, with a reproducible retrieval benchmark.
Use Cases
Let Claude/Cursor query a codebase via MCPFind code by meaning instead of keywordsNavigate imports, calls, and dependency graphsView file signatures without reading whole filesAST pattern search for .unwrap() and similarGo-to-definition and find-references via LSPSearch commit history semanticallyBuild a local-first indexed code knowledge graphAnswer architecture questions about a repo
Built With
- Language
- Rust
- Frameworks
- Model Context Protocol · LanceDB · tree-sitter · Tokio · Arrow · fastembed · Hugging Face · rust-analyzer
Tags
mcp-server · semantic-search · code-intelligence · knowledge-graph · graphrag · rag · tree-sitter · lsp · embeddings · bm25 · hybrid-search · lancedb · rust · cli · code-search · ast