Tree Explorer
FreeNot checkedA lightweight MCP tool for directory tree visualization in Cursor, with smart filtering and customizable ignore/keep patterns.
About
A lightweight MCP tool for directory tree visualization in Cursor, with smart filtering and customizable ignore/keep patterns.
README
A lightweight MCP tool for directory tree visualization in Cursor.
Features
- Visualize directory structures with the
treecommand - Smart filtering of common large directories (node_modules, .git, etc.)
- Customizable ignore and keep patterns
- Automatic installation of the
treecommand if not available - Works on Windows, macOS, and Linux
Installation
# Using pip
pip install mcp-tree-explorer
# Using uv
uv pip install mcp-tree-explorer
Usage with Cursor
Configure Cursor to use this tool by editing your Cursor configuration file:
{
"tools": {
"mcp-tree-explorer": {
"command": "mcp-tree-explorer"
}
}
}
Tool Parameters
The project_tree tool accepts these parameters:
directory: The directory to examine (default: current directory)depth: Maximum depth of the tree (optional, unlimited if not specified)ignore: Additional patterns to ignore, comma-separated (optional)keep: Patterns to keep even if they match auto-ignore patterns, comma-separated (optional)
Example usage in Cursor:
- "Show me the directory structure of this project"
- "Run tree in the src directory but include node_modules"
- "Show me a tree of the project, ignoring test files but keeping the dist folder"
Development
# Clone the repository
git clone https://github.com/yourusername/mcp-tree-explorer.git
cd mcp-tree-explorer
# Install in development mode
uv pip install -e .
License
MIT
Installing Tree Explorer
This server has no published package — it is built from source. Open the repository and follow its README.
▸ github.com/carterlasalle/directory_structure_mcpFAQ
Is Tree Explorer MCP free?
Yes, Tree Explorer MCP is free — one-click install via Unyly at no cost.
Does Tree Explorer need an API key?
No, Tree Explorer runs without API keys or environment variables.
Is Tree Explorer hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Tree Explorer in Claude Desktop, Claude Code or Cursor?
Open Tree Explorer on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
GitHub
PRs, issues, code search, CI status
by GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
by mcpdotdirectAmap Maps Mcp Server
MCP server for using the AMap Maps API
by duxiaohuiSupabase
Database, auth and storage
by SupabaseEverything
Reference / test server with prompts, resources, and tools.
Git
Tools to read, search, and manipulate Git repositories.
Sequential Thinking
Dynamic and reflective problem-solving through thought sequences.
Time
Time and timezone conversion capabilities.
Compare Tree Explorer with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All development MCPs
