Parse code with Tree-sitter to analyze syntax trees and automate code workflows.
Copy the install command and let the AI configure it · recommended for beginners
No copy-paste install info for "mcp-server-tree-sitter" yet — see the docs or source repo.
Use this Tree-sitter MCP tool to parse the following TypeScript code and list the functions, classes, import statements, and their hierarchy in the syntax tree:
ts
import { readFile } from 'fs';
class UserService {
getUser(id: string) {
return readFile(id);
}
}
function main() {
const service = new UserService();
return service.getUser('1');
}
A structured syntax-tree summary showing imports, classes, methods, functions, and nesting relationships.
Use Tree-sitter to scan Python files in this project and extract all function names, parameter lists, file paths, and start/end line numbers, then organize them into a table.
A table of function definitions suitable for code review, refactoring, or documentation generation.
Using Tree-sitter, find all Promise calls inside JavaScript async functions that are not awaited, and provide the file, code snippet, and risk note for each case.
A list of matched code locations with syntax-pattern analysis to help identify potential async issues.
Parse and analyze code structure with Tree-sitter for understanding and automation.
Extract functions, classes, and snippets from code with precise line numbers.
Analyze, match, and transform code structures across multiple programming languages.
Connect to and parse Git repositories for search, understanding, and analysis.
Analyze project structure, read files, and understand codebases with context.
Analyze codebases with semantic search, dependency insights, and natural language Q&A.