AITree MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@AITree MCP ServerGenerate a file tree of the current project"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
AITree
Project file map generator for AI-assisted development.
Scans a directory and prints a clean, annotated tree that you can paste directly into any AI chat. Instead of uploading your entire codebase, share the map first — then only send the files the AI actually asks for.
Live Demo: paracci.github.io/aitree
webapp/
├── src/
│ ├── components/
│ │ ├── Header.jsx [4KB]
│ │ └── Footer.jsx [2KB]
│ ├── App.jsx [8KB]
│ └── index.js [1KB]
├── public/
│ └── index.html [3KB]
└── package.json [1KB]
# 2 directories, 6 files (18KB total)
#
# File types:
# .jsx 3 ███
# .js 1 █
# .html 1 █
# .json 1 █Installation
Via pip (recommended):
pip install paracci-aitreeOne-liner (Linux / macOS):
curl -fsSL https://raw.githubusercontent.com/paracci/aitree/main/install.sh | bashOne-liner (Windows PowerShell):
irm https://raw.githubusercontent.com/paracci/aitree/main/install.ps1 | iexFrom source:
git clone https://github.com/paracci/aitree.git
cd aitree
pip install .Optional dependencies — install only what you need:
pip install "paracci-aitree[live]" # --live mode (watchdog)
pip install "paracci-aitree[tokens]" # --tokens (tiktoken)
pip install "paracci-aitree[git]" # --git-changed (gitpython)
pip install "paracci-aitree[mcp]" # MCP server (mcp)
pip install "paracci-aitree[all]" # everything + clipboard (pyperclip)Related MCP server: Git Workflow MCP Server
Usage
aitree [path] [options]path defaults to the current directory if omitted.
Output modes
Flag | Description |
(none) | Print tree to stdout |
| Save to |
| Copy output to clipboard |
| Watch for changes and auto-update the saved file |
| Launch the web UI in your browser |
Output formats
Flag | Description |
| Plain text with |
| Structured JSON with tree + stats + meta |
| Markdown with fenced code block + stats table |
Filtering
Flag | Description |
| Limit tree depth (e.g. |
| Show only matching files (repeatable) |
| Hide matching files (repeatable) |
| Skip |
| Show only git-changed / untracked files |
Extras
Flag | Description |
| Append estimated token count to output |
| Show version and exit |
Examples
aitree . # current directory → stdout
aitree ~/projects/webapp # specific path → stdout
aitree . --save # save to _aitree.txt
aitree . --copy # copy to clipboard
aitree . --depth 2 # top 2 levels only
aitree . --include "*.py" # Python files only
aitree . --include "*.py" --include "*.js" # multiple patterns
aitree . --exclude "*.test.*" # hide test files
aitree . --git-changed # only modified/untracked files
aitree . --format json --save # save as _aitree.json
aitree . --format markdown --save # save as _aitree.md
aitree . --tokens # append token count
aitree . --live # watch for changes
aitree . --live --depth 2 --git-changed # live + depth + git filter
aitree . --serve # open web UI
aitree . --serve --port 8080 # web UI on a custom portAI workflow
1. aitree . --copy
2. Paste into your AI chat
3. Ask "Which files do you need?"
4. Send only those filesWeb UI
--serve launches a local web server and opens a professional, interactive explorer in your browser.
Real-time Search: Instant tree filtering with match highlighting.
Syntax Highlighting: Auto-detection for 30+ languages (via highlight.js).
Themes: Switch between Dark (Tokyo Night) and Light (GitHub) modes.
File Preview: Click any file to see content with line numbers and word-wrap.
Interactive Tree: Fast collapse/expand, depth control, and file-type icons.
Live Reload: UI auto-refreshes when your project files change.
Responsive Layout: Resizable sidebar and mobile-friendly design.
aitree . --serve
aitree . --serve --port 8080MCP Server
AITree ships a Model Context Protocol server so AI assistants (Claude Desktop, etc.) can call it as a tool.
# Install MCP dependency
pip install "paracci-aitree[mcp]"
# Start the server
aitree-mcpAvailable tools
Tool | Description |
| Generate a file tree for a local path or GitHub URL |
| Return structured JSON statistics for a path |
| List git-changed / untracked files |
| Read the contents of a file inside the project |
aitree_read_file lets an AI assistant fetch any file it spotted in the tree — without leaving the conversation:
aitree_get_tree(path=".", format="text")
aitree_read_file(path=".", file="src/auth/login.py")Claude Desktop config (claude_desktop_config.json)
{
"mcpServers": {
"aitree": {
"command": "aitree-mcp"
}
}
}GitHub URL support
Pass a GitHub repository URL instead of a local path:
aitree https://github.com/owner/repo
aitree https://github.com/owner/repo --depth 2
aitree https://github.com/owner/private-repo --token ghp_xxxxWorks entirely via the GitHub API — no cloning required.
Custom ignore rules
Create .aitreeignore in your project root — same syntax as .gitignore:
# .aitreeignore
*.secret
config/local.json
private/AITree reads .aitreeignore first, then .gitignore. Use --no-gitignore to skip both.
What gets ignored by default
Category | Examples |
VCS & editors |
|
Dependencies |
|
Build output |
|
Cache |
|
Binary & temp |
|
OS files |
|
Live mode
--live watches the directory with watchdog and regenerates the output file whenever the structure actually changes. False positives (editor auto-saves, antivirus touches, etc.) are filtered out via content hashing and a 1-second debounce.
🟢 AITree LIVE — Watching: /home/user/projects/webapp [depth=2, git-changed]
Updates trigger only on real changes.
Press Ctrl+C to stop.
[14:32:10] Updated — initial snapshot
[14:33:05] Updated — filesystem change (3 false events skipped)Combines with any filter flag: --depth, --include, --exclude, --git-changed.
Platform support
Platform | Tested |
Linux | ✅ |
macOS | ✅ |
Windows | ✅ |
WSL | ✅ |
Requires Python 3.10+.
License
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceEnables AI assistants to analyze GitHub repository structures and read file contents with features like directory traversal, file type analysis, syntax highlighting, and code pattern detection. Supports both public and private repositories through GitHub API integration.11Apache 2.0
- Flicense-quality-maintenanceEnables AI assistants to interact with local Git repositories for operations like status, commits, branching, and diffs, plus GitHub API integration for managing pull requests when authenticated.
- Flicense-qualityDmaintenanceEnables AI assistants to read, search, and analyze local file systems with tools for reading file contents, listing directories, searching by patterns, and analyzing folder structures for context-aware queries.
- Alicense-qualityDmaintenanceEnables AI assistants to manage project analysis, code metrics, documentation, Git operations, code quality, and file organization through natural language commands.72MIT
Related MCP Connectors
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
Connect AI assistants to your GitHub-hosted Obsidian vault to seamlessly access, search, and analy…
Give your AI agent a persistent map of your project's structure, dependencies, and bugs.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Paracci/aitree'
If you have feedback or need assistance with the MCP directory API, please join our Discord server