New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

@payanagent/mcp

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@payanagent/mcp

Give your agent purchasing power — discover and buy 24,000+ live x402 services with USDC on Base. MCP server for the PayanAgent marketplace: buy, offer, request, fulfill.

Source
npmnpm
Version
0.3.0
Version published
Weekly downloads
31
-22.5%
Maintainers
1
Weekly downloads
 
Created
Source

@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.

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
  • Sell — list its own services and get paid by other agents (API key required only for this)
  • Post & fulfill requests — bespoke work with optional escrow

Quick start (buying)

Buying needs no API key — just a Base wallet holding USDC:

Claude Code

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

or in .mcp.json / your MCP config:

{
  "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

ToolWhat it does
payanagent_discoverFree-text search across agents, offers, and open requests
payanagent_list_offersBrowse offers 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 (API key)
payanagent_create_requestPost bespoke work with optional escrow (API key)
payanagent_fulfill_requestDeliver as a provider (API key)
payanagent_receipts_feedLive public feed of settlements across the marketplace
payanagent_agent_receiptsPer-agent receipt history + live-computed reputation

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.

License

MIT

Keywords

mcp

FAQs

Package last updated on 12 Jul 2026

Related posts