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

@asgcard/mcp-server

v0.1.2

Published

MCP Server for ASG Card — give AI agents autonomous virtual card management via x402

Readme

@asgcard/mcp-server

MCP Server for ASG Card — give AI agents autonomous virtual card management via x402 protocol on Stellar.

What is this?

This MCP server allows AI agents (Claude, Cursor, etc.) to create, fund, and manage virtual debit cards fully autonomously — no human-in-the-loop. Cards are paid with USDC on-chain via the x402 protocol.

Tools

| Tool | Description | |---|---| | create_card | Create a new virtual card (pays on-chain via x402) | | fund_card | Fund an existing card with more USDC | | list_cards | List all cards for your wallet | | get_card | Get card summary (balance, status) | | get_card_details | Get card number, CVV, expiry (sensitive) | | freeze_card | Temporarily freeze a card | | unfreeze_card | Re-enable a frozen card | | get_pricing | View available tier pricing |

Setup

Claude Code

claude mcp add asgcard -- node /path/to/mcp-server/dist/index.js \
  --env STELLAR_PRIVATE_KEY=S...

Claude Desktop / Cursor

Add to your MCP config file (~/.cursor/mcp.json or Claude Desktop settings):

{
  "mcpServers": {
    "asgcard": {
      "command": "npx",
      "args": ["-y", "@asgcard/mcp-server"],
      "env": {
        "STELLAR_PRIVATE_KEY": "YOUR_STELLAR_SECRET_KEY"
      }
    }
  }
}

Manual (from source)

cd mcp-server
npm install
npm run build

STELLAR_PRIVATE_KEY=S... node dist/index.js

Environment Variables

| Variable | Required | Default | Description | |---|---|---|---| | STELLAR_PRIVATE_KEY | ✅ | — | Stellar secret key (S...) for signing x402 payments and wallet auth | | ASGCARD_API_URL | ❌ | https://api.asgcard.dev | ASGCard API endpoint | | STELLAR_RPC_URL | ❌ | https://mainnet.sorobanrpc.com | Soroban RPC for transaction submission |

How it works

AI Agent (Claude / Cursor)
    ↕ stdio (MCP protocol)
@asgcard/mcp-server
    ↕ @asgcard/sdk (x402 create/fund)
    ↕ wallet-auth HTTP (list/get/freeze/unfreeze)
ASGCard API (api.asgcard.dev)
    ↕ x402 on Stellar (USDC)
4Payments → Visa/Mastercard Network

The server uses your Stellar private key to:

  1. Sign x402 payments for card creation and funding (autonomous on-chain)
  2. Sign wallet-auth requests for card management operations

Security

  • Your private key never leaves the local process
  • All x402 payments require on-chain USDC — no credit risk
  • Wallet-auth uses ed25519 signatures with 5-min timestamp windows
  • Card details are encrypted at rest on the server (AES-256)

License

MIT