Skip to main content
ClaudeWave
joowani avatar
joowani

tree-sitter-mcp-server

View on GitHub

MCP Server for Tree-sitter

MCP ServersOfficial Registry0 stars0 forks● RustMITUpdated today
ClaudeWave Trust Score
82/100
✓ Trusted
Passed
  • ✓Open-source license (MIT)
  • ✓Actively maintained (<30d)
  • ✓Documented (README)
Last scanned: 10/3/2026
Install in Claude Code / Claude Desktop
Method: NPX · tree-sitter-mcp-server
Claude Code CLI
claude mcp add tree-sitter -- npx -y tree-sitter-mcp-server
claude_desktop_config.json (Claude Desktop)
{
  "mcpServers": {
    "tree-sitter": {
      "command": "npx",
      "args": ["-y", "tree-sitter-mcp-server"]
    }
  }
}
1. Run the command above in your terminal (Claude Code), or paste the JSON config into claude_desktop_config.json (Claude Desktop).
2. Replace any <placeholder> values with your API keys or paths.
3. Restart Claude. The MCP server and its tools appear automatically.
Use cases

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.

Featured on ClaudeWave: joowani/tree-sitter-mcp-server
[![Featured on ClaudeWave](https://claudewave.com/api/badge/joowani-tree-sitter-mcp-server)](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>