| title | Introduction |
|---|---|
| description | Semantic code search + knowledge graph as an MCP plugin for Claude Code |
VecGrep is a semantic code search and knowledge graph tool that works as an MCP (Model Context Protocol) plugin for Claude Code.
Instead of grepping 50 files and sending 30,000 tokens to Claude, VecGrep returns only what's relevant:
| Mode | Avg tokens | vs raw files | Latency |
|---|---|---|---|
| Raw file read | 26,009 | — | — |
search_code |
~3,007 | −88% | ~83ms |
hybrid_search |
~3,324 | −87% | ~76ms |
search_graph |
~47 | −99.8% | ~3ms |
Incremental re-indexing via mtime/size checks skips unchanged files.
| Query type | Tool |
|---|---|
| Semantic / behaviour ("how does authentication work") | search_code |
| Structural / navigation ("where is class X defined", "what calls Y") | search_graph |
| Both semantic and structural context needed | hybrid_search |
| Explore call graph or inheritance | graph_neighbors |