codebase-context-dumper MCP Server

codebase-context-dumper MCP Server

lex-tools-codebase-context-dumper•bylex-tools

A Model Context Protocol (MCP) server designed to easily dump your codebase context into Large Language Models (LLMs).

License: Apache License 2.0•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Recursively reads text files from a specified directory, respects .gitignore rules, and skips binary files.
  • •Concatenates file contents with file path headers and footers, producing a single string with clear per-file markers.
  • •Supports chunking the output so a codebase larger than an LLM context window can be handled in parts.
  • •Provides the dump_codebase_context tool, which scans the absolute project path supplied in base_path.

BEST FOR

  • •Preparing a codebase's text files for inclusion in an LLM prompt without manually selecting and formatting each file.
  • •Splitting a large project into requested chunks when the whole codebase exceeds the LLM context window.
  • •Supplying codebase context to MCP-compatible clients through a tool call.

ABOUT LEX-TOOLS-CODEBASE-CONTEXT-DUMPER

codebase-context-dumper MCP Server is cataloged as an MCP server attributed to lex-tools. A Model Context Protocol (MCP) server designed to easily dump your codebase context into Large Language Models (LLMs). It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Apache License 2.0. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for codebase-context-dumper MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

What does the dump_codebase_context tool do?

It recursively reads text files from a specified directory, respects .gitignore rules, skips binary files, and concatenates content with file path headers and footers.

How does the server handle codebases larger than the LLM context window?

It supports chunking the output for large codebases, with parameters for the total number of chunks and the 1-based index of the chunk to return.

Does the server respect .gitignore rules?

Yes; it respects .gitignore files at all levels, including nested ones and .git by default.

Upstream README

View this exact version on GitHub

README.md · 735e0b2073de · Fetched 2026-11-13 08:14:48 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

MseeP.ai Security Assessment Badge

codebase-context-dumper MCP Server

smithery badge npm version License: Apache-2.0

A Model Context Protocol (MCP) server designed to easily dump your codebase context into Large Language Models (LLMs).

@lex-tools/codebase-context-dumper MCP server

Why Use This?

Large context windows in LLMs are powerful, but manually selecting and formatting files from a large codebase is tedious. This tool automates the process by:

  • Recursively scanning your project directory.
  • Including text files from the specified directory tree that are not excluded by .gitignore rules.
  • Automatically skipping binary files.
  • Concatenating the content with clear file path markers.
  • Supporting chunking to handle codebases larger than the LLM's context window.
  • Integrating seamlessly with MCP-compatible clients.

The easiest way to use this tool is via npx, which runs the latest version without needing a local installation.

Configure your MCP client (e.g., Claude Desktop, VS Code extensions) to use the following command:

{
  "mcpServers": {
    "codebase-context-dumper": {
      "command": "npx",
      "args": [
        "-y",
        "@lex-tools/codebase-context-dumper"
      ]
    }
  }
}

The MCP client will then be able to invoke the dump_codebase_context tool provided by this server.

Features & Tool Details

Tool: dump_codebase_context

Recursively reads text files from a specified directory, respecting .gitignore rules and skipping binary files. Concatenates content with file path headers/footers. Supports chunking the output for large codebases.

Functionality:

  • Scans the directory provided in base_path.
  • Respects .gitignore files at all levels (including nested ones and .git by default).
  • Detects and skips binary files.
  • Reads the content of each valid text file.
  • Prepends a header (--- START: relative/path/to/file ---) and appends a footer (--- END: relative/path/to/file ---) to each file's content.
  • Concatenates all processed file contents into a single string.

Input Parameters:

  • base_path (string, required): The absolute path to the project directory to scan.
  • num_chunks (integer, optional, default: 1): The total number of chunks to divide the output into. Must be >= 1.
  • chunk_index (integer, optional, default: 1): The 1-based index of the chunk to return. Requires num_chunks > 1 and chunk_index <= num_chunks.

Output: Returns the concatenated (and potentially chunked) text content.

Local Installation & Usage (Advanced)

If you prefer to run a local version (e.g., for development):

  1. Clone the repository:
    git clone git@github.com:lex-tools/codebase-context-dumper.git
    cd codebase-context-dumper
    
  2. Install dependencies:
    npm install
    
  3. Build the server:
    npm run build
    
  4. Configure your MCP client to point to the local build output:
    {
      "mcpServers": {
        "codebase-context-dumper": {
          "command": "/path/to/your/local/codebase-context-dumper/build/index.js" // Adjust path
        }
      }
    }
    

Contributing

Contributions are welcome! Please see CONTRIBUTING.md for details on development, debugging, and releasing new versions.

License

This project is licensed under the Apache License 2.0. See the LICENSE file for details.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for codebase-context-dumper MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/lex-tools-codebase-context-dumper)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools