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

@purplesquirrel/sphere-mcp

v0.1.0

Published

MCP server for Sphere Pay — stablecoin payouts, treasury sweep, on-ramp, KYC, and webhooks via 13 tools

Readme

sphere-mcp

MCP server for Sphere Pay — 13 tools covering stablecoin contractor payouts, treasury sweeps, on-ramp / off-ramp virtual accounts, customer onboarding, KYC, and webhooks.

Designed primarily for contractor stablecoin payouts + treasury sweep (USDC → fiat bank, wallet → wallet). On-ramp and customer flows are secondary.

Any MCP-compatible AI agent (Claude Code, Cursor, ChatGPT, etc.) gets native access to Sphere's full payments stack.

Quick Start

git clone https://github.com/ExpertVagabond/sphere-mcp.git
cd sphere-mcp
npm install && npm run build

SPHERE_API_KEY=your_key node dist/index.js

Add to Claude Code

// ~/.claude/settings.json
{
  "mcpServers": {
    "sphere": {
      "command": "node",
      "args": ["/path/to/sphere-mcp/dist/index.js"],
      "env": {
        "SPHERE_API_KEY": "your_sphere_api_key"
      }
    }
  }
}

Environment Variables

| Var | Required | Default | Notes | |-----|----------|---------|-------| | SPHERE_API_KEY | yes | — | API key from the Sphere dashboard | | SPHERE_BASE_URL | no | https://api.spherepay.co | Override for sandbox / staging | | SPHERE_AUTH_HEADER | no | bearer | Set to x-api-key if Bearer is rejected | | SPHERE_TIMEOUT_MS | no | 30000 | Request timeout in milliseconds |

Tools (13)

| Tool | Purpose | |------|---------| | sphere_create_customer | Create individual or business customer | | sphere_get_customer | Retrieve a customer by ID | | sphere_list_customers | List customers with pagination | | sphere_create_kyc_link | Issue a hosted KYC link for a customer | | sphere_create_bank_account | Attach a bank account to a customer (ACH, wire, SEPA, PIX) | | sphere_list_bank_accounts | List bank accounts (filter by customer) | | sphere_create_transfer | Primary payout call — wallet/bank → wallet/bank, fiat or stablecoin | | sphere_get_transfer | Retrieve a transfer for status polling | | sphere_list_transfers | List transfers with status filter and pagination | | sphere_create_onramper_account | Provision a fiat virtual account that auto-converts to stablecoin | | sphere_create_offloader_wallet | Provision a stablecoin deposit address that auto-converts to fiat | | sphere_register_webhook | Subscribe an HTTPS URL to Sphere events | | sphere_verify_webhook_signature | Locally verify HMAC-SHA256 webhook signatures (no API call) |

Example: contractor payout

You: "Pay contractor cust_abc 500 USDC on Solana to their bank account ba_xyz"

Agent calls: sphere_create_transfer({
  amount: "500",
  customer: "cust_abc",
  source: { type: "wallet", id: "<treasury_wallet>", currency: "USDC", network: "solana" },
  destination: { type: "bankAccount", id: "ba_xyz", currency: "USD", network: "ach" }
})

→ { id: "tx_...", status: "processing", ... }

Architecture

src/
  index.ts                MCP server entry — registers all 13 tools
  client.ts               Sphere REST client (auth, timeout, error mapping)
  types.ts                Shared types
  tools/
    customers.ts          create / get / list customer
    kyc.ts                hosted KYC link
    bank-accounts.ts      create / list bank account
    transfers.ts          create / get / list transfer (primary payout)
    virtual-accounts.ts   onramper account, offloader wallet
    webhooks.ts           register webhook + local HMAC verifier

Notes on API Coverage

A few endpoint shapes (KYC link path, virtual-account required fields, webhook signature header / encoding) are documented loosely; those tools include // TODO: verify against live API notes and accept an extra passthrough object so you can supply any additional fields the API requires without waiting for a code change.

For canonical specs see docs.spherepay.co.

License

MIT