importlens-mcp gives coding agents import-aware context on Python repos

ilydragon · reddit · 2026-11-28

Reddit launch of importlens-mcp: an MCP server that parses a Python repo's imports into a dependency graph and feeds coding agents only the relevant files, cutting 24% of tokens in the author's benchmark. Aimed at developers using Claude Code, Cursor or other MCP clients on medium-to-large Python codebases. Compared to tools that send the whole tree or use embeddings, it relies on the real import graph — deterministic, offline, no API costs. Open source, pip install importlens-mcp.

Original post →

More from coding & agent

coding & agent channel →