MCP server
AgentPay
x402 micropayments MCP: Xiaohongshu notes and paid APIs settled in USDC on Base.
- Pricing
- Open source
- Runs
- Locally or Remotely
- Version
- 0.1.3
- Listing updated
- 5 days ago
About AgentPay
AgentPay is an open-source MCP server. It can run locally on your machine or as a hosted remote server.
Install
Run in a terminal
claude mcp add --transport http agentpay https://agentpay-xhs-production.up.railway.app/mcpAdd to Settings → Connectors → Add custom connector
https://agentpay-xhs-production.up.railway.app/mcpInstall in CursorOpens Cursor, which asks you to confirm. Or add it by hand:
Add to ~/.cursor/mcp.json
{
"mcpServers": {
"agentpay": {
"url": "https://agentpay-xhs-production.up.railway.app/mcp"
}
}
}Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:
Add to .vscode/mcp.json
{
"servers": {
"agentpay": {
"type": "http",
"url": "https://agentpay-xhs-production.up.railway.app/mcp"
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"agentpay": {
"serverUrl": "https://agentpay-xhs-production.up.railway.app/mcp"
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"agentpay": {
"type": "http",
"url": "https://agentpay-xhs-production.up.railway.app/mcp"
}
}
}Using several servers? Build one config file with the MCP config generator.
Configuration
AGENT_PRIVATE_KEYEVM private key for signing USDC micropayments on Base (wallet must hold USDC)RequiredMAX_SPEND_PER_CALLMaximum USDC the agent may spend per API call (default: 0.10)GATEWAY_BASE_URLOptional override of the AgentPay gateway URL
Pricing
Open source
AgentPay FAQ
Is AgentPay free?
Yes. AgentPay is open source, so you can use and self-host it for free.
How do I add AgentPay to Claude Code?
Run this command in your terminal: claude mcp add --transport http agentpay https://agentpay-xhs-production.up.railway.app/mcp
Where this comes from
- Description: from the official MCP Registry entry.
- Install steps: from the official MCP Registry entry.