MCP Servers / development / MCP Tree-sitter Server

MCP Tree-sitter Server

JSON →
httpnone305development

A server for code analysis using Tree-sitter, with context management capabilities.

Install
How to run this server
[ { "cmd": "pip install mcp-server-tree-sitter", "imports": [] } ]
server path: mcp-tree-sitter-server
Tools
What this server exposes
register_project_tool
Register a new project for analysis
list_projects_tool
List all registered projects
remove_project_tool
Remove a registered project
list_languages
List available programming languages
check_language_available
Check if a specific language is available
list_files
List files in a project
get_file
Get the content of a file
get_file_metadata
Get metadata of a file
get_ast
Get the AST of a file
get_node_at_position
Get the AST node at a specific position
find_text
Find text in code files
run_query
Run a Tree-sitter query on code
get_symbols
Extract symbols from code
find_usage
Find usages of a symbol
analyze_project
Analyze a project's structure and dependencies
get_dependencies
Get dependencies of a file or project
analyze_complexity
Analyze code complexity
get_query_template_tool
Get a query template
list_query_templates_tool
List available query templates
build_query
Build a Tree-sitter query
adapt_query
Adapt a query for a different language
get_node_types
Get node types for a language
find_similar_code
Find similar code patterns
clear_cache
Clear the cache
diagnose_config
Diagnose configuration issues
Configuration
Environment & auth
authnone
Resources
MCP Tree-sitter Server — MCP Server · libregistry