
代理卡的MCP服务器 — 为AI 代理预付的虚拟签证卡
概览
给你的人工智能经纪人一张借记卡 AgentCard允许AI代理创建并花去虚拟借记卡——每张都有固定的预算,真实的卡证,以及完整的MCP集成. 你的经纪人可以创造出一张卡,支付东西,检查它的平衡,以及自动填入的取出表——而不需要你的个人卡. 连接您的代理的最快方法是通过 CLI : 就是这样。 重新启动克洛德代码和工具准备使用. 添加到您的 MCP 客户端配置( Claude Desktop, cursor等) : 用 npx 代理卡登录获取您的 JWT, 然后在 ~/. agent- cards/ config.json 中找到它 .
概述(AI 翻译)
给你的人工智能经纪人一张借记卡 AgentCard允许AI代理创建并花去虚拟借记卡——每张都有固定的预算,真实的卡证,以及完整的MCP集成. 你的经纪人可以创造出一张卡,支付东西,检查它的平衡,以及自动填入的取出表——而不需要你的个人卡.
□ 快设置
连接您的代理的最快方法是通过 CLI :
就是这样。 重新启动克洛德代码和工具准备使用.
□ 手动设置
QQ HTTP( 建议)
添加到您的 MCP 客户端配置( Claude Desktop, cursor等) :
用npx agent-cards login获取你的JWT,然后在[[T1]中找到它。
Stdio(当地)
□ 工具
- 工具 * * 描述 * * |-|-|-.
・create_card 创建有固定美元预算的新虚拟借记卡・・・・
| get_card_details 得到解密的 PAN, CVV, 过期(可能需要人类批准) |
QQcheck_balance 快速平衡检查而不暴露证书 QQ
close_card 永久关闭虚拟卡 .
QQ[ [T7] 列表中包含可选状态过滤器的卡片交易 QQ
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
@agent-cards/mcp
Give your AI agent a debit card. AgentCard lets AI agents create and spend virtual debit cards — each with a fixed budget, real card credentials, and full MCP integration. Your agent can create a card, pay for things, check its balance, and auto-fill checkout forms — without ever needing your personal card.
Quick Setup
The fastest way to connect your agent is through the CLI:
npx agent-cards signup # create an account (one-time)
npx agent-cards setup-mcp # auto-configures Claude Code
That’s it. Restart Claude Code and the tools are ready to use.
Manual Setup
HTTP (recommended)
Add to your MCP client config (Claude Desktop, Cursor, etc.):
{
"mcpServers": {
"agent-cards": {
"url": "https://mcp.agentcard.sh/mcp",
"headers": {
"Authorization": "Bearer "
}
}
}
}
Get your JWT with npx agent-cards login, then find it in ~/.agent-cards/config.json.
stdio (local)
{
"mcpServers": {
"agent-cards": {
"command": "node",
"args": ["/path/to/packages/mcp/dist/src/index.js"],
"env": {
"AGENT_CARDS_JWT": "",
"AGENT_CARDS_API_URL": "https://your-backend.example.com"
}
}
}
}
Tools
| Tool | Description |
|---|---|
list_cards |
List all virtual cards with balances, expiry, and status |
create_card |
Create a new virtual debit card with a fixed USD budget |
get_card_details |
Get decrypted PAN, CVV, expiry (may require human approval) |
check_balance |
Fast balance check without exposing credentials |
close_card |
Permanently close a virtual card |
list_transactions |
List transactions for a card with optional status filter |
approve_request |
Approve or deny a pending human-in-the-loop request |
submit_user_info |
Submit identity info for card issuance verification |
setup_payment_method |
Set up a payment method for funding cards |
remove_payment_method |
Remove a saved payment method |
pay_checkout |
Auto-detect and pay a checkout page using an AgentCard |
detect_checkout |
Detect checkout forms on the current browser tab |
fill_card |
Fill card credentials into a payment form in the browser |
start_support_chat |
Start a support conversation |
send_support_message |
Send a message in a support thread |
read_support_chat |
Read support conversation history |
Endpoints
| Method | Path | Description |
|---|---|---|
POST |
/mcp |
MCP Streamable HTTP transport |
GET |
/health |
Health check ({"ok":true}) |
GET |
/.well-known/mcp/server-card.json |
Auto-discovery metadata |
Environment Variables
| Variable | Required | Description |
|---|---|---|
AGENT_CARDS_API_URL |
yes | Backend API URL |
AGENT_CARDS_JWT |
stdio only | User JWT (HTTP gets it from the Authorization header) |
安装
npx agent-cards signup # create an account (one-time)配置
{
"mcpServers": {
"agent-cards": {
"url": "https://mcp.agentcard.sh/mcp",
"headers": {
"Authorization": "Bearer <your-jwt>"
}
}
}
}