T

Tree-sitter MCP Server

MCP server · by joowani

Developer Tools npmcargo v0.1.0

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

View source ↗ Website ↗ More servers

Install

Run one of the commands below, then add the client config underneath.

npmnpx -y tree-sitter-mcp-server
cargotree-sitter-mcp-server

Client configuration

Paste into Claude Desktop, Cursor (mcp.json), VS Code or any MCP client, then restart the client.

mcpServers{
  "mcpServers": {
    "tree-sitter-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "tree-sitter-mcp-server"
      ]
    }
  }
}

About this server

Tree-sitter MCP Server is listed in the Developer Tools category of the MCPNav directory. It is distributed as npm, cargo and can be loaded by any client that speaks the Model Context Protocol.

Typical uses include giving your assistant scoped access to the corresponding service so it can answer questions and take actions with real data instead of guessing. Always review what a server can access before you enable it — see our MCP security guide.

Frequently asked questions

What is the Tree-sitter MCP Server MCP server?

Tree-sitter MCP Server is an MCP server by joowani. Parse code into Tree-sitter ASTs to see node kinds, field names, and positions

How do I install Tree-sitter MCP Server?

Install it with: npx -y tree-sitter-mcp-server. Then add the JSON config to your client's MCP settings and restart the client.

Is Tree-sitter MCP Server free to use?

The MCP server itself is free to install. The source is public on https://github.com/joowani/tree-sitter-mcp-server. Any third-party API it calls (such as a search or maps API) may require its own key and billing.

Which clients support Tree-sitter MCP Server?

Any MCP-compatible client can use it, including Claude Desktop, Cursor, VS Code, Windsurf and custom agents.