Codebase Context Dumper MCP Server

A Model Context Protocol server to dump your codebase into your LLM model

Local serverstdio

What is the Codebase Context Dumper MCP Server?

A Model Context Protocol server to dump your codebase into your LLM model

What the server does

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

  • 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

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
base_pathstring, required): The absolute path to the project directory to scan.
num_chunksinteger, optional, default: 1): The total number of chunks to divide the output into. Must be >= 1.
chunk_indexinteger, optional, default: 1): The 1-based index of the chunk to return. Requires num_chunks > 1 and chunk_index <= num_chunks.

How to install the Codebase Context Dumper MCP Server

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

From the project documentation. Replace placeholders and example paths before connecting.

Frequently asked questions

A Model Context Protocol server to dump your codebase into your LLM model Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.