x402 micropayments MCP: Xiaohongshu notes and paid APIs settled in USDC on Base.
MCPpedia last refreshed this data
io.github.yyxqqq777/agentpay is an MCP server that x402 micropayments MCP: Xiaohongshu notes and paid APIs settled in USDC on Base. Its tool list has not been published yet over http and stdio, requires no API key, and scores 82/100 on MCPpedia's security, maintenance and efficiency rubric.
Config is the same across clients - only the file and path differ.
{
"mcpServers": {
"agentpay": {
"env": {
"AGENT_PRIVATE_KEY": "0xYourAgentPrivateKey"
},
"args": [
"mcp-server-agentpay"
],
"command": "uvx"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
x402 micropayments MCP: Xiaohongshu notes and paid APIs settled in USDC on Base.
This server supports HTTP transport. Be the first to test it - help the community know if it works.
Five weighted categories - click any category to see the underlying evidence.
No known CVEs.
Checked mcp-server-agentpay against OSV.dev.
Click any tool to inspect its schema.
Be the first to review
Have you used this server?
Share your experience - it helps other developers decide.
Sign in to write a review.
Others in finance
OKX trading MCP server — connect AI agents to spot, swap, futures, options & grid bots via the Model Context Protocol.
Open-source AI Security Operations Center: alert fusion, LLM-agent triage, MITRE ATT&CK investigation, and a replayable decision ledger for every agent step. Self-hostable, runs with no API keys, MIT licensed. Ships an MCP server for Claude, Cursor and Continue.
LuxAlgo for AI agents: the Library, prop firms, Market Trackers, Edge Stats, and your Trade Journal
Rug-check & launch radar for trading agents: composite honeypot score, EVM+Solana, keyless x402.
MCP Security Weekly
Get CVE alerts and security updates for io.github.yyxqqq777/agentpay and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
Agent-to-Agent micropayments via x402 + MCP — let AI agents autonomously pay for API access with USDC on Base.
在 Cursor / Claude / 任意支持 Streamable HTTP 的客户端添加:
https://agentpay-xhs-production.up.railway.app/mcp
官方 Registry 条目:io.github.yyxqqq777/agentpay
uvx / PyPI){
"mcpServers": {
"agentpay": {
"command": "uvx",
"args": ["mcp-server-agentpay"],
"env": {
"AGENT_PRIVATE_KEY": "0xYourAgentPrivateKey"
}
}
}
}
只需填付款钱包私钥(需有 USDC)。网关地址已内置,一般不用改。
或永久安装:
pip install mcp-server-agentpay
# or
uv tool install mcp-server-agentpay
| Tool | Description | Cost |
|---|---|---|
xhs_get_note_detail | Xiaohongshu note detail | 0.01 USDC/call |
xhs_get_user_notes | Xiaohongshu user posted notes list | 0.01 USDC/call |
china_wholesale_pricing_query | Factory-direct wholesale pricing (1688/Yiwu) | 0.01 USDC/call |
agentpay_payment_status | View payment config, wallet, and spending limits | Free |
| Variable | Required | Description |
|---|---|---|
AGENT_PRIVATE_KEY | Yes(付费工具) | 付款钱包私钥 |
MAX_SPEND_PER_CALL | No | 单次上限(默认 0.10) |
GATEWAY_BASE_URL | No | 网关地址(默认已指向公网 Gateway) |
MCP Client → mcp-server-agentpay → x402 Gateway → Paid API
(auto 402 → sign → retry) (verify USDC)
402 Payment Required with USDC payment detailsIf you operate the paid API, deploy the gateway separately:
pip install "mcp-server-agentpay[gateway]"
# .env: PAYMENT_MODE=production + upstream keys + your receive wallet
agentpay-gateway
| Mode | Behavior |
|---|---|
PAYMENT_MODE=demo | Local fake pay (dev only) |
PAYMENT_MODE=production | Official Facilitator verify + settle on-chain |
Testnet (Base Sepolia) — use https://x402.org/facilitator, network eip155:84532.
# Fund a test agent with Sepolia USDC, then:
PYTHONPATH=src python scripts/test_x402_settlement.py
Mainnet — set PAYMENT_NETWORK=eip155:8453 and a mainnet facilitator
(https://api.cdp.coinbase.com/platform/v2/x402 or PayAI). USDC goes to WALLET_RECIPIENT_ADDRESS.
See .env.example.
This package is designed for the official MCP Registry.
# 1. Publish to PyPI
pip install build twine
python -m build && twine upload dist/*
# 2. Publish to MCP Registry (packages + remotes)
./scripts/publish_all.sh
Or create a GitHub Release (v0.1.0) — Actions uses Trusted Publishing to PyPI then updates the Registry.
Before publishing, update server.json and README mcp-name with your GitHub namespace (io.github.<username>/agentpay).
git clone https://github.com/yyxqqq777/mcp-server-agentpay
cd mcp-server-agentpay
python -m venv .venv && source .venv/bin/activate
pip install -e ".[dev]"
pytest tests/ -v
MIT