Skip to main content
Glama

mcp-tldr

MCP server that exposes https://github.com/parcadei/llm-tldr code analysis tools to Claude Code (or any MCP client).

Prerequisites

Related MCP server: solograph

Setup

git clone https://github.com/YOUR_USER/mcp-tldr.git
cd mcp-tldr
python3 -m venv .venv
.venv/bin/pip install -e .

Add to Claude Code

Add this to your ~/.claude.json under mcpServers:

{
  "mcpServers": {
    "tldr": {
      "type": "stdio",
      "command": "/absolute/path/to/mcp-tldr/.venv/bin/python",
      "args": ["server.py"],
      "cwd": "/absolute/path/to/mcp-tldr"
    }
  }
}

Replace /absolute/path/to/mcp-tldr with the actual path where you cloned the repo.

Alternatively, if tldr is not in your PATH, set the TLDR_BIN environment variable:

{
  "tldr": {
    "type": "stdio",
    "command": "/absolute/path/to/mcp-tldr/.venv/bin/python",
    "args": ["server.py"],
    "cwd": "/absolute/path/to/mcp-tldr",
    "env": {
      "TLDR_BIN": "/path/to/tldr"
    }
  }
}

Available Tools

Tool

Description

tldr_tree

File tree of a project

tldr_structure

Code structure (classes, functions, imports)

tldr_context

LLM-ready context for a function/class

tldr_search

Pattern search across files

tldr_impact

Find all callers of a function

tldr_calls

Cross-file call graph

tldr_semantic

Natural language code search

tldr_arch

Detect architectural layers

tldr_warm

Pre-build cache for faster queries

tldr_extract

Full file analysis (classes, functions, methods)

tldr_cfg

Control flow graph for a function

tldr_dfg

Data flow graph for a function

tldr_slice

Program slice (what affects line X)

tldr_dead

Find unreachable/dead code

tldr_imports

Parse imports from a file

tldr_importers

Find all files importing a module

tldr_change_impact

Find tests affected by changes

tldr_diagnostics

Type-check and lint diagnostics

Usage

After setup, restart Claude Code. The tools will be available automatically. Example prompts:

  • "Use tldr_tree to show the structure of this project"

  • "Use tldr_context to explain the handleAuth function"

  • "Use tldr_impact to see what calls processPayment"

Available Tools

18 tools
tldr_archB

Detect architectural layers from call patterns. Shows high-level architecture of the project.

Inputs: path (required).

tldr_callsA

Build cross-file call graph starting from a function.

Inputs: path (required), symbol (required).

tldr_cfgB

Control flow graph for a function. Shows branches, loops, and execution paths.

Inputs: file (required), function (required), lang.

tldr_change_impactA

Find tests affected by changed files. Use before committing to know what to test.

Inputs: git, lang, depth, files, +1 more.

tldr_contextA

Get LLM-ready context for a function/class. Use INSTEAD of reading large files. Returns only relevant code.

Inputs: symbol (required), project (required).

tldr_deadC

Find unreachable (dead) code in a project. Useful for cleanup and refactoring.

Inputs: path (required), lang, entry.

tldr_dfgB

Data flow graph for a function. Shows how data moves through variables and expressions.

Inputs: file (required), function (required), lang.

tldr_diagnosticsC

Get type-check and lint diagnostics for a file or project. Use to find errors without running the code.

Inputs: target (required), lang, no_lint, project.

tldr_extractA

Extract full file analysis (classes, functions, methods, imports). Use to deeply understand a single file.

Inputs: file (required), class_filter, method_filter, function_filter.

tldr_impactA

Find all callers of a function (reverse call graph). Use to understand what breaks if you change a function.

Inputs: path (required), symbol (required).

tldr_importersB

Find all files that import a module (reverse import lookup). Use to understand module usage across the project.

Inputs: path (required), module (required), lang.

tldr_importsC

Parse imports from a source file. Shows all dependencies of a file.

Inputs: file (required), lang.

tldr_semanticA

Semantic code search using natural language. Use for conceptual searches like 'authentication logic' or 'payment handling'.

Inputs: path (required), query (required).

tldr_sliceA

Program slice: find all lines that affect a specific line. Use to understand what influences a value or statement.

Inputs: file (required), line (required), function (required), var, +1 more.

tldr_structureB

Show code structure (classes, functions, imports) for a project. Use instead of reading files to understand structure.

Inputs: path (required), lang.

tldr_treeA

Show file tree of a project directory. Use instead of ls/find.

Inputs: path (required).

tldr_warmA

Pre-build call graph cache for faster queries. Run once per project before using other tldr tools.

Inputs: path (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.8/5.0

    Scored across 18 tools

    Disambiguation5/5

    Each tool has a clearly distinct and well-defined purpose, from architecture detection to semantic search. There is no overlap or ambiguity; even related tools like tldr_calls and tldr_impact are differentiated by directionality.

    Naming Consistency5/5

    All tools follow a consistent pattern: the prefix 'tldr_' followed by a snake_case name (e.g., tldr_change_impact). The naming convention is uniform and predictable.

    Tool Count5/5

    With 18 tools, the server covers a broad range of static analysis features without being overwhelming. Each tool serves a specific purpose, and the count is well-suited for a comprehensive code understanding toolset.

    Completeness5/5

    The tool set is remarkably thorough, covering file tree, structure, imports, call graphs, control and data flow, diagnostics, search, dead code, and more. There are no obvious gaps for the domain of code analysis and comprehension.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Standalone MCP server for code structure analysis using tree-sitter. Directory trees, symbol definitions, and call graphs without reading raw source files. Supports Rust, Python, Go, Java, TypeScript, Fortran, JavaScript, C/C++, and C#. Benchmarked up to 68% fewer tokens vs native tools.
      7
      Apache 2.0
    • A
      license
      A
      quality
      B
      maintenance
      Code intelligence MCP server for Claude Code providing multi-project code graph, semantic search, session history, knowledge base, and web search.
      15
      4
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      MCP server that analyzes codebases to provide dependency graphs, impact analysis, and file insights across 15+ programming languages, enabling AI assistants to understand project structure and navigate code efficiently.
      MIT