Dev.to
7/1/2026

The original title is: "I Made TS Compiler Graph MCP: 10x Fewer Tokens in Claude Code"
Original: I Made TS Compiler Graph MCP: 10x Fewer Tokens in Claude Code
Short summary
Developer created @ttsc/graph, an MCP tool that lets coding agents query a TypeScript compiler-built code graph instead of repeatedly grepping files. Compared to three similar tools, it reduces token usage by ~90% on structural questions (6% of baseline vs 22-27% overhead). Key insight: return only indexed metadata with verified file:line spans, never raw source bodies.
- •@ttsc/graph is an MCP tool that provides agents a compiler-built TypeScript code graph with function calls and dependencies mapped
- •Reduces token usage ~90% on code navigation questions vs competitor tools by eliminating unnecessary source code reads
- •Benchmarks on multiple repos show consistent token efficiency gains while maintaining answer quality
Generated with AI, which can make mistakes.
Is this a good recommendation for you?



