npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@jsdr/xhgui-mcp

v0.1.0

Published

MCP server for querying XHGui profiling data

Readme

xhgui-mcp

MCP server that gives AI agents structured, pre-summarized access to XHGui profiling data.

Two tools today:

  • list_runs — recent runs, with filters (url, url_contains, method, time range, min wall).
  • get_run_summary — one call returns totals + top-N by inclusive / self time + optional hotspot matches for a given run.

Published as @jsdr/xhgui-mcp. Design notes in docs/design.md.

Environment variables

| Var | Required | Example | |---|---|---| | XHGUI_BACKEND | yes | pdo | | XHGUI_PDO_DSN | if pdo | mysql://db:[email protected]:32789/xhgui | | XHGUI_HOTSPOT_PATTERNS | no | ElementQuery::one,Container::build,renderTemplate (CSV of symbol substrings) |

Only the PDO backend (MySQL/MariaDB) is implemented today. MongoDB support is planned.

Install

From npm

npx -y @jsdr/xhgui-mcp

From source

git clone https://github.com/Jensderond/xhgui-mcp.git
cd xhgui-mcp
npm install
npm run build
npm link

After npm link, the xhgui-mcp binary is on your global bin.

Use with Claude Code

claude mcp add --transport stdio xhgui \
  -e XHGUI_BACKEND=pdo \
  -e XHGUI_PDO_DSN="mysql://db:[email protected]:32789/xhgui" \
  -e XHGUI_HOTSPOT_PATTERNS="ElementQuery::one,ElementQuery::all,internalExecute,getAttribute,Container::build,renderTemplate" \
  -- npx -y @jsdr/xhgui-mcp

Equivalent .mcp.json:

{
  "mcpServers": {
    "xhgui": {
      "command": "npx",
      "args": ["-y", "@jsdr/xhgui-mcp"],
      "env": {
        "XHGUI_BACKEND": "pdo",
        "XHGUI_PDO_DSN": "mysql://db:[email protected]:32789/xhgui",
        "XHGUI_HOTSPOT_PATTERNS": "ElementQuery::one,ElementQuery::all,internalExecute,getAttribute,Container::build,renderTemplate"
      }
    }
  }
}

Use with ddev

The MCP doesn't know about ddev — point the DSN at ddev's host-mapped DB port.

ddev describe | grep -i mariadb
# db:3306 -> 127.0.0.1:32789

Use that host-side port in XHGUI_PDO_DSN. Note: the port reshuffles on ddev restart, so update the DSN if calls start returning connection errors.

Development

npm run dev      # tsc --watch
npm run build    # one-shot build + chmod +x dist/server.js
npm start        # node dist/server.js

License

MIT.