{
  "markdown": "# circle-agent-stack-mcp\n\nMCP server for [Circle's Agent Stack](https://developers.circle.com/agent-stack). Create wallets, set spend policies, send USDC, and pay x402-priced endpoints — all from a tool call.\n\n```bash\nnpx circle-agent-stack-mcp\n```\n\n## Tools\n\n| Tool | What it does |\n|---|---|\n| `circle_wallet_create` | Create an agent wallet (dev/hosted/smart) |\n| `circle_wallet_list` | List wallets with USDC balances |\n| `circle_balance` | Balance + last 10 txns for a wallet |\n| `circle_policy_set` | Set daily cap, x402 cap, allow/block lists |\n| `circle_transfer_usdc` | Send USDC to an on-chain address |\n| `circle_x402_pay` | Pay an x402-priced endpoint and return its response |\n\n## Quickstart\n\nYou need the Circle CLI installed and authenticated:\n\n```bash\nnpm install -g @circle-fin/circle-cli\ncircle login\nexport CIRCLE_API_KEY=your_key_here\n```\n\n### Claude Desktop\n\n```json\n{\n  \"mcpServers\": {\n    \"circle\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"circle-agent-stack-mcp\"],\n      \"env\": {\n        \"CIRCLE_API_KEY\": \"your_key_here\"\n      }\n    }\n  }\n}\n```\n\n### Claude Code\n\n```bash\nclaude mcp add circle -- npx -y circle-agent-stack-mcp\n```\n\n## Example\n\n```\nYou: Create a dev wallet called eva-treasury, set a $5 daily cap and $0.10 x402 cap,\n     then fetch today's BTC signal from the x402 endpoint at https://signals.example.co/btc\n\nClaude:\n→ circle_wallet_create(\"eva-treasury\", type=\"dev\")\n  { wallet_id: \"wal_abc123\", address: \"0x...\" }\n\n→ circle_policy_set(\"wal_abc123\", daily_cap_usdc=5, x402_cap_usdc=0.10)\n  { status: \"applied\" }\n\n→ circle_x402_pay(\"wal_abc123\", \"https://signals.example.co/btc\", max_price_usdc=0.10)\n  { signal: \"LONG\", confidence: 0.72, price_paid_usdc: 0.05 }\n\nToday's BTC signal: LONG (72% confidence). Paid $0.05.\n```\n\n## Self-hosting with x402 paywall\n\n`http-server.ts` wraps the same tools behind an x402 paywall — agents pay per call in USDC rather than using an API key. Useful if you want to expose Circle tooling as a paid service.\n\n```bash\nCIRCLE_PAYOUT_ADDRESS=0x... npm run start:http\n```\n\nTo test the x402 flow locally, run the toy demo server in `examples/x402-demo-server.mjs`.\n\n## How it works\n\nv0.1 shells out to the Circle CLI for all operations. This keeps auth handling out of this repo and avoids reimplementing the API client before the tool surface is validated. v0.2 will switch to direct HTTP via `@circle-fin/circle-sdk`.\n\n## Security\n\nYour Circle API key has spend authority. Always:\n\n- Set `daily_cap_usdc` before enabling automated payments\n- Start on `type=\"dev\"` wallets, not mainnet\n- Review the `allowlist` before moving to production\n- Don't commit `CIRCLE_API_KEY`\n\n## Roadmap\n\n- [ ] `circle_nanopayment_stream` — streaming x402 payments for per-token billing\n- [ ] `circle_skills_list` / `circle_skills_call` — Circle Skills marketplace\n- [ ] Direct HTTP API mode (v0.2) — remove CLI dependency\n- [ ] Multi-chain — EURC, CCTP cross-chain transfers\n\n## Related\n\n- [Circle Agent Stack docs](https://developers.circle.com/w3s/agent-stack)\n- [x402 protocol](https://x402.org)\n- [Model Context Protocol](https://modelcontextprotocol.io)\n",
  "bytes": 3118,
  "sha": "76eea3be7f92d787093ce5552733427a2792e4a39419711700ca675c6fbd86a2",
  "repo_slug": "kinance/circle-agent-stack-mcp",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/mcp_io_github_kinance_circle_agent_stack_mcp_93294ee0/readme"
}