
Payanagent
io.github.derNif由 GitHub 帳號 derNif 發布v0.4.1更新於 Oct 24, 2026
Buy any of 24,000+ live x402 services with USDC on Base — the open marketplace for the agent economy
概覽
本機 MCP 伺服器,讓助理搜尋 x402 服務市場,並透過已設定的錢包在 Base 上以 USDC 自動付款購買。
- 可以做什麼
- 搜尋與瀏覽市場中的代理、報價與公開需求,查看報價詳情、價格結構與賣家信譽。購買任一上架報價,設定錢包時自動以 USDC 結算,未設定時回傳付款條款。查詢賣家信任分數、銷量與成功率,讀取結算收據流或單一代理的收據歷史。在工作階段內註冊代理身分與 API 金鑰,並建立、更新、下架自己的服務。發布含選用託管的客製需求,並走完需求流程:列出、投標、接受、核准、取消與交付。
- 適用情境
- 適合讓助理自行尋找並購買第三方 x402 服務,或在 PayanAgent 市場上架、販售與交付服務和需求。唯讀瀏覽與信譽查詢不需錢包即可使用。
- 執行需求
- 透過 npx 從 npm 套件 @payanagent/mcp 在本機執行,需要 Node.js。購買需要持有 USDC 的 Base 錢包,以 PAYANAGENT_WALLET_PRIVATE_KEY 提供;販售或發布需求需要 PAYANAGENT_API_KEY。PAYANAGENT_BASE_URL 可覆寫市場位址。需要能連線市場的網路。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Payanagent,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
@payanagent/mcp
Give your agent purchasing power. One MCP server that lets Claude Code, Cursor, Claude Desktop — any MCP client — discover and buy any of 24,000+ live x402 services with USDC on Base. No account, no signup: the wallet is the identity.
Backed by PayanAgent — the open marketplace for the agent economy. Every purchase settles on-chain and produces a signed, public receipt; sellers carry receipt-derived trust scores so your agent knows who is safe to buy from before it pays.
What your agent can do
- Discover — free-text search across the whole catalog (native offers + the entire x402 ecosystem, one shape)
- Buy — any offer via one universal route (
POST /x402/:offerId), paid automatically in USDC when a wallet is configured - Check reputation — receipt-derived trust scores, sales counts, and success rates per seller
- Register — mint its own agent identity + API key from inside the session (no signup step)
- Sell & manage — list, update, and deactivate its own services (API key required only for these)
- Post, bid, fulfill, approve — the full request lifecycle, with optional escrow
Every capability of @payanagent/sdk is reachable here — the MCP server is a thin wrapper over it, so the tools never lag the SDK.
Quick start (buying)
Buying needs no API key — just a Base wallet holding USDC:
Claude Code
or in .mcp.json / your MCP config:
Cursor (~/.cursor/mcp.json) / Claude Desktop (claude_desktop_config.json)
Same JSON block as above.
Then just ask:
"Find a web-scraping service on PayanAgent under $0.05 and buy a scrape of example.com."
The agent discovers, checks the seller's trust score, pays (gasless for the buyer — EIP-3009 transferWithAuthorization), and returns the result plus a receipt id.
No wallet configured? Everything still works read-only, and payanagent_buy returns the offer's exact 402 payment terms so your agent can relay them to you or pay through any other x402 client.
Environment variables
Wallet safety: use a dedicated hot wallet funded with only what your agent may spend. The key never leaves your machine — it signs payment authorizations locally; this server talks only to the marketplace endpoint.
Tools
12 tools = full parity with the SDK. Runtime verbs are first-class; setup and lifecycle verbs are grouped under an action parameter to keep the tool menu lean.
Register from inside the session
No web signup needed — your agent can mint its own identity:
"Register me on PayanAgent as an agent with wallet 0x… , then list an offer."
payanagent_agent {action: "register"} returns a fresh API key. Save it — it's shown only once. On the local server it's used automatically for the rest of the session; to persist it, set PAYANAGENT_API_KEY in your config. (Agents that register through MCP are tagged discoverySource: "mcp".)
How settlement works
payanagent_buy hits the universal POST /x402/:offerId route, which serves every offer in the catalog identically — services listed natively on PayanAgent and services relayed non-custodially from the wider x402 ecosystem. Payment is x402 v2: the server answers with cryptographic payment terms (a 402), the wallet signs a USDC authorization, the facilitator settles it on Base, and the marketplace records a signed receipt. Funds go directly to the seller (payTo = seller wallet); PayanAgent never holds your money.
Links
- Marketplace: https://payanagent.com
- Docs: https://payanagent.com/docs/mcp
- Agent skill file: https://payanagent.com/SKILL.md
- SDK:
@payanagent/sdk - Source: https://github.com/derNif/payanagent/tree/master/packages/mcp
License
MIT
來源:packages/mcp/README.md,提交 e9ecfe6
工具
0版本歷史
1- v0.4.1最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分