ASG Card

ASG Card

Virtual MasterCards for AI agents. Issue and manage cards via MCP.

Category
访问服务器

README

<p align="center"> <a href="https://npmjs.com/package/@asgcard/sdk"><img src="https://img.shields.io/npm/v/@asgcard/sdk?label=sdk" alt="npm"></a> <a href="https://npmjs.com/package/@asgcard/cli"><img src="https://img.shields.io/npm/v/@asgcard/cli?label=cli" alt="cli"></a> <a href="LICENSE"><img src="https://img.shields.io/badge/License-MIT-green.svg" alt="License"></a> <a href="https://api.asgcard.dev/health"><img src="https://img.shields.io/badge/API-live-brightgreen" alt="API Status"></a> <a href="https://asgcard.dev/docs"><img src="https://img.shields.io/badge/Docs-asgcard.dev-blue" alt="Docs"></a> </p>

<p align="center"> <a href="#quick-start">Quick Start</a> · <a href="https://asgcard.dev/docs">Docs</a> · <a href="https://asgcard.dev">Website</a> · <a href="https://x.com/asgcardx402">Twitter</a> · <a href="SECURITY.md">Security</a> </p>


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.

<div align="center"> <table> <tr> <td align="center"><strong>Works<br/>with</strong></td> <td align="center"><a href="https://openai.com/index/codex/"><img src=".github/assets/logos/codex.svg" width="32" alt="Codex" /></a><br/><sub>Codex</sub></td> <td align="center"><a href="https://claude.ai/code"><img src=".github/assets/logos/claude.svg" width="32" alt="Claude Code" /></a><br/><sub>Claude Code</sub></td> <td align="center"><a href="https://cursor.com"><img src=".github/assets/logos/cursor.svg" width="32" alt="Cursor" /></a><br/><sub>Cursor</sub></td> <td align="center"><a href="https://openclaw.ai"><img src=".github/assets/logos/openclaw.svg" width="32" alt="OpenClaw" /></a><br/><sub>OpenClaw</sub></td> <td align="center"><a href="https://modelcontextprotocol.io"><img src=".github/assets/logos/mcp.svg" width="32" alt="Any MCP Client" /></a><br/><sub>Any MCP</sub></td> </tr> </table>

<table> <tr> <td align="center"><strong>Built<br/>with</strong></td> <td align="center"><a href="https://stellar.org"><img src=".github/assets/logos/stellar.svg" width="32" alt="Stellar" /></a><br/><sub>Stellar</sub></td> <td align="center"><a href="https://www.circle.com/usdc"><img src=".github/assets/logos/circle.svg" width="32" alt="Circle USDC" /></a><br/><sub>Circle USDC</sub></td> <td align="center"><a href="https://www.mastercard.com"><img src=".github/assets/logos/mastercard.svg" width="32" alt="MasterCard" /></a><br/><sub>MasterCard</sub></td> </tr> </table>

<em>If it speaks MCP, it can spend.</em>

</div>

🎬 Demo

<p align="center"> <img src=".github/assets/demo.gif" alt="Agent Card CLI Demo" width="600"> </p>

📹 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 (11 tools)

@asgcard/mcp-server exposes 11 tools via the Model Context Protocol. The MCP server reads your Stellar key from ~/.asgcard/wallet.jsonno 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
get_transactions Card transaction history (real issuer data)
get_balance Live card balance from card issuer

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"
});

// List cards, check balance, view transactions
const { cards } = await client.listCards();
const balance = await client.getBalance(cards[0].cardId);
const txns = await client.getTransactions(cards[0].cardId);

See /sdk for full API reference.

CLI Commands

npx @asgcard/cli transactions <cardId>   # View card transaction history
npx @asgcard/cli balance <cardId>         # Get live card balance
npx @asgcard/cli history                  # All cards with live balances
npx @asgcard/cli cards                    # List all your cards
npx @asgcard/cli pricing                  # View pricing tiers

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 (11 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

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选