Skip to main content
Glama
ASGCompute

ASG Card

Official
by ASGCompute

Public mirror β€” this repo is a read-only mirror of the internal monorepo. For issues and feature requests use GitHub Issues. For code contributions see CONTRIBUTING.md.

Agent Card

Agent Card is an agent-first virtual card platform. AI agents programmatically issue and manage MasterCard virtual cards, paying in USDC via the x402 protocol on Stellar.

If it speaks MCP, it can spend.

🎬 Demo

πŸ“Ή Watch the full product video

Agent Card is right for you if

  • βœ… Your AI agent needs to pay for things β€” hosting, domains, APIs, SaaS

  • βœ… You want a virtual MasterCard issued programmatically

  • βœ… You want your agent to manage cards autonomously via MCP

  • βœ… You want to pay in USDC without touching fiat banking

  • βœ… You need transparent, on-chain proof of every payment

Quick Start

For Codex

npx @asgcard/cli onboard -y --client codex

For Claude Code

npx @asgcard/cli onboard -y --client claude

For Cursor

npx @asgcard/cli onboard -y --client cursor

Using the SDK directly

npm install @asgcard/sdk

Via ClawHub

npx clawhub@latest install agentcard

The onboarding flow creates a Stellar wallet (~/.asgcard/wallet.json), configures MCP, installs the agent skill, and prints the next step.

Note: If you already have a wallet, run npx @asgcard/cli doctor to verify your setup.

How It Works

  1. Agent requests a card β†’ API returns 402 Payment Required with USDC amount

  2. Agent signs a Stellar USDC transfer via the SDK

  3. x402 Facilitator verifies and settles the payment on-chain

  4. API issues a real MasterCard via the card issuer

  5. Card details returned in the response

Live pricing: GET https://api.asgcard.dev/pricing Β· Full docs: asgcard.dev/docs

MCP Server (9 tools)

@asgcard/mcp-server exposes 9 tools via the Model Context Protocol. The MCP server reads your Stellar key from ~/.asgcard/wallet.json β€” no env vars needed in client configs.

Tool

What it does

get_wallet_status

Wallet address, USDC balance, readiness

create_card

Create virtual MasterCard (x402 payment)

fund_card

Top up existing card

list_cards

List all wallet cards

get_card

Card summary

get_card_details

PAN, CVV, expiry (nonce-protected)

freeze_card / unfreeze_card

Freeze or re-enable a card

get_pricing

Current tier pricing

SDK

import { ASGCardClient } from "@asgcard/sdk";

const client = new ASGCardClient({
  privateKey: "S...",  // Stellar secret key
  rpcUrl: "https://mainnet.sorobanrpc.com"
});

const card = await client.createCard({
  amount: 10,
  nameOnCard: "AI Agent",
  email: "agent@example.com"
});

See /sdk for full API reference.

Repository Structure

This is a monorepo. Most users should use npx @asgcard/cli or npm install @asgcard/sdk β€” cloning is only needed for contributing.

Directory

Package

/api

ASG Card API (Express + x402 + wallet auth)

/sdk

@asgcard/sdk β€” TypeScript client

/cli

@asgcard/cli β€” CLI + onboarding

/mcp-server

@asgcard/mcp-server β€” MCP server (9 tools)

/web

Marketing website (asgcard.dev)

/docs

Documentation and ADRs

Security

  • πŸ”’ AES-256-GCM encryption at rest for card details

  • πŸ”‘ Stellar private key never leaves your machine (~/.asgcard/wallet.json)

  • πŸ›‘οΈ Nonce-based anti-replay protection

  • βœ… Wallet signature authentication β€” no API keys

  • πŸ“‹ Security Policy Β· Technical Overview

Community

License

MIT Β© 2025 ASG Compute

-
security - not tested
A
license - permissive license
-
quality - not tested

Resources

Looking for Admin?

Admins can modify the Dockerfile, update the server description, and track usage metrics. If you are the server author, to access the admin panel.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ASGCompute/asgcard-public'

If you have feedback or need assistance with the MCP directory API, please join our Discord server