提交

Gatefare — paid-API marketplace

@Gatefare

Marketplace MCP for paid HTTP APIs. Pay per call in USDC on Base via the open x402 standard. Non-custodial — keys stay in env.
概览

Gatefare — Paid-API Marketplace MCP

Gatefare turns the Gatefare catalog of paid x402 APIs into MCP tools. Drop the server into Claude Desktop, Cursor, Cline, Continue, Windsurf, or Zed and your agent can:

  • Discover paid endpoints
  • Check publisher reputation
  • See a sample response
  • Estimate cost
  • Check its USDC balance on Base
  • Make paid calls
  • Register its own upstream as a paid endpoint (agent-as-a-business)

Money never touches Gatefare. Each payment settles on-chain through the Coinbase x402 facilitator and lands directly in an immutable 0xSplits contract that pays the publisher 90% and the platform 10%. The agent's wallet is configured via the host config and never leaves the process.

Features

  • Non-custodial — private keys stay in your environment
  • Pay-per-call in USDC on Base via the open x402 standard
  • On-chain revenue splits via 0xSplits (90/10)
  • 15 tools across 5 domains
  • Works with Claude Desktop, Cursor, Cline, Continue, Windsurf, Zed

Tools (15 total)

Discovery

  • gatefare.search_apis — full-text catalog search with price/category filters
  • gatefare.get_api — full details for a single API
  • gatefare.list_categories — all categories with API counts
  • gatefare.suggest — autocomplete suggestions

Trust

  • gatefare.publisher_reputation — positive-only trust badges
  • gatefare.sample_response — publisher-pasted representative response

Safety

  • gatefare.report_abuse — flag malicious or stolen APIs

Buyer (needs WALLET_PRIVATE_KEY)

  • gatefare.call_api — make a paid call (auto 402 → sign → retry)
  • gatefare.get_wallet_balance — USDC + ETH on configured network
  • gatefare.estimate_cost — total USD cost for N planned calls

Publisher (needs GATEFARE_PAT)

  • gatefare.register_api — publish a new paid endpoint
  • gatefare.list_my_apis — your published APIs with stats
  • gatefare.update_api — edit metadata / price / target URL
  • gatefare.get_revenue — revenue time-series + totals
  • gatefare.distribute — trigger on-chain distribute() payout

Installation

{
  "mcpServers": {
    "gatefare": {
      "command": "npx",
      "args": ["-y", "@gatefare/mcp"],
      "env": {
        "GATEFARE_PAT": "<YOUR_GATEFARE_PAT>",
        "WALLET_PRIVATE_KEY": "<YOUR_WALLET_PRIVATE_KEY>",
        "WALLET_BUDGET_USD": "5.00",
        "WALLET_NETWORK": "eip155:8453"
      }
    }
  }
}

Environment Variables

NameRequiredSecretDefaultDescription
WALLET_PRIVATE_KEYoptionalyesEVM private key (32 bytes hex). Needed for buyer tools. Stays on user's machine.
WALLET_BUDGET_USDoptionalnounlimitedIn-process spend cap; call_api throws BUDGET_EXHAUSTED when reached.
WALLET_NETWORKoptionalnoeip155:8453Base mainnet by default; use eip155:84532 for Sepolia testnet.
GATEFARE_PAToptionalyesPersonal Access Token (gfpat_...) from gatefare.io/dashboard/tokens. Needed for publisher tools.
GATEFARE_BASE_URLoptionalnohttps://gatefare.ioOverride for self-hosted Gatefare instances.

Demo

Gatefare MCP demo

License

MIT

服务器配置

{
  "mcpServers": {
    "gatefare": {
      "command": "npx",
      "args": [
        "-y",
        "@gatefare/mcp"
      ],
      "env": {
        "GATEFARE_PAT": "<YOUR_GATEFARE_PAT>",
        "WALLET_PRIVATE_KEY": "<YOUR_WALLET_PRIVATE_KEY>",
        "WALLET_BUDGET_USD": "5.00",
        "WALLET_NETWORK": "eip155:8453"
      }
    }
  }
}
© 2025 MCP.so. All rights reserved.

Build with ShipAny.