cardzero-mcp
cardzero-mcp
MCP-Server für CardZero — ein Smart-Contract-Wallet für KI-Agenten auf Base, denominiert in USDC.
Ermöglicht Ihrem KI-Agenten:
Wallets zu erstellen und USDC-Guthaben zu prüfen
Direkte USDC-Zahlungen zu senden (2 % Plattformgebühr)
x402-geschützte HTTP-Ressourcen zu bezahlen (HTTP 402 Paywall)
ERC-8183 Escrow-Jobs für A2A-Servicebereitstellung auszuführen (2 % Plattform- + 5 % Evaluator-Gebühr)
Zahlungs- / Job-Status on-chain abzufragen
CardZero ist die zugrunde liegende API-Schicht; dieses MCP kapselt die REST-Endpunkte, sodass jeder MCP-fähige Client (Claude Desktop, Claude Code, Cursor, VS Code, …) sie über stdio aufrufen kann.
Voraussetzungen
Ein CardZero API-Key und eine Wallet-ID, erhältlich über das CardZero Dashboard nach dem Beanspruchen eines Wallets.
Related MCP server: x402tools MCP Server
Konfiguration
Claude Desktop
Bearbeiten Sie ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"cardzero": {
"command": "npx",
"args": ["-y", "cardzero-mcp"],
"env": {
"CARDZERO_API_KEY": "czapi_...",
"CARDZERO_WALLET_ID": "wallet_..."
}
}
}
}Claude Code
claude mcp add cardzero -- npx -y cardzero-mcpOder fügen Sie es der .mcp.json in Ihrem Projekt hinzu:
{
"mcpServers": {
"cardzero": {
"command": "npx",
"args": ["-y", "cardzero-mcp"],
"env": {
"CARDZERO_API_KEY": "czapi_...",
"CARDZERO_WALLET_ID": "wallet_..."
}
}
}
}Cursor
Einstellungen → MCP-Server → Neuen Server hinzufügen:
Name:
cardzeroBefehl:
npx -y cardzero-mcpUmgebungsvariablen:
CARDZERO_API_KEY,CARDZERO_WALLET_ID
VS Code
Fügen Sie es der .vscode/settings.json hinzu:
{
"mcp": {
"servers": {
"cardzero": {
"command": "npx",
"args": ["-y", "cardzero-mcp"],
"env": {
"CARDZERO_API_KEY": "czapi_...",
"CARDZERO_WALLET_ID": "wallet_..."
}
}
}
}
}Umgebungsvariablen
Variable | Erforderlich | Beschreibung |
| Ja (für Tool-Aufrufe) | Agent-API-Key ( |
| Ja (für Wallet-spezifische Tools) | Wallet-ID ( |
| Nein | API-Basis-URL — Standard |
Der Server startet und antwortet auf tools/list auch ohne diese Variablen — einzelne Tool-Aufrufe geben dann einen sauberen config_missing-Fehler zurück.
Verfügbare Tools (10)
Direkte Zahlungen
Tool | Beschreibung |
| Erstellt ein neues CardZero-Wallet. Gibt die Adresse + einen einmaligen Claim-Key für den menschlichen Besitzer zurück. Keine Authentifizierung erforderlich. |
| Prüft das aktuelle USDC-Guthaben Ihres Wallets. |
| Sendet USDC an eine beliebige Ethereum-Adresse. 2 % Gebühr werden von Ihrem Wallet abgezogen. |
| Zeigt den kürzlichen Zahlungsverlauf an. |
| Sucht eine spezifische Zahlung nach ID. Keine Authentifizierung erforderlich. |
x402
Tool | Beschreibung |
| Bezahlt für eine x402-geschützte HTTP-Ressource. Gibt einen Zahlungs-Header zurück, mit dem die Anfrage wiederholt werden kann. |
ERC-8183 Jobs (Escrow / A2A-Servicebereitstellung)
Tool | Beschreibung |
| Erstellt einen Job, der USDC treuhänderisch verwahrt, bis ein Anbieter liefert und ein Evaluator zustimmt. |
| Sperrt das Budget im Escrow. Status: |
| Der Anbieter reicht ein Ergebnis ein. Status: |
| Liest den aktuellen Status (Status, Transaktionen, Evaluierungsergebnis). Keine Authentifizierung erforderlich — der Job-Status ist öffentlich. |
Funktionsweise
Dieser MCP-Server ist ein schlanker Client, der die CardZero REST-API aufruft. Er läuft lokal auf Ihrem Rechner und kommuniziert mit Ihrem KI-Assistenten über stdio. Es werden keine Daten lokal gespeichert.
AI Assistant (Claude / Cursor / VS Code)
⇅ stdio (JSON-RPC)
cardzero-mcp (local Node process)
⇅ HTTPS
api.cardzero.ai → Base mainnet (USDC + ERC-4337 + ERC-8004 + ERC-8183)Entwicklung
git clone https://github.com/mrocker/cardzero-mcp.git
cd cardzero-mcp
npm install
npm run dev # tsx-watch the source
npm run build # compile to ./distRessourcen
Website: https://cardzero.ai
Dokumentation: https://cardzero.ai/docs
API-Referenz: https://cardzero.ai/docs/api-reference/overview
Vollständiges LLM-freundliches Korpus: https://cardzero.ai/llms-full.txt
Mainnet-Verträge: dokumentiert in /docs/reference/contracts
Lizenz
MIT
Available Tools
10 toolscreate_jobA
Create a Job that escrows USDC payment until a Provider delivers and an Evaluator approves. Use this for A2A service delivery (vs send_payment for direct transfers). Confirm budget + provider with user first. Provider must have a CardZero wallet (Sprint 9 MVP requirement).
Inputs: providerAddress (required), budgetUsdc (required), expiredAt (required), title (required), +3 more.
create_walletA
Create a new CardZero wallet. Returns a wallet address and one-time claim key for the human owner. No authentication required.
Inputs: name.
fund_jobA
Fund a Job created via create_job. Locks the budget USDC into escrow. Requires that the Job is in 'open' state. Two on-chain operations: USDC.approve(jobs) + Jobs.fund. Status: open → funded.
Inputs: jobId (required).
get_balanceA
Check the current USDC balance of your CardZero wallet.
Inputs: no named parameters.
get_jobA
Get the current state of a Job (status, budget, transactions, evaluation outcome). No authentication required — Job state is public.
Inputs: jobId (required).
get_paymentA
Check the status of a specific payment by its ID. No authentication required.
Inputs: paymentId (required).
list_paymentsB
View recent payment history for your CardZero wallet.
Inputs: limit, offset.
pay_x402A
Pay for an x402-protected HTTP resource (HTTP 402 Payment Required). Use after receiving a 402 response. Returns a paymentHeader to include in the retry request as X-PAYMENT header.
Inputs: url (required), maxAmount (required), recipient (required), network, +2 more.
send_paymentA
Send a USDC payment to any Ethereum address. A 2% service fee is deducted automatically from your wallet. Confirm amount and recipient with the user before calling.
Inputs: to (required), amount (required), memo, idempotencyKey.
submit_jobA
Submit a deliverable for a Job (Provider side). Posts the deliverable hash on-chain; Evaluator then auto-approves or rejects. Status: funded → submitted.
Inputs: jobId (required), contentHash (required), contentURI.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 10 tools
Tools have distinct purposes overall, but send_payment and pay_x402 both involve sending payments, potentially causing slight confusion. Descriptions help differentiate them.
All tools follow a consistent verb_noun pattern with underscores, e.g., create_job, get_balance, send_payment. No mixing of styles.
10 tools cover the core wallet and job escrow functionality without being excessive or insufficient for the stated purpose.
Core workflows are covered, but missing tools like list_jobs or cancel_job could hinder full lifecycle management. Minor gap.
Maintenance
Related MCP Connectors
Pay-per-call tools for autonomous agents, settled in USDC on Base via x402.
Pay-per-use MCP tools for AI agents. USDC on Base via x402. No API keys.
Pay-per-call tools for AI agents. Live x402 APIs paid in USDC on Base.
Paid tools for AI agents via x402 (USDC on Base): text rewrite, writing grade, code lookups.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceUSDC payments for AI agents on Base. Direct transfers, pre-funded tabs, x402 paywall handling, and service discovery.92 npmMIT
- AlicenseAqualityDmaintenanceProvides AI agents with 10 pay-per-call utility tools (QR generation, DNS lookup, OCR, etc.) using USDC on Base via the x402 protocol, with agent's private key never leaving the agent.11MIT

token4u-mcpofficial
AlicenseAqualityDmaintenanceEnables AI agents to call LLM APIs via x402 micropayments in USDC on Base network, manage a local wallet, and query consumption records.341 npmMIT- AlicenseNot gradedqualityBmaintenanceEnables AI agents to check their wallet address and USDC balance, preview the cost of an x402 call, and pay for API requests in USDC on Base without an account or API key. Spend caps, allow-lists and blocked contracts are enforced in code before anything is signed, so a prompt injection cannot bypass them.1MIT