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

sgr-admin-mcp

v1.2.5

Published

MCP connector + one-click installer for the Sgr Admin Shopify app. Registers its hosted MCP server into Codex / Claude with a url + apikey, installs the product-image workflow skill, and bridges stdio clients to the endpoint.

Readme

sgr-admin-mcp

MCP stdio connector for the Sgr Admin Shopify app. It bridges a stdio-only MCP client (such as Claude Desktop) to Sgr Admin's hosted MCP endpoint, so an AI agent can operate on your shop's products and images.

Modern MCP clients that support remote HTTP MCP servers don't need this package — just point them at your MCP URL with the API key as a Bearer token. Use this connector only for clients that speak stdio.

Get a URL + API key

In Sgr Admin, open MCP → API 密钥, create a key, and copy:

  • url — e.g. https://<your-app>/mcp
  • apikeysgr_... (shown once at creation)

Each key is bound to the shop it was created in.

One-click install (Codex & Claude)

Register the server into every MCP client found on your machine with one command:

npx sgr-admin-mcp install --url https://<your-app>/mcp --apikey sgr_xxx

It sets up:

  • Codex CLI — via codex mcp add, or by writing ~/.codex/config.toml directly if the codex CLI isn't on PATH
  • Claude Code — via claude mcp add --scope user
  • Claude Desktop — merges into claude_desktop_config.json

It also installs the sgr-product-images skill (a guided workflow to download, edit/AI-expand, back up, and replace a product's images) into ~/.claude/skills/. Claude Code picks it up automatically; Claude Desktop that doesn't read that path can import the same folder from its Skills settings.

Clients whose CLI isn't installed are skipped (re-run after installing them). Options: --client codex|claude-code|claude-desktop|all (default all), --name <name> (default sgr-admin), --no-skill to skip the skill. Restart the client after installing.

Usage (manual / stdio bridge)

npx sgr-admin-mcp --url https://<your-app>/mcp --apikey sgr_xxx

Or via environment variables:

SGR_ADMIN_MCP_URL=https://<your-app>/mcp SGR_ADMIN_API_KEY=sgr_xxx npx sgr-admin-mcp

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "sgr-admin": {
      "command": "npx",
      "args": [
        "-y",
        "sgr-admin-mcp",
        "--url",
        "https://<your-app>/mcp",
        "--apikey",
        "sgr_xxx"
      ]
    }
  }
}

Tools

  • list_products — list products (paginated, searchable)
  • get_product_images — a product's media images (mediaId + url)
  • download_product_images — download a product's image bytes (base64)
  • replace_product_image — replace a product image with a new image URL
  • expand_and_replace_product_image — AI-expand a product image and replace it
  • list_backups — image backup history (incl. S3 folder / object keys)
  • restore_backup — restore a backup to the product's media

Security

Treat the API key like a password — it grants an agent write access to your shop's products and images. Revoke it any time from the API 密钥 page.

License

MIT