Apihubio

io.github.apihubio由 GitHub 账号 apihubio 发布v1.0.0更新于 Oct 24, 2026

Discover and pay for APIs with USDC credits. No wallet, no gas, MCP-native marketplace.

已验证Streamable HTTP可网页运行网页搜索与抓取金融开发者工具

概览

AI 生成的概览

一个托管式 MCP API 市场,让助手搜索 API、用预付 USDC 额度调用付费端点并查询余额。

可以做什么
按能力、类别、价格或类型搜索和浏览已接入的 API 服务,并获取单个服务的完整端点详情与 schema。通过代理调用付费端点,扣除额度并返回上游响应及扣费金额。搜索并调用外部受 x402 保护的 API,由 APIHub 代为向提供方付款。通过付费内容网关抓取并解析网页内容。查询额度余额、累计消费和请求次数,并获取充值付款说明。
适用场景
适合助手需要访问第三方 API 或 x402 服务、又不想为每个提供方接入 SDK 或使用钱包的场景,前提是你愿意预先充值额度。也适合付费网页内容提取,以及在调用前确认余额。
运行要求
远程 Streamable HTTP 端点,无需本地运行时。需要在 Authorization 请求头中提供 Bearer API 密钥(可免费注册获取)。付费调用和内容读取需要已充值的额度余额;充值以 Base 上的 USDC 支付。
安装前请注意
调用会花费真实资金:apihub_call、apihub_call_external 和 apihub_read_content 会扣除额度余额,apihub_topup 涉及链上 USDC 付款。API 密钥是计费凭证,应妥善保密。请求会转发给上游提供方,因此发送的数据会流向第三方。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Apihubio,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.apihubio%2Fmcp-server/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "apihubio": {
      "type": "http",
      "url": "https://mcp.apihub.io/mcp"
    }
  }
}

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:

json
{  "mcpServers": {    "apihub": {      "url": "https://mcp.apihub.io/mcp",      "headers": {        "Authorization": "Bearer ahk_your_api_key"      }    }  }}

APIHub CLI

bash
npx @apihubio/cli install    # writes the MCP config for younpx @apihubio/cli register   # get an API keynpx @apihubio/cli topup 10   # fund with $10 USDC

Why credits instead of per-call x402

  • Gasless: pay on-chain once when topping up, not per request
  • Walletless: no USDC, no EIP-3009 signing, no gas
  • Works in any MCP client: just a Bearer token header
  • Instant: D1 debit at the edge, no block confirmations per call

Learn more

License

The hosted service is operated by APIHub. This repository contains integration documentation only.

来源:README.md,提交 eb58e21

工具

9

apihub_list_services

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 don't have a specific capability in mind; prefer apihub_search when filtering by query, category, or price. Does not include external x402 APIs (use apihub_search_external for those) and does not return endpoint-level details (use apihub_get_service for that).

输入参数limit

apihub_get_service

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

输入参数service_slug必填

apihub_call

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. Requires a valid API key and sufficient credit balance; if balance is insufficient the call returns a 402 with payment requirements (use apihub_topup to add credits, apihub_balance to check). Use this for services already onboarded to APIHub (find slugs via apihub_search or apihub_list_services); use apihub_call_external for arbitrary x402 URLs not onboarded here, or apihub_read_content for content gateways.

输入参数bodymethodservice_slug必填endpoint_path必填

apihub_search_external

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.

输入参数limitquerycategory

apihub_call_external

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.

输入参数url必填bodymethodheaders

apihub_read_content

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

输入参数url必填service_slug必填

apihub_topup

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.

输入参数amount_dollars必填

apihub_balance

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 request, or periodically to audit usage. Does not modify state, send payments, or call upstream APIs; for top-ups use apihub_topup.

无需输入参数。

版本历史

1
  1. v1.0.0最新Sep 16, 2026

评分

已满足适用检查项的 90%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。