概览
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 filtersgatefare.get_api— full details for a single APIgatefare.list_categories— all categories with API countsgatefare.suggest— autocomplete suggestions
Trust
gatefare.publisher_reputation— positive-only trust badgesgatefare.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 networkgatefare.estimate_cost— total USD cost for N planned calls
Publisher (needs GATEFARE_PAT)
gatefare.register_api— publish a new paid endpointgatefare.list_my_apis— your published APIs with statsgatefare.update_api— edit metadata / price / target URLgatefare.get_revenue— revenue time-series + totalsgatefare.distribute— trigger on-chaindistribute()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
| Name | Required | Secret | Default | Description |
|---|---|---|---|---|
WALLET_PRIVATE_KEY | optional | yes | — | EVM private key (32 bytes hex). Needed for buyer tools. Stays on user's machine. |
WALLET_BUDGET_USD | optional | no | unlimited | In-process spend cap; call_api throws BUDGET_EXHAUSTED when reached. |
WALLET_NETWORK | optional | no | eip155:8453 | Base mainnet by default; use eip155:84532 for Sepolia testnet. |
GATEFARE_PAT | optional | yes | — | Personal Access Token (gfpat_...) from gatefare.io/dashboard/tokens. Needed for publisher tools. |
GATEFARE_BASE_URL | optional | no | https://gatefare.io | Override for self-hosted Gatefare instances. |
Demo

Links
- Homepage: https://gatefare.io
- Repo: https://github.com/gatefareio/mcp-server
- npm: https://www.npmjs.com/package/@gatefare/mcp
- MCP Registry:
io.github.gatefareio/mcp-server - Twitter: https://twitter.com/Gatefareio
- Support: support@gatefare.io
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"
}
}
}
}