TokenScope is a Model Context Protocol (MCP) server designed to enhance the ability of Large Language Models (LLMs) like Claude to understand and navigate codebases. It provides intelligent directory structure analysis, token-aware file content exploration, and comprehensive report generation, ensuring that LLMs can effectively glean insights from code repositories while respecting token limits. By offering functionalities such as automatic directory summarization, smart filtering with `.gitignore` support, and accurate directory statistics, TokenScope helps LLMs focus on relevant information and avoid token waste on irrelevant files and directories.