MCP Server for Tree-sitter
- ✓Open-source license (MIT)
- ✓Actively maintained (<30d)
- ✓Documented (README)
claude mcp add tree-sitter -- npx -y tree-sitter-mcp-server{
"mcpServers": {
"tree-sitter": {
"command": "npx",
"args": ["-y", "tree-sitter-mcp-server"]
}
}
}MCP Servers overview
# Tree-sitter MCP Server
An [MCP](https://modelcontextprotocol.io) server that shows coding agents the
[Tree-sitter](https://tree-sitter.github.io) syntax tree of a code snippet, so they can check node kinds, field names,
and positions before writing Tree-sitter queries or code that walks a syntax tree.
## Installation
Claude Code:
```shell
claude mcp add tree-sitter -- npx -y tree-sitter-mcp-server
```
Codex:
```shell
codex mcp add tree-sitter -- npx -y tree-sitter-mcp-server
```
Other clients:
```json
{
"mcpServers": {
"tree-sitter": {
"command": "npx",
"args": ["-y", "tree-sitter-mcp-server"]
}
}
}
```
`npx` needs Node.js. Without it, install the binary with `cargo install --locked tree-sitter-mcp-server` or download
it from the [releases](https://github.com/joowani/tree-sitter-mcp-server/releases), and use `tree-sitter-mcp-server` as
the command.
Clients that browse the [MCP Registry](https://registry.modelcontextprotocol.io), such as VS Code, can also install it
from there.
mcp-name: io.github.joowani/tree-sitter-mcp-server
## Supported Languages
`c`, `cpp`, `csharp`, `go`, `graphql`, `hcl`, `java`, `javascript`, `json`, `jsx`, `kotlin`, `php`, `prisma`,
`protobuf`, `python`, `ruby`, `rust`, `sql`, `swift`, `terraform`, `thrift`, `toml`, `tsx`, `typescript`, `yaml`
Names are case-insensitive, and common aliases such as `c++`, `c#`, `py`, and `ts` also work. `javascript` and `jsx`
use the TypeScript and TSX grammars, and `terraform` uses the HCL grammar. PHP code must start with `<?php`.
## Tool
`get_tree_sitter_ast` returns the syntax tree of `code` in `language`, one named node per line, with field names and
zero-based `(row-column)` ranges. `ERROR` and `MISSING` nodes mark syntax errors.
```json
{
"language": "python",
"code": "x = 1"
}
```
```text
module (0-0) - (0-5)
expression_statement (0-0) - (0-5)
assignment (0-0) - (0-5)
left: identifier (0-0) - (0-1)
right: integer (0-4) - (0-5)
```
What people ask about tree-sitter-mcp-server
What is joowani/tree-sitter-mcp-server?
+
joowani/tree-sitter-mcp-server is mcp servers for the Claude AI ecosystem. MCP Server for Tree-sitter It has 0 GitHub stars and its last recorded update is dated 2026-10-02.
How do I install tree-sitter-mcp-server?
+
You can install tree-sitter-mcp-server by cloning the repository (https://github.com/joowani/tree-sitter-mcp-server) or following the README instructions on GitHub. ClaudeWave also provides quick install blocks on this page.
Is joowani/tree-sitter-mcp-server safe to use?
+
Our security agent has analyzed joowani/tree-sitter-mcp-server and assigned a Trust Score of 82/100 (tier: Trusted). See the full breakdown of passed checks and flags on this page.
Who maintains joowani/tree-sitter-mcp-server?
+
joowani/tree-sitter-mcp-server is maintained by joowani. The last recorded GitHub activity is dated 2026-10-02, with 0 open issues.
Are there alternatives to tree-sitter-mcp-server?
+
Yes. On ClaudeWave you can browse similar mcp servers at /categories/mcp, sorted by popularity or recent activity.
Deploy tree-sitter-mcp-server to your cloud
Ship this repo to production in minutes. Each platform spins up its own environment with editable env vars.
Maintain this repo? Add a badge to your README
Drop the badge into your GitHub README to show it's tracked on ClaudeWave. Each badge links back to this page and reflects the live Trust Score.
[](https://claudewave.com/repo/joowani-tree-sitter-mcp-server)<a href="https://claudewave.com/repo/joowani-tree-sitter-mcp-server"><img src="https://claudewave.com/api/badge/joowani-tree-sitter-mcp-server" alt="Featured on ClaudeWave: joowani/tree-sitter-mcp-server" width="320" height="64" /></a>More MCP Servers
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.
User-friendly AI Interface (Supports Ollama, OpenAI API, ...)
An open-source AI agent that brings the power of Gemini directly into your terminal.
Real-time global intelligence dashboard. AI-powered news aggregation, geopolitical monitoring, and infrastructure tracking in a unified situational awareness interface
🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scrapling_dev
The fastest path to AI-powered full stack observability, even for lean teams.