importlens-mcp: import-graph MCP server cuts coding agent tokens by ~24%
ilydragon · reddit · 2026-11-28
A new open-source MCP server, importlens-mcp, parses a Python repo's imports into a dependency graph so coding agents read only task-relevant files — about 24% token savings in the author's benchmark. Exposes three tools (projectmap, relevantfiles, filecontext). Unlike tree-dumping or embedding-based context tools, it is deterministic, offline, and free of API costs. Works with Claude Code, Cursor and other MCP clients; install via pip install importlens-mcp.
More from coding & agent
- Musk: the goal with Grok Bots is to let you build a whole company — elonmusk · 2026-11-28
- Dev reverse-engineers NVIDIA driver, claims it deliberately nefts old GPUs to force upgrades — QuixiAI · 2026-11-28
- 8 tricks to make a Grok Bot weekly usage pool last 3x longer, retweeted by Musk — elonmusk · 2026-11-28
- Antigravity desktop's low compaction threshold causes Neon hallucinations—CLI fix inside — dotey · 2026-11-28
- importlens-mcp gives coding agents import-aware context on Python repos — ilydragon · 2026-11-28
- Musk endorses Grok Bot as the first autonomous agent he's kept using for months — elonmusk · 2026-11-28