treesitter-mcp

Christoph/treesitter-mcp

3.2

If you are the rightful owner of treesitter-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.

Tree-sitter MCP Server is a powerful tool for code analysis across multiple programming languages, leveraging the Model Context Protocol (MCP) to provide AI assistants with advanced parsing and analysis capabilities.

Tools

Functions exposed to the LLM to take actions

parse_file

Parses a source file and returns the complete Abstract Syntax Tree (AST) in S-expression format.

file_shape

Extracts the high-level structure of a file without implementation details.

code_map

Generates a high-level overview of a directory or project with token budget awareness.

find_usages

Finds all usages of a symbol across files.

query_pattern

Executes a custom tree-sitter query pattern on a source file.

Prompts

Interactive templates invoked by user choice

No prompts

Resources

Contextual data attached and managed by the client

No resources