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:
- 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:
- Node.js (v18 or higher)
The easiest way to get started is using Smithery:
npx -y @smithery/cli install @andredezzy/deep-directory-tree-mcp --client cursor
-
Open Cursor Settings → MCP → Add new MCP server
-
Configure with these settings:
{ "deep-directory-tree": { "command": "npx", "args": ["-y", "@andredezzy/deep-directory-tree-mcp"] } }
Add the following to your MCP configuration:
{
"mcpServers": {
"deep-directory-tree": {
"command": "npx",
"args": ["-y", "@andredezzy/deep-directory-tree-mcp"]
}
}
}
Common commands for AI assistants:
- "Show me the directory structure"
- "Visualize project tree up to depth 4"
- "Show files excluding test directories"
- Bun Runtime (required)
# 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
-
Open Cursor Settings → MCP → Add new MCP server
-
Configure with these settings:
{ "deep-directory-tree": { "command": "node", "args": ["ABSOLUTE_PATH_TO_MCP_SERVER/bin/deep-directory-tree.js"] } }
Add the following to your MCP configuration:
{
"mcpServers": {
"deep-directory-tree": {
"command": "node",
"args": ["ABSOLUTE_PATH_TO_MCP_SERVER/bin/deep-directory-tree.js"]
}
}
}
- Fork the repository
- Create feature branch (
git checkout -b feature/amazing-feature
) - Commit changes (
git commit -m 'Add feature'
) - Push to branch (
git push origin feature/amazing-feature
) - Open a Pull Request
Need help? Try these resources:
MIT License - see LICENSE file for details.