Fire in da houseTop Tip:Paying $100+ per month for Perplexity, MidJourney, Runway, ChatGPT and other tools is crazy - get all your AI tools in one site starting at $15 per month with Galaxy AI Fire in da houseCheck it out free

deep-directory-tree-mcp

MCP.Pizza Chef: andredezzy

Deep Directory Tree MCP is a powerful server implementation of the Model Context Protocol designed to visualize and analyze directory structures. It supports configurable depth-based tree generation and smart pattern-based exclusions, enabling AI assistants to efficiently understand and navigate complex project hierarchies. This enhances project organization insights and streamlines code navigation workflows in real time.

Use This MCP server To

Visualize project directory structures with configurable depth Exclude files/directories using smart pattern matching Enable AI assistants to navigate codebases efficiently Generate real-time updates of directory changes Analyze project organization for better insights Integrate with IDEs for enhanced project browsing Support large codebases with deep tree visualization

README

Deep Directory Tree MCP 🌳

Smithery Tool Calls NPM Version NPM Downloads

A powerful Model Context Protocol (MCP) implementation for visualizing and analyzing directory structures. Why? Now you can let AI assistants understand and navigate your project structure efficiently, enabling smarter code navigation and project organization insights.

Built with:

Features

  • Deep directory tree visualization
  • Configurable depth-based tree generation
  • Smart pattern-based file/directory exclusion
  • Clean and readable tree output format
  • Real-time directory structure updates
  • Targeted directory analysis

DEMO:

Cursor + Deep Directory Tree MCP Demo

Quick Start

Prerequisites

Smithery Installation

The easiest way to get started is using Smithery:

npx -y @smithery/cli install @andredezzy/deep-directory-tree-mcp --client cursor

Manual Installation

Cursor IDE Setup
  1. Open Cursor Settings → MCP → Add new MCP server

  2. Configure with these settings:

    {
      "deep-directory-tree": {
        "command": "npx",
        "args": ["-y", "@andredezzy/deep-directory-tree-mcp"]
      }
    }
Claude Desktop Setup

Add the following to your MCP configuration:

{
  "mcpServers": {
    "deep-directory-tree": {
      "command": "npx",
      "args": ["-y", "@andredezzy/deep-directory-tree-mcp"]
    }
  }
}

Usage

Common commands for AI assistants:

  • "Show me the directory structure"
  • "Visualize project tree up to depth 4"
  • "Show files excluding test directories"

Development

Prerequisites

# Clone the repository
git clone https://github.com/andredezzy/deep-directory-tree-mcp.git
cd deep-directory-tree-mcp

# Install dependencies
bun install

# Build the project
bun run build

Development Manual Installation

Cursor IDE Setup
  1. Open Cursor Settings → MCP → Add new MCP server

  2. Configure with these settings:

    {
      "deep-directory-tree": {
        "command": "node",
        "args": ["ABSOLUTE_PATH_TO_MCP_SERVER/bin/deep-directory-tree.js"]
      }
    }
Claude Desktop Setup

Add the following to your MCP configuration:

{
  "mcpServers": {
    "deep-directory-tree": {
      "command": "node",
      "args": ["ABSOLUTE_PATH_TO_MCP_SERVER/bin/deep-directory-tree.js"]
    }
  }
}

Contributing

  1. Fork the repository
  2. Create feature branch (git checkout -b feature/amazing-feature)
  3. Commit changes (git commit -m 'Add feature')
  4. Push to branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Support

Need help? Try these resources:

License

MIT License - see LICENSE file for details.

deep-directory-tree-mcp FAQ

How does Deep Directory Tree MCP handle large directories?
It uses configurable depth limits and smart exclusions to efficiently manage large directory trees without performance loss.
Can I customize which files or folders are excluded?
Yes, it supports pattern-based exclusions allowing you to tailor the directory view to your needs.
How does this MCP improve AI-assisted code navigation?
By providing structured, real-time directory context, it enables AI models to understand project layout and navigate code more intelligently.
Is Deep Directory Tree MCP compatible with multiple LLM providers?
Yes, it works with various LLMs including OpenAI, Anthropic Claude, and Google Gemini.
Does it provide real-time updates when the directory changes?
Yes, it supports real-time updates to keep the directory tree current during development.
How can I integrate this MCP into my development environment?
It can be integrated with IDEs and other MCP hosts that support server connections, enhancing project navigation workflows.
What programming languages or project types does it support?
It is language-agnostic and works with any project structure represented as a directory tree.