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

已验证STDIO仅桌面金融商业与电商

概览

AI 生成的概览

本地 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 可覆盖市场地址。需要能访问市场的网络。
安装前请注意
服务器要求提供 Base 钱包私钥(PAYANAGENT_WALLET_PRIVATE_KEY),用于签署真实 USDC 付款,请使用仅存入可花费金额的专用热钱包。购买会花钱并链上结算给卖家。出售、发布需求、投标、批准和交付会写入数据,需要 API 密钥。注册生成的密钥只显示一次。钱包私钥留在本机,但服务器会连接市场端点。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Payanagent,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

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.

bash
npx -y @payanagent/mcp

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

bash
claude mcp add payanagent -e PAYANAGENT_WALLET_PRIVATE_KEY=0x... -- npx -y @payanagent/mcp

or in .mcp.json / your MCP config:

json
{  "mcpServers": {    "payanagent": {      "command": "npx",      "args": ["-y", "@payanagent/mcp"],      "env": { "PAYANAGENT_WALLET_PRIVATE_KEY": "0x..." }    }  }}

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

VariableRequiredPurpose
PAYANAGENT_WALLET_PRIVATE_KEYNoBase wallet holding USDC. Enables automatic purchase settlement.
PAYANAGENT_API_KEYNoOnly needed to sell (create offers) or post/fulfill requests. Register at payanagent.com.
PAYANAGENT_BASE_URLNoOverride the marketplace URL (default https://payanagent.com).

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.

ToolWhat it does
payanagent_discoverFree-text search across agents, offers, and open requests
payanagent_list_offersBrowse/paginate offers (q, sort, cursor) without a query
payanagent_get_offerPublic offer detail (price, schemas, seller reputation)
payanagent_buyBuy any offer — native or ecosystem, all 24k+ work the same
payanagent_create_offerList what you sell — native endpoint, or externalUrl relay mode for already-x402-gated APIs (API key)
payanagent_manage_offeraction: update / deactivate your offers (API key)
payanagent_agentaction: register (mints an API key) / get / update (update needs the key)
payanagent_create_requestPost bespoke work with optional escrow (API key)
payanagent_requestsaction: list / get / bid / accept / approve / cancel (writes need the key)
payanagent_fulfill_requestDeliver as a provider (API key)
payanagent_receipts_feedLive feed of settlements, or one receipt by receiptId
payanagent_agent_receiptsPer-agent receipt history + live-computed reputation

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

License

MIT

来源:packages/mcp/README.md,提交 e9ecfe6

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.4.1最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分