Best for
- AI coding agent users who want local codebase analysis through MCP.
- Developers who need symbol search, call graph queries, and change impact clues.
The supplied sources describe an MIT-licensed, stdio code analysis MCP with symbol navigation, search, indexing, health checks, and visualization features. The README documents capability boundaries and index state; cross-language binding and some snapshot capabilities have stated limits.
Strongest · Documentation 16/20 Weakest · Maintenance 9/20
Static review · not runReviewed 2026-12-03
Read the FMRS scoring method →Runtime:Python 3.10+
TREE_SITTER_PROJECT_ROOT
Absolute path of the project to analyze; set it to the project directory. If unset, the server uses its working directory.
Python 3.10+ and uv are required. In an MCP client configuration, use command uvx with args ["--from", "tree-sitter-analyzer[mcp]", "tree-sitter-analyzer-mcp"], and set TREE_SITTER_PROJECT_ROOT to the project's absolute path. After startup, build the index before querying its status.
{"mcpServers":{"tree-sitter-analyzer":{"command":"uvx","args":["--from","tree-sitter-analyzer[mcp]","tree-sitter-analyzer-mcp"],"env":{"TREE_SITTER_PROJECT_ROOT":"/absolute/path/to/your/project"}}}}
Shown for Claude Code. Other clients may use a different file or key (VS Code uses "servers") — the configurator below converts it.
{
"servers": {
"tree-sitter-analyzer": {
"command": "uvx",
"args": [
"--from",
"tree-sitter-analyzer[mcp]",
"tree-sitter-analyzer-mcp"
],
"env": {
"TREE_SITTER_PROJECT_ROOT": "/absolute/path/to/your/project"
}
}
}
}
Goes in your project's .vscode/mcp.json (VS Code uses a "servers" key).
[mcp_servers.tree-sitter-analyzer] command = "uvx" args = ["--from", "tree-sitter-analyzer[mcp]", "tree-sitter-analyzer-mcp"] [mcp_servers.tree-sitter-analyzer.env] TREE_SITTER_PROJECT_ROOT = "/absolute/path/to/your/project"
Append to ~/.codex/config.toml (OpenAI Codex CLI uses TOML).
claude mcp add tree-sitter-analyzer -e TREE_SITTER_PROJECT_ROOT=/absolute/path/to/your/project -- uvx --from 'tree-sitter-analyzer[mcp]' tree-sitter-analyzer-mcp
Run it in a terminal; replace any <…> placeholders with your own values first.
Restart the client and confirm that Tree-sitter Analyzer tools such as nav, search, and index appear in its tool list. Then call index with action=status; indexed: true indicates the index is available.
Once connected, you can ask your AI assistant things like:
No matching tools
Listed from the project's documentation, not tested by this site.
Tree-sitter Analyzer is an MCP server for code intelligence. It uses tree-sitter to support symbol search, call relationship queries, structural exploration, and project health assessment. The project describes support for 13 languages and gates cross-language call relationships by language family. Responses use JSON envelopes with verdicts. The server runs over stdio, and TREE_SITTER_PROJECT_ROOT can specify the project directory. The README says analysis is local and has no telemetry.
Connect code, docs, and infrastructure in a local knowledge graph.
Docker's official MCP gateway CLI plugin for managing and running MCP servers.
Fast, low-cost structured judgments for agents.
Local call graphs and structural analysis for Go repositories.
Source revision 7197e33e71e8 Data synced 2026-12-05 Read the FMRS scoring method Markdown