Skip to content
Agents tracked: 440 Downloads (7d): 202M down 19.5% GitHub stars: 10.4M Releases (7d): 607 Agent status: all upSince last limit reset: Claude 28d · Codex 0d Updated Oct 21, 2026

tree-sitter

Python bindings for Tree-sitter parser library for syntax analysis and code transformation.

Linting and formatting PyPI MIT

Used in agent projects
26
1.6% of 1,622 Python repos built with AI coding agents
Gid Score
56 /100
#987 of 3,794 tools, #22 in linting and formatting · ranking
Rank in linting and formatting
#25 of 72
by use in those projects
Downloads
9.8M
PyPI, last 7 days, tree-sitter
GitHub stars
1,511
200 forks · last push Aug 30, 2026

How tree-sitter is used

tree-sitter is a dependency in 26 of the 6,208 public GitHub projects set up for AI coding agents that we scanned (1.6% of the 1,622 Python ones), #25 of 72 in linting and formatting. Counting the projects our scan samples by dependency (Solana 2,661, Ethereum and EVM 1,496, 3D and games 2,818, agent frameworks and SDKs 10,983), it appears in 158; those are left out of every share on this page. The most used alternative in our scan is Checkov (26 projects). Projects that use it most often also use Model Context Protocol SDK (Python) (80.8%), Pydantic (73.1%), FastAPI (57.7%).

tree-sitter popularity over time

Top tools by Gid Score

tree-sitter: downloads per weekPyPI, tree-sitter 9,727,433
tree-sitter: GitHub starstree-sitter/py-tree-sitter 1,511

Gid Score 56: downloads 85, use in agent projects 57, GitHub stars 18, downloads trend 51 (each 0-100). How it is calculated.

Often used with tree-sitter

Model Context Protocol SDK (Python)80.8% of tree-sitter projects · 10.1× more than average
Pydantic73.1% of tree-sitter projects · 8.5× more than average
FastAPI57.7% of tree-sitter projects · 7.7× more than average
PyYAML57.7% of tree-sitter projects · 9.7× more than average
Uvicorn57.7% of tree-sitter projects · 7.5× more than average
tree-sitter-typescript (Python)50.0% of tree-sitter projects · 238.8× more than average
python-dotenv46.2% of tree-sitter projects · 5.0× more than average
Tree-sitter JavaScript46.2% of tree-sitter projects · 238.8× more than average

By coding agent

Claude Code0.6% of projects set up for it
Cursor0.4% of projects set up for it
GitHub Copilot0.3% of projects set up for it

Share of public repos configured for each agent that list tree-sitter as a dependency.

Install

Packagepip install tree-sitter
Main stacksPython (26)
Example projectsbobmatnyc/claude-mpm, Consiliency/Code-Index-MCP, aanno/cocoindex-code-mcp-server, jagoff/memo, mimfort/rag_for_git

Alternatives to tree-sitter

All linting and formatting

Tools that do the same job, so a project picks one or the other. Add-ons and libraries used alongside tree-sitter are not listed here; they are in "Often used with".

Tool Gid Score Used in agent projectsDownloads / wk GitHub starsLicense
Checkov pypi
Static analysis tool for infrastructure-as-code to detect security and compliance issues.
51 26 (1.6%) 1.2M 9,084 Apache-2.0
Bandit pypi
Security-focused static analyzer for identifying vulnerabilities in Python code.
57 12 (0.7%) 6.5M 8,325 Apache-2.0
Pylint pypi
Python static code analyzer for detecting errors and style issues.
60 12 (0.7%) 9.1M 5,739 GPL-2.0-or-later

More in Linting and formatting: ESLint Prettier Biome oxlint oxfmt Knip stylelint ESLint Import Resolver TypeScript

Is tree-sitter right for your project? Ask AgentGid →