🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@asgcard/mcp-server

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@asgcard/mcp-server

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

latest
Source
npmnpm
Version
0.6.3
Version published
Maintainers
1
Created
Source

@asgcard/mcp-server

MCP (Model Context Protocol) server for ASG Card — gives AI agents the ability to create, fund, and manage virtual MasterCard cards.

Quick Setup

# One-line setup (creates wallet, configures MCP, installs skill)
npx @asgcard/cli onboard -y --client codex

# Or manual setup for a specific client:
npx @asgcard/cli install --client codex    # Codex
npx @asgcard/cli install --client claude   # Claude Code
npx @asgcard/cli install --client cursor   # Cursor

Tools (11)

ToolDescription
get_wallet_statusUse FIRST — check wallet address, USDC balance, readiness
create_cardCreate virtual MasterCard (pays USDC via x402 on Stellar)
fund_cardTop up an existing card
list_cardsList all cards for this wallet
get_cardGet card summary by ID
get_card_detailsGet sensitive info: PAN, CVV, expiry (rate-limited 5/hr)
freeze_cardTemporarily freeze a card
unfreeze_cardRe-enable a frozen card
get_pricingView pricing (card $10, top-up 3.5%)
get_transactionsCard transaction history (real 4payments data)
get_balanceLive card balance from 4payments
get_wallet_status → get_pricing → create_card → list_cards → fund_card → manage
  • Always start with get_wallet_status to verify the wallet is funded
  • Use get_pricing to see card and top-up pricing
  • create_card to issue a virtual card (USDC payment via x402)
  • list_cards / get_card / get_card_details for management
  • fund_card to top up, freeze_card / unfreeze_card for control

Manual MCP Configuration

If you prefer manual setup, the MCP server reads your key from ~/.asgcard/wallet.json automatically — no env vars needed:

Codex (~/.codex/config.toml):

[mcp_servers.asgcard]
command = "npx"
args = ["-y", "@asgcard/mcp-server"]

Claude Code:

claude mcp add asgcard -- npx -y @asgcard/mcp-server

Cursor (~/.cursor/mcp.json):

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

Environment Variables

VariableRequiredDefaultDescription
STELLAR_PRIVATE_KEYAuto from ~/.asgcard/wallet.jsonOverride: explicit Stellar secret key
ASGCARD_API_URLhttps://api.asgcard.devAPI base URL
STELLAR_RPC_URLhttps://mainnet.sorobanrpc.comSoroban RPC

Error Handling

All tool errors return structured remediation:

ERROR: Insufficient USDC balance for card creation
Why: Balance $5.00 is below minimum card cost. Send more USDC.
Fix: Use get_wallet_status to check your balance. Send USDC on Stellar to your wallet address, then retry.

Security

  • Private key stays in ~/.asgcard/wallet.json — never sent to ASG Card API
  • MCP server reads key at startup from local state (no env copy needed)
  • Card management uses wallet signature authentication
  • x402 payments are signed locally, settled by facilitator
  • Card details encrypted at rest (AES-256-GCM)

Keywords

mcp

FAQs

Package last updated on 08 Apr 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts