Tree-sitter MCP Server

Tree-sitter MCP server enabling AI agents to parse and analyze code using Tree-sitter's language-aware parser — generating syntax trees from source code, querying specific code constructs, extracting function and class definitions, and integrating structured code analysis into agent-driven code review and refactoring workflows across 40+ programming languages.

Evaluated Mar 06, 2026 (0d ago) vcurrent
Homepage ↗ Repo ↗ Developer Tools tree-sitter code-parsing ast mcp-server syntax-tree code-analysis
⚙ Agent Friendliness
79
/ 100
Can an agent use this?
🔒 Security
78
/ 100
Is it safe for agents?
⚡ Reliability
72
/ 100
Does it work consistently?

Score Breakdown

⚙ Agent Friendliness

MCP Quality
72
Documentation
72
Error Messages
70
Auth Simplicity
98
Rate Limits
95

🔒 Security

TLS Enforcement
80
Auth Strength
70
Scope Granularity
72
Dep. Hygiene
75
Secret Handling
92

Local parsing. No credentials. No network. Community MCP. Standard filesystem access.

⚡ Reliability

Uptime/SLA
78
Version Stability
70
Breaking Changes
68
Error Recovery
70
AF Security Reliability

Best When

An agent needs precise, language-aware code parsing across multiple languages — Tree-sitter provides fast, incremental parsing with pattern matching for 40+ languages.

Avoid When

You need runtime evaluation, semantic type analysis, or work only with languages lacking Tree-sitter grammars.

Use Cases

  • Parsing source code to extract function and class definitions from analysis agents
  • Querying code structure with Tree-sitter patterns from refactoring agents
  • Analyzing code complexity and structure from code review agents
  • Extracting code symbols for navigation from development agents
  • Language-aware code transformation from refactoring agents
  • Building precise code search tools from code intelligence agents

Not For

  • Runtime code execution (Tree-sitter is a parser, not a runtime)
  • Languages not supported by Tree-sitter (check supported language list)
  • Semantic analysis requiring type information (syntactic parsing only)

Interface

REST API
No
GraphQL
No
gRPC
No
MCP Server
Yes
SDK
No
Webhooks
No

Authentication

Methods: none
OAuth: No Scopes: No

No authentication — local parsing engine with Tree-sitter library. Language grammars must be available locally.

Pricing

Model: free
Free tier: Yes
Requires CC: No

Free open source MCP. Tree-sitter is free and open source. Language grammars may need to be installed separately.

Agent Metadata

Pagination
none
Idempotent
Full
Retry Guidance
Not documented

Known Gotchas

  • Tree-sitter grammar must be installed for each language — check supported languages
  • Tree-sitter query pattern syntax must be learned — not standard regex
  • Parsing is syntactic only — no semantic type information available
  • Community MCP from wrale — quality above average for code analysis tools
  • Large files may be slow to parse — consider chunking for very large codebases
  • Query patterns vary by language — generalize cautiously across language grammars

Alternatives

Full Evaluation Report

Detailed scoring breakdown, competitive positioning, security analysis, and improvement recommendations for Tree-sitter MCP Server.

$99

Scores are editorial opinions as of 2026-03-06.

5220
Packages Evaluated
26151
Need Evaluation
173
Need Re-evaluation
Community Powered