Tree Hugger Js MCP Server

MCP server for JavaScript/TypeScript code analysis using tree-hugger-js

Local serverstdioTypeScript

What is the Tree Hugger Js MCP MCP server?

Tree hugger js mcp mcp server lets Claude, Cursor and other MCP clients work with Tree Hugger Js MCP directly. MCP server for JavaScript/TypeScript code analysis using tree-hugger-js.

What Tree Hugger Js MCP does

An MCP (Model Context Protocol) server that provides AI agents with powerful JavaScript/TypeScript code analysis and transformation capabilities using the tree-hugger-js library.

Tools it exposes

Once connected, the assistant can call these 12 tools directly:

  • parse_code — // Parse code string await callTool("parse_code", { source: "function hello() { console.log('world'); }" });
  • find_pattern — // Find async functions await callTool("find_pattern", { pattern: "function[async]" });
  • find_all_pattern — The find_all_pattern tool exposed by this server
  • get_functions — The get_functions tool exposed by this server
  • get_classes — The get_classes tool exposed by this server
  • get_imports — The get_imports tool exposed by this server
  • rename_identifier — The rename_identifier tool exposed by this server
  • remove_unused_imports — The remove_unused_imports tool exposed by this server
  • transform_code — The transform_code tool exposed by this server
  • insert_code — The insert_code tool exposed by this server
  • get_node_at_position — The get_node_at_position tool exposed by this server
  • analyze_scopes — The analyze_scopes tool exposed by this server

Installing the tree hugger js mcp mcp server

The server is distributed via npm as tree-hugger-js-mcp, so most clients can run it without a manual build step. Add it to your MCP client's configuration and restart the client to pick it up — the copy-paste configs for Claude Desktop, Claude Code and Cursor are on this page.

Where it fits

Developer-tool servers are usually the first ones people connect, because they turn "help me with this code" into an assistant that can actually read the repo and act on it. Tree Hugger Js MCP sits in that group, and the shape of its toolset — parse_code, find_pattern, find_all_pattern among others — tells you what it is really for. Worth comparing against the other developer tools servers in this directory before you commit to one, since several overlap in scope but differ sharply in setup cost and permissions.

Practical notes

  • This server runs locally, so it operates with whatever access your machine and its credentials already have. Scope that deliberately rather than by default.
  • With 12 tools exposed, expect a noticeable bump in prompt size — disable it in projects that never use Tree Hugger Js MCP.
  • Maintained by qckfx, written in TypeScript.
  • MCP clients ask for confirmation before each tool call by default. Keep that on while you learn what the tree hugger js mcp mcp server actually does with your data.
  • Every entry in this directory is reviewed by hand before it goes live, and details are checked against the project's own documentation.

Available tools

ToolWhat it does
parse_code// Parse code string await callTool("parse_code", { source: "function hello() { console.log('world'); }" });
find_pattern// Find async functions await callTool("find_pattern", { pattern: "function[async]" });
find_all_patternThe find_all_pattern tool exposed by this server.
get_functionsThe get_functions tool exposed by this server.
get_classesThe get_classes tool exposed by this server.
get_importsThe get_imports tool exposed by this server.
rename_identifierThe rename_identifier tool exposed by this server.
remove_unused_importsThe remove_unused_imports tool exposed by this server.
transform_codeThe transform_code tool exposed by this server.
insert_codeThe insert_code tool exposed by this server.
get_node_at_positionThe get_node_at_position tool exposed by this server.
analyze_scopesThe analyze_scopes tool exposed by this server.

How to install the Tree Hugger Js MCP MCP server

### Alternative Configurations

```json
{
  "mcpServers": {
    "tree-hugger-js": {
      // If installed globally
      "command": "tree-hugger-js-mcp"
      
      // Or if built from source
      "command": "node",
      "args": ["/path/to/tree-hugger-js-mcp/build/index.js"]
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Example prompts to try

  • Use Tree Hugger Js MCP to parse code.
  • Use Tree Hugger Js MCP to find pattern.
  • Use Tree Hugger Js MCP to find all pattern.

Frequently asked questions

It connects Tree Hugger Js MCP to MCP-compatible AI assistants such as Claude and Cursor, exposing 12 tools (parse_code, find_pattern, find_all_pattern, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Tree Hugger Js MCP directly.