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.

Original post →

More from coding & agent

coding & agent channel →