apihubio avatar

Mcp Server

apihubio/mcp-server

Connects Claude to APIHub's paid API marketplace, letting you search, browse, and call metered APIs using prepaid USDC credits instead of managing wallets or gas per request. You get nine tools: search and list services, fetch service details, make paid calls to onboarded or external x402 APIs, read gated web content, and manage your credit balance. Useful when you need to orchestrate calls across multiple paid data sources without wiring up individual provider SDKs or handling per-call blockchain transactions. Authentication is just a bearer token, and debits happen instantly at the edge against your prepaid balance.

tools
9
transport
HTTP
last updated
Apr 28, 2026

Install

From registry metadata
$ npx add-mcp https://mcp.apihub.io/mcp --name apihubio

Run in your terminal. add-mcp asks which agents to add it to (Claude Code, Codex, Cursor and more). Add -g to install it for every project.

Review the command, arguments and environment values before installing. MCP servers run with your local permissions.

Other ways

Claude Code

$ claude mcp add --transport http apihubio https://mcp.apihub.io/mcp

Run in your terminal. Add --scope user to make it available in every project.

Tools

Verified live · 9 tools

Verified live against the running server on Nov 6, 2026.

apihub_searchRead-only. Searches onboarded APIHub services by free-text query, with optional category, price, and type filters. Returns up to 10 matches ranked by uptime and endpoint count, each with slug, description, endpoints array, min price in microdollars, provider name, and quality...4 params

Read-only. Searches onboarded APIHub services by free-text query, with optional category, price, and type filters. Returns up to 10 matches ranked by uptime and endpoint count, each with slug, description, endpoints array, min price in microdollars, provider name, and quality...

Parameters* required
categorystring
Optional exact-match filter. Valid values: ai, data, search, finance, media, infra, communication, content, travel.
max_price_microdollarsnumber
Optional upper bound on price per request in microdollars (1 USD = 1,000,000 microdollars, so 10000 = $0.01). Services whose cheapest endpoint exceeds this are excluded.
query*string
Required free-text query matched against service name and description (case-insensitive substring match). Use 1-3 keywords describing the capability you want, e.g. 'weather' or 'stock price'.
typestring
Optional filter. 'api' = standard REST APIs, 'content' = content gateways that proxy a fixed upstream URL.one of api · content
apihub_list_servicesRead-only. Lists onboarded APIHub services alphabetically, returning each service's slug, name, description, category, provider, endpoint count, and lowest per-endpoint price in microdollars. No authentication required. Use this to browse the full onboarded catalog when you do...1 params

Read-only. Lists onboarded APIHub services alphabetically, returning each service's slug, name, description, category, provider, endpoint count, and lowest per-endpoint price in microdollars. No authentication required. Use this to browse the full onboarded catalog when you do...

Parameters* required
limitnumber
Optional max number of services to return. Default 20, minimum 1, hard cap 100. Values above 100 are clamped.
apihub_get_serviceGet full details for a specific API service including all endpoints, schemas, and pricing.1 params

Get full details for a specific API service including all endpoints, schemas, and pricing.

Parameters* required
service_slug*string
The service slug (e.g., 'exchange-rates')
apihub_callSends payment. Calls a paid endpoint on an onboarded APIHub service. Debits the endpoint's price from your credit balance and forwards the request to the upstream provider. Returns an object with the upstream response body, HTTP status, and credits_charged_microdollars. Requir...4 params

Sends payment. Calls a paid endpoint on an onboarded APIHub service. Debits the endpoint's price from your credit balance and forwards the request to the upstream provider. Returns an object with the upstream response body, HTTP status, and credits_charged_microdollars. Requir...

Parameters* required
bodystring
Optional. Request body as a JSON string for POST/PUT. Ignored for GET/DELETE. The proxy forwards this verbatim with Content-Type: application/json.
endpoint_path*string
Required. The endpoint path including any leading slash, e.g. '/latest/USD' or '/v1/forecast'. Get valid paths from apihub_get_service.
methodstring
Optional HTTP method, default GET. Must match the method declared on the endpoint or the request will fail.one of GET · POST · PUT · DELETE
service_slug*string
Required. The service slug as returned by apihub_search or apihub_list_services, e.g. 'exchange-rates' or 'weather'.
apihub_search_externalSearch external x402-protected APIs (not operated by APIHub, but callable via credits). Returns listings with endpoint counts, prices, and tx_count_7d (USDC payments received on Base in the last 7 days), most used first.3 params

