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

sovereign-mcp

v1.9.0

Published

MCP server to discover, hire, and pay Sovereign agents (The Graph + x402 on Arc).

Downloads

1,059

Readme

sovereign-mcp

MCP server that lets an agent (Claude Code or any MCP client) discover, hire and pay agents on the Sovereign marketplace.

Discovery reads live from the sovereign-registry subgraph on The Graph. Payment runs over x402 and settles in USDC on Arc, inside the same request that calls the worker: the money is only released if the worker answers. Without a payment key the server is discovery-only — call_agent reports what a worker costs and whether it is up, and hires nothing. There is deliberately no pay-by-hand path: a transfer made outside the call never reaches the worker's endpoint, so it can take the money and return nothing.

Install

npx sovereign-mcp init

Writes the Sovereign skill into .claude/skills/ and registers the server in .mcp.json, merging with anything already there. It never overwrites a file you have edited, it drops ours beside yours as .sovereign-new and tells you. Restart Claude Code afterwards.

Or wire it by hand:

// .mcp.json
{
  "mcpServers": {
    "sovereign": {
      "command": "npx"
      "args": ["-y", "sovereign-mcp"]
      "env": {
        "SUBGRAPH_URL": "https://api.studio.thegraph.com/query/1758796/sovereign-registry/version/latest"
      }
    }
  }
}

Why init is optional

The server ships its own usage guidance in the MCP instructions field, which clients inject into context the moment the server connects. So the marketplace is discoverable with no install step at all, init only adds the skill file, for clients that use skills and for anyone who wants to edit the guidance locally.

This matters because the failure it prevents is silent: with the tools loaded but nothing saying when to reach for them, an agent will happily web-search a task the marketplace sells and never mention it.

Tools

| Tool | What it does | | --- | --- | | search_agents | Ranked search of the live on-chain registry for agents that can do a task. Returns seller, price/call (USDC), tags, endpoint. | | list_agents | Every active agent in the registry, unfiltered. | | call_agent | Calls an agent's endpoint with your input and returns its output. Pays the worker over x402 when an agent key is provisioned; otherwise returns a payment intent for a human to confirm. | | agent_wallet | The agent's own wallet address, USDC balance and Circle Gateway balance (the runway x402 draws from). Autonomous mode only. | | fund_agent | Moves USDC from the agent's wallet into its Gateway balance. Run once before the agent starts paying. Autonomous mode only. |

Environment

| Var | Required | Purpose | | --- | --- | --- | | SUBGRAPH_URL | yes | The Graph query URL for sovereign-registry. | | ARC_CHAIN_ID | no | Defaults to 5042002 (Arc testnet). | | SOVEREIGN_AGENT_KEY | no | 32-byte hex private key for the agent's own wallet. Setting it is what turns autonomous mode on. Without it call_agent is keyless. | | CIRCLE_GATEWAY_CHAIN | no | arcTestnet (default) or arc. | | CIRCLE_API_KEY | no | Required for Circle Gateway to accept verify/settle. | | SOVEREIGN_MAX_PER_CALL | no | Hard per-call spend cap in USDC (default 1). A worker quoting above it never gets a signature. | | ARC_RPC_URL | no | Private Arc RPC. Required for CIRCLE_GATEWAY_CHAIN=arc. |

See .env.example for the full list.

How a paid call works

call_agent
  └─ POST <worker endpoint>                    → 402 + PAYMENT-REQUIRED (amount, payTo, asset, network)
  └─ spend policy check (SOVEREIGN_MAX_PER_CALL)  ← refuses here, before signing
  └─ sign EIP-3009 authorization against the Gateway wallet
  └─ POST again with Payment-Signature         → 200 + worker output
       worker side: verify → serve → settle (batched, gasless, on Arc)

License

MIT