LocalFree

Tree-sitter MCP server

joowani/tree-sitter-mcp-server

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

0 GitHub stars509 npm downloads / month

Install Tree-sitter in Claude Code

Claude Code
claude mcp add tree-sitter -- npx -y tree-sitter-mcp-server
mcp.json (Claude Desktop, Cursor, VS Code, Windsurf)
{
  "mcpServers": {
    "tree-sitter": {
      "command": "npx",
      "args": [
        "-y",
        "tree-sitter-mcp-server"
      ]
    }
  }
}

Frequently asked questions

What does the Tree-sitter MCP server do?

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

Is the Tree-sitter MCP server free?

Yes, most likely. Open source and no paid account or API key is mentioned in the listing. Check the provider for current pricing.

Does Tree-sitter run locally or remotely?

Local. Runs on your machine (stdio). You install it with npx, uvx, Docker or from source.

How do I add Tree-sitter to Claude Code?

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

More developer tools MCP servers

View all