v2.0 -- Now with 7 languages

Stop paying Claude
to reread your codebase.

LoomMCP is the context compiler for AI coding agents. It indexes your codebase once and delivers exact symbol retrieval instead of dumping entire files.

97%
Token reduction
17
MCP tools
7
Languages
MIT
Open source

Works with Claude Code, Cursor, VS Code, Codex, OpenCode, and any MCP client.

Traditional AI Context

Reads entire files. Wastes tokens.

  • auth.ts
  • middleware.ts
  • db.ts
  • utils.ts
  • types.ts
  • +200 more files
1 import jwt from "jsonwebtoken" 2 import { User } from "./types" 3 4 export async function loginUser(){ 5 const user = await db.find(...) 6 const valid = await bcrypt(...) 7 if(!valid) throw new Error(...) 8 const token = jwt.sign(...) 9 return user 10 } ...
200,482 tokens18.4s to process
LoomMCP Exact Retrieval

Gets exact symbols. Saves 97%.

search_symbol( "loginUser" )
  • Exact match found
  • Dependencies resolved
  • Context compiled
  • Ready for AI
210 export async function loginUser( 211 email: string, 212 password: string 213 ): Promise<User> { 214 const user = await db.user.find... 215 const valid = await bcrypt... 216 if(!valid) throw new Error... 217 const token = jwt.sign(...) 218 return user 219 } ...
5,427 tokens0.42s to process
How it works

Three steps to 97% fewer tokens.

1 Index Once

We parse and index your codebase into a symbol database. Fast. Local. Private.

2 Retrieve Precisely

Agents search exact symbols, references, and relationships instead of reading entire files.

3 Save Forever

Cross-session memory remembers what was learned. No repetitive context. Massive savings.

Core features

Everything your AI agent needs.

Cross-session memory

Remembers context across sessions and projects.

Task-aware compression

Different modes for debug, explore, build, and review.

Live dashboard

Real-time token savings and usage analytics.

Session replay

Replay and debug agent sessions step-by-step.

Hybrid search

Semantic + lexical search for best results.

Dependency graph

Visualize relationships between files and symbols.

Blast radius

Understand impact before you change anything.

Production ready

Logging, health checks, configurable, and secure.

Live Dashboard

See every token saved, in real time.

LoomMCP ships with a full observability dashboard at localhost:2337. Track token savings, focused files, tool call history, and live events — all persisted across sessions.

Live — 65% tokens saved

Token Savings

Real baseline vs compressed token counts. Persisted across sessions.

Active Lens

Which files Claude is currently focused on, with line and token counts.

Live Events

Real-time SSE stream of every MCP tool call as it happens.

Session History

Browse past sessions, tool call breakdowns, and token totals.

Get Topology page
Step 01 — Index

Index your codebase in one call.

The Topology page shows the last AST skeleton Claude fetched. Every function signature, class, and type — compressed to TOON format. 97% fewer tokens than raw files.

loom_get_topology("src/")
97% token reduction
< 20ms index latency
Active Lens page
Step 02 — Focus

Focus only what Claude needs right now.

The Active Lens tracks every file Claude has focused into context. See exact token counts per file, dependency depth, and how much of your 20-file budget is used.

loom_focus("src/auth.ts::loginUser")
20 max files in lens
O(1) byte-offset retrieval
Settings page
Step 03 — Configure

Configure once. Works across every session.

Set your workspace root, focus budget, max topology depth, and auto-refresh behaviour. All settings persist and take effect immediately — no restart required.

52 MCP tools
:2337 dashboard port
Real example

Fixing an auth bug — end to end

Here's exactly what happens in the dashboard when Claude uses LoomMCP to diagnose and fix a login bug in a 40,000-token TypeScript codebase.

1
Claude calls loom_get_topology("src/")

LoomMCP scans all TypeScript files, generates TOON skeletons (function signatures only), and returns them in ~16ms. Dashboard records: raw 54,932 tokens → 1,456 TOON tokens.

token_reduction: 97% · latency_ms: 16
✓ Dashboard: Files Indexed +16, Tokens Saved +53,476
2
Claude spots loginUser in the skeleton, calls loom_focus("src/auth.ts::loginUser")

Only the exact function body is paged in — 42 lines, 1,204 tokens. The other 2,038 lines of auth.ts stay out of context.

focused: src/auth.ts::loginUser · lines: 42 · token_estimate: 1204
✓ Dashboard: Active Lens 1/20 · Focus Budget 5%
3
Claude calls loom_search_refs("loginUser") to find all callers

AST-aware reference search finds 14 call sites across 8 files in milliseconds — no grep, no file reads.

symbol: loginUser · refs: 14 · scope: workspace
✓ Dashboard: Events feed shows loom_search_refs · 44ms
4
Claude edits the file and calls loom_get_active_diff()

The diff is compressed and scoped to only changed symbols. The dashboard Diff page shows the exact additions and deletions without noise.

files_changed: 1 · additions: 3 · deletions: 1
✓ Dashboard: Total session savings: 40,616 tokens (66%)
Tooling

17 MCP tools in one server.

Includes topology, symbol search, symbol fetch, importers, blast radius, references, active diff, blur, hybrid search, memory, compression, diff compression, dependencies, metrics, and sessions.

Benchmark results

Proven with tiktoken (cl100k_base).

Measured using the same methodology as jCodeMunch — tiktoken cl100k_base encoding.

Repository Files Raw Tokens TOON Tokens Reduction
loommcp (self) 33 54,932 1,456 97%
eval/fixtures/large_oss 4 6,413 108 98%
eval/fixtures/medium_webapp 3 3,318 69 98%
eval/fixtures/small_api 3 1,013 23 98%

Average token reduction: 97% (tiktoken cl100k_base)

Run: npm run build && node eval/benchmark.js . --json

Trusted by developers

"LoomMCP cut our Claude bill by 97%."

SCSarah Chen, Staff Engineer

"The cross-session memory is incredible."

MJMike Johnson, Tech Lead

"Finally, an MCP server that just works."

ARAlex Rivera, Developer Experience

Your AI should understand your codebase once.

Join thousands of developers saving millions of tokens every day.

Install LoomMCP Free
Open source. MIT licensed. Free forever.