P

Payfetch

MCP server · by forum-labs

Web APIs npm v1.0.0

x402 paying-fetch client for AI agents. Spending caps, approval, receipts. Non-custodial.

View source ↗ Generate config for multiple servers More servers

Install

registry version 1.0.0

npm
npx -y @forum-labs/payfetch

Setup by client

Pick your client — the config below is generated for this server (local stdio). Copy respects the “Pin version” switch above.

claude_desktop_config.json

{
  "mcpServers": {
    "payfetch": {
      "command": "npx",
      "args": [
        "-y",
        "@forum-labs/payfetch"
      ],
      "env": {
        "PAYFETCH_PRIVATE_KEY": "<YOUR_PAYFETCH_PRIVATE_KEY>",
        "PAYFETCH_CDP_API_KEY_ID": "<YOUR_PAYFETCH_CDP_API_KEY_ID>",
        "PAYFETCH_CDP_API_KEY_SECRET": "<YOUR_PAYFETCH_CDP_API_KEY_SECRET>",
        "PAYFETCH_CDP_WALLET_SECRET": "<YOUR_PAYFETCH_CDP_WALLET_SECRET>"
      }
    }
  }
}

Format verified against the official Claude Desktop docs ↗.

Environment variables

Defined in the server's official registry manifest. Required secrets are shown as <YOUR_…> placeholders in the configs above.

  • PAYFETCH_PRIVATE_KEY secret — 0x-hex EVM private key for a DEDICATED low-balance wallet. Set exactly ONE signer source.
  • PAYFETCH_KEY_FILE — Path to a chmod-600 file holding a 0x-hex key (signer alt).
  • PAYFETCH_CDP_API_KEY_ID secret — Coinbase CDP server-wallet key id (YOUR account).
  • PAYFETCH_CDP_API_KEY_SECRET secret — Coinbase CDP API key secret.
  • PAYFETCH_CDP_WALLET_SECRET secret — Coinbase CDP wallet secret.
  • PAYFETCH_CDP_ACCOUNT_NAME — Optional named CDP EVM account.
  • PAYFETCH_DATA_DIR — Ledger/state/config root. Default ~/.payfetch.
  • PAYFETCH_TEST_MODE — Any value -> receipts test:true, Base mainnet refused (Sepolia only).

GitHub

最近更新于 124 天前 · MIT license

About this server

payfetch payfetch lets an AI agent fetch a URL and, when the server answers HTTP 402 (the x402 payment protocol), pay for it automatically, but only within a spending policy you control. It is non custodial: you bring your own wallet, the key stays on your machine, and no MCP tool can raise the limi…

Summary from the project README — github.com/forum-labs/payfetch

Distributed as npm, listed under Web APIs. Review our MCP security guide before granting access to real data.

Frequently asked questions

What does the Payfetch MCP server do?

payfetch payfetch lets an AI agent fetch a URL and, when the server answers HTTP 402 (the x402 payment protocol), pay for it automatically, but only within a spending policy you control. It is non custodial: you bring your own wallet, the key stays on your machine, and no MCP tool can raise the limi

How do I install Payfetch?

Run the install command shown above, then paste the config for your client (Claude Desktop, Claude Code, Cursor, VS Code or Windsurf) into its MCP settings and restart the client.

Is Payfetch free to use?

The MCP server itself is free to install. The source is public on https://github.com/forum-labs/payfetch. Any third-party service it calls may require its own API key and account.

Which clients support Payfetch?

Any MCP-compatible client can use it, including Claude Desktop, Claude Code, Cursor, VS Code, Windsurf and custom agents.

Add this badge

Publish this server? Link back with a badge on your README or site — copy either snippet.

Listed on MCPNav

Markdown

[![Listed on MCPNav](https://mcpnav.net/badge/payfetch.svg)](https://mcpnav.net/server/payfetch/)

HTML

<a href="https://mcpnav.net/server/payfetch/"><img src="https://mcpnav.net/badge/payfetch.svg" alt="Listed on MCPNav" height="20"></a>