
MCP Tree-sitter Server
Supports UIby wrale
Code analysis capabilities using tree-sitter for intelligent AI access to codebases with AST-based understanding.
What it does
Connects AI assistants to the power of Tree-sitter, allowing them to analyze codebases with structural awareness rather than just text search. It provides a way for AI to understand the abstract syntax tree (AST) of a project, enabling more precise code navigation and analysis.
Tools
register_project_tool: Registers a project path for analysis.get_ast: Retrieves the syntax tree for a specific file.get_symbols: Extracts functions, classes, and other code symbols.find_text: Performs text-based search across the project.run_query: Executes Tree-sitter queries to find specific code patterns.analyze_complexity: Analyzes the complexity of a given file.
Installation
Add the following to your claude_desktop_config.json:
{
"mcpServers": {
"tree_sitter": {
"command": "uvx",
"args": [
"--directory", "/ABSOLUTE/PATH/TO/YOUR/PROJECT",
"mcp-server-tree-sitter"
]
}
}
}
Supported hosts
- Claude Desktop
Quick install
pip install mcp-server-tree-sitterInformation
- Pricing
- free
- Published
- 4/25/2026
- stars






