Back to Home
pwno-io icon

treesitter-mcp

Verified Safe

by pwno-io

Overview

Provides a Model Context Protocol (MCP) server and CLI for static code analysis using Tree-sitter.

Installation

Run Command
treesitter-mcp

Security Notes

The `treesitter_run_query` tool allows executing arbitrary Tree-sitter queries provided by the user. While Tree-sitter queries do not allow arbitrary code execution, a complex or resource-intensive query could potentially be used for a Denial-of-Service (DoS) attack by consuming excessive CPU or memory. File path handling for input and output files uses standard Python `os.path` functions (`abspath`, `expanduser`) and writes results to specified `output_file` paths, potentially overwriting existing files. No explicit hardcoded secrets or malicious patterns were found.

Similar Servers

Stats

Interest Score45
Security Score8
Cost ClassHigh
Avg Tokens10000
Stars16
Forks1
Last Update2026-01-14

Tags

Tree-sitterCode AnalysisMCP ServerASTStatic Analysis