/install agentpay-mcp
AgentPay MCP
Payment layer for AI agents via Model Context Protocol. AgentPay MCP gives your AI agent the ability to make payments, track spending, and manage payment channels -- without leaving the agent runtime.
Works with Claude Desktop, Cursor, Cline, Windsurf, and any MCP-compatible environment.
What It Does
- Make payments: Send USDC on Polygon directly from agent tool calls
- Budget management: Hard spending limits enforced per-session and per-day
- Payment channels: Open Handshake58-style channels for sub-cent micropayments
- CCTP bridge: Cross-chain USDC settlement (Ethereum, Base, Polygon, Arbitrum)
- Non-custodial: Agent holds its own keys -- no third-party custody
Installation
npm install -g agentpay-mcp
Add to your MCP config (~/.config/claude/mcp.json or equivalent):
{
"mcpServers": {
"agentpay": {
"command": "agentpay-mcp",
"env": {
"AGENT_PRIVATE_KEY": "0x...",
"RPC_URL": "https://polygon-rpc.com",
"MAX_TX_USDC": "25",
"MAX_DAILY_USDC": "500"
}
}
}
}
Tools Exposed
| Tool | Description |
|---|---|
pay |
Send USDC to an address (enforces spend limits) |
check_balance |
Query agent wallet balance |
get_spending |
Current session and daily spend totals |
open_channel |
Open a micropayment channel (Handshake58 compatible) |
pay_channel |
Issue a signed payment voucher (zero gas) |
close_channel |
Settle and reclaim unused channel funds |
bridge_usdc |
Cross-chain USDC via CCTP |
Usage Example
In Claude Desktop with AgentPay MCP configured:
"Pay 5 USDC to 0xABC...123 for the API call results"
The agent calls pay(to="0xABC...123", amount=5, token="USDC"). If within limits, it executes immediately. If over limits, it returns a request for human approval.
Environment Variables
| Variable | Required | Description |
|---|---|---|
AGENT_PRIVATE_KEY |
Yes | Agent's signing key (0x-prefixed) |
RPC_URL |
Yes | Polygon JSON-RPC endpoint |
MAX_TX_USDC |
No | Per-transaction limit in USDC (default: 25) |
MAX_DAILY_USDC |
No | Daily spending limit in USDC (default: 500) |
GitHub
https://github.com/AI-Agent-Economy/agentpay-mcp
License
MIT
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install agentpay-mcp - 安装完成后,直接呼叫该 Skill 的名称或使用
/agentpay-mcp触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
AgentPay MCP 是什么?
MCP server that gives AI agents the ability to make payments, manage budgets, and handle billing -- directly from Claude Desktop, Cursor, Cline, or any MCP-c... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 299 次。
如何安装 AgentPay MCP?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install agentpay-mcp」即可一键安装,无需额外配置。
AgentPay MCP 是免费的吗?
是的,AgentPay MCP 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
AgentPay MCP 支持哪些平台?
AgentPay MCP 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 AgentPay MCP?
由 up2itnow(@up2itnow)开发并维护,当前版本 v1.0.0。