# Gatefareio MCP [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://github.com/gatefareio/mcp-server  
**GitHub Stars:** 2  
**npm Downloads (last month):** 239  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/mcp-server-118

## Description
Marketplace of paid HTTP APIs. USDC micropayments via x402 on Base. Non-custodial.

## Tools
Capabilities this server exposes over MCP:

- **gatefare.search_apis** — Full-text search the catalog with filters (price, category, sort)
- **gatefare.get_api** — Full details for one API by slug or `handle/urlName
- **gatefare.list_categories** — All categories with API counts
- **gatefare.suggest** — Autocomplete suggestions for a query string
- **gatefare.call_api** — Make a paid call. Handles 402 → sign → retry automatically
- **gatefare.get_wallet_balance** — USDC + ETH on Base, plus remaining runtime budget
- **gatefare.estimate_cost** — Project total cost for N planned calls
- **gatefare.register_api** — Publish a new paid API
- **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 (destructive)
- **gatefare.report_abuse** — Report a malicious / stolen API (DMCA, fraud, malware…)

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "gatefareio-mcp": {
    "command": "npx",
    "args": ["-y","@gatefare/mcp"],
    "env": {
      "GATEFARE_BASE_URL": "",
      "WALLET_PRIVATE_KEY": "",
      "WALLET_BUDGET_USD": "",
      "WALLET_NETWORK": "",
      "GATEFARE_PAT": "",
      "LOG_LEVEL": ""
    }
  }
}
```

**Requires environment variables:** `GATEFARE_BASE_URL`, `WALLET_PRIVATE_KEY`, `WALLET_BUDGET_USD`, `WALLET_NETWORK`, `GATEFARE_PAT`, `LOG_LEVEL` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What gatefareio/mcp-server does

The gatefareio/mcp-server MCP server gives an MCP client access to Gatefare, a marketplace for paid HTTP APIs. It separates the workflow into discovery, buying, publishing, and safety functions. Agents can search the catalog, inspect an API, browse categories, request query suggestions, and report suspected abuse without configuring a wallet or publisher token.

For paid requests, the server uses a locally configured wallet to handle the x402 payment flow. The agent calls an API through Gatefare, and the server responds to a payment challenge by signing and retrying the request. Payments settle in USDC on Base. The private key remains on the machine running the server, making the wallet non-custodial from the server’s perspective.

## How it works

The server communicates with clients through MCP over standard input and output. A typical client launches the npm package with `npx -y @gatefare/mcp`. The client then discovers the tools exposed by the process and can invoke them through MCP.

Tool availability is conditional. Discovery and safety tools are always registered. Buyer tools require `WALLET_PRIVATE_KEY`, while publisher tools require `GATEFARE_PAT`. This lets a read-only catalog setup run without exposing payment or publishing operations to an agent that does not need them.

A paid call first reaches the Gatefare proxy, which can return an HTTP 402 response. The server signs the required payment locally and retries the request. `WALLET_BUDGET_USD` can limit runtime spending, while the wallet’s funded balance remains the hard practical limit.

## Setup and configuration

Add the server to an MCP client configuration using the `npx` command and restart the client. The README provides configurations for Claude Desktop and Cursor, as well as examples for Python and TypeScript clients.

Supported settings include:

- `GATEFARE_BASE_URL`: Changes the default Gatefare endpoint, including for a self-hosted deployment.
- `WALLET_PRIVATE_KEY`: Enables buyer operations.
- `WALLET_BUDGET_USD`: Sets an optional runtime spending cap.
- `WALLET_NETWORK`: Selects Base mainnet by default or Base Sepolia using `eip155:84532`.
- `GATEFARE_PAT`: Enables publisher operations.
- `LOG_LEVEL`: Uses `debug` for more verbose stderr logging.

## Tools and capabilities

The gatefareio/mcp-server MCP server exposes catalog search with price, category, and sort filters; API lookup by slug or handle; category counts; and autocomplete suggestions. Buyer operations include making a paid API call, checking USDC and ETH balances on Base, viewing remaining runtime budget, and estimating the cost of a planned number of calls.

With a Gatefare personal access token, an agent can register an API, list owned APIs and their statistics, update metadata, pricing, or target URLs, inspect revenue totals and time series, and trigger an on-chain `distribute()` payout. The payout operation is destructive and should be treated differently from read-only management calls.

Tool failures return a structured error with an error code, human-readable message, and optional details. Codes cover invalid input, missing credentials, exhausted budgets, insufficient balance, unavailable APIs, upstream failures, rate limits, and Gatefare API errors.

## Limitations and notes

This server is designed for MCP-based agent workflows rather than direct backend payment integration. The README recommends Coinbase x402 SDKs when an application needs to pay x402 APIs without an agent, and the Gatefare REST API when only catalog browsing is required.

A private key is needed for buyer tools, and a funded wallet must contain enough USDC for calls and ETH for network activity. The runtime budget is a safety control, not a substitute for funding the wallet with only the amount that can be spent. Publisher features also depend on a Gatefare PAT. The default network is Base mainnet, with Sepolia available through configuration.

_Full upstream README: https://allmcps.com/mcp/mcp-server-118/readme_