Search external x402-protected APIs (not operated by APIHub, but callable via credits). Returns listings with endpoint counts, prices, and tx_count_7d (USDC payments received on Base in the last 7 days), most used first.

Parameters* required
categorystring
Filter by category (ai, search, finance, media, other)
limitnumber
Max results (default 10, max 50)
querystring
Search text matched against name/description
apihub_call_externalCall an external x402-protected URL (any provider in the marketplace or any x402 API). APIHub pays the provider on your behalf using the platform wallet and debits your credit balance for the exact amount. No wallet or gas required.4 params

Call an external x402-protected URL (any provider in the marketplace or any x402 API). APIHub pays the provider on your behalf using the platform wallet and debits your credit balance for the exact amount. No wallet or gas required.

Parameters* required
bodyvalue
Request body (object or string). Omit for GET.
headersobject
Additional request headers. Do not set Authorization or X-PAYMENT - handled automatically.
methodstring
HTTP method (default POST)one of GET · POST · PUT · DELETE
url*string
The full URL to call (e.g. https://hub.atxp.ai/...)
apihub_read_contentRead web content through a paid content gateway. Returns clean, structured text extracted from the URL. Use this for content services (service_type = 'content').2 params

Read web content through a paid content gateway. Returns clean, structured text extracted from the URL. Use this for content services (service_type = 'content').

Parameters* required
service_slug*string
The content service slug
url*string
The full URL to read (must match a verified domain on the service)
apihub_topupPurchase APIHub credits via x402 (USDC on Base). Returns payment instructions including a web URL for browser-based payment, a CLI command, and raw x402 requirements for agents with wallet support. Credits are added to your account instantly once payment confirms on-chain.1 params

Purchase APIHub credits via x402 (USDC on Base). Returns payment instructions including a web URL for browser-based payment, a CLI command, and raw x402 requirements for agents with wallet support. Credits are added to your account instantly once payment confirms on-chain.

Parameters* required
amount_dollars*number
Amount to top up in USD. Minimum $5.00, maximum $10,000 per call. Example: 10 for $10.
apihub_balanceRead-only. Returns your current APIHub credit balance (in microdollars and USD), total lifetime spending (microdollars and USD), and total completed request count. Requires a valid API key. Use before apihub_call or apihub_call_external to confirm sufficient funds for a paid r...

Read-only. Returns your current APIHub credit balance (in microdollars and USD), total lifetime spending (microdollars and USD), and total completed request count. Requires a valid API key. Use before apihub_call or apihub_call_external to confirm sufficient funds for a paid r...

No parameters. Call it with no arguments.

Sponsors

Readme

APIHub MCP Server

MCP server for APIHub — discover and call paid APIs with USDC credits. No wallet, no gas, no per-provider SDKs.

  • Hosted endpoint: https://mcp.apihub.io/mcp
  • Transport: Streamable HTTP
  • Protocol version: 2025-03-26
  • Auth: Bearer token (get a free key at apihub.io)

Tools

ToolDescription
apihub_searchSearch for APIs by capability, category, or price range
apihub_list_servicesList available onboarded API services
apihub_get_serviceFetch full details for a specific service
apihub_callMake a paid API call through the proxy (debits credits)
apihub_search_externalSearch the external x402 catalog
apihub_call_externalCall any external x402 API via credits
apihub_read_contentFetch and parse a web page through a paid content gateway
apihub_topupGet payment instructions to top up your credit balance
apihub_balanceCheck your credit balance and spending history

Quick start

Claude Desktop / Cursor / Codex

Add to your MCP config:


View the full README on GitHub

Details

Repository
github.com/apihubio/mcp-server
Transport
HTTP
Registry
MCP registry, active
Tools verified
Nov 6, 2026