mcp-server-tree-sitter and tree-sitter-analyzer

The tools are complements: the Tree-sitter analyzer is a code analysis framework that can be used with the MCP Server for Tree-sitter, which provides an efficient server implementation for Tree-sitter parsers.

mcp-server-tree-sitter
62
Established
tree-sitter-analyzer
59
Established
Maintenance 2/25
Adoption 18/25
Maturity 25/25
Community 17/25
Maintenance 13/25
Adoption 13/25
Maturity 18/25
Community 15/25
Stars: 272
Forks: 35
Downloads: 1,978
Commits (30d): 0
Language: Python
License: MIT
Stars: 24
Forks: 5
Downloads: 1,392
Commits (30d): 0
Language: Python
License: MIT
Stale 6m
No risk flags

About mcp-server-tree-sitter

wrale/mcp-server-tree-sitter

MCP Server for Tree-sitter

Exposes AST-based code analysis through MCP with support for 11+ languages via tree-sitter parsers, enabling AI assistants to efficiently explore codebases with granular control over context depth. Implements parse tree caching, symbol extraction, and dependency analysis while maintaining state persistence across invocations. Integrates directly with Claude Desktop through stdio transport and provides optional tree-sitter query support for pattern-based code searches.

About tree-sitter-analyzer

aimasteracc/tree-sitter-analyzer

A scalable, multi-language code analysis framework based on Tree-sitter, usable both as a CLI tool and an MCP server.

Combines tree-sitter's syntax parsing with `fd` and `ripgrep` for evidence-based symbol discovery, enabling minimal-context retrieval that reduces AI prompt tokens by up to 95%. Implements the SMART workflow (Set-Map-Analyze-Retrieve-Trace) to surface relevant code regions without full repository indexing, making it practical for messy or legacy codebases. Exposes MCP protocol tools for Claude, Cursor, and other AI assistants while maintaining project boundary security.

Scores updated daily from GitHub, PyPI, and npm data. How scores work