MCP.Market

Tree-sitter MCP Server

by joowani·io.github.joowani/tree-sitter-mcp-server·v0.1.1

Parse code into Tree-sitter ASTs to see node kinds, field names, and positions

A92/100grade A
What users say
No reviews yet
Be the first
Safety scan
A92/100

not scanned yet

Adoption
New

0 stars

Reviews

Write one

Nobody has reviewed Tree-sitter MCP Server yet.

If you have run it, two minutes of your experience saves the next person an afternoon.

Tree-sitter MCP Server tools

No tool declarations could be read from the package source. They show once the server is installed.

Not scanned yet. New listings are scanned within a day or two of arriving.

How Tree-sitter MCP Server compares

Against every graded MCP server, from our own scans and uptime checks. Updated after each scan run.

Safety score
92/100
higher than 95% of 48,255 servers

Release history: 2 versions in the registry since 2026-10-02, latest 2026-10-28, typically one every 25 days.

Install Tree-sitter MCP Server in Claude Code, Cursor or VS Code

Runs npx -y tree-sitter-mcp-server on your machine. Read the scan report first; the gateway never runs local packages.

claude mcp add tree-sitter-mcp-server -- npx -y tree-sitter-mcp-server
Add to Cursor

What the publisher says

From the Tree-sitter MCP Server repository's README, as published. We do not edit it. Read it on GitHub

Tree-sitter MCP Server

An MCP server that shows coding agents the Tree-sitter 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:

claude mcp add tree-sitter -- npx -y tree-sitter-mcp-server

Codex:

codex mcp add tree-sitter -- npx -y tree-sitter-mcp-server

Other clients:

{
  "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, and use tree-sitter-mcp-server as the command.

Clients that browse the MCP Registry, 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

gettreesitter_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.

{
  "language": "python",
  "code": "x = 1"
}
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)

Nothing above is checked by us. What we check is on the safety report.

Tree-sitter MCP Server: common questions

Is Tree-sitter MCP Server safe?
Yes, by our scan: it is graded A (92/100). Read the Tree-sitter MCP Server safety report
How do I install Tree-sitter MCP Server?
It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
Does Tree-sitter MCP Server need an API key?
Not as far as the registry entry and our scan can tell: no credentials are declared or required.
Is Tree-sitter MCP Server maintained?
The last commit was 33 days ago (2026-10-02). The latest release is v0.1.1.