AnyAPI

io.github.getanyapi-com由 GitHub 帳號 getanyapi-com 發布v0.1.5更新於 Oct 27, 2026

Hundreds of scraping & data APIs through one key. USD pay-per-request, normalized schemas, failover.

已驗證Streamable HTTP可網頁執行網頁搜尋與抓取資料與分析商業與電商

概覽

AI 產生的概覽

用一組金鑰串接數百個擷取與資料 API 的閘道,讓助理搜尋目錄、查詢價格並以美元按次付費執行呼叫。

可以做什麼
  • 依語意、關鍵字、分類或平台搜尋與瀏覽 API 目錄,並檢視單一 API 的完整輸入輸出 schema、價格與延遲
  • 在不扣款、不執行的情況下,取得擬定呼叫的精確依輸入計價報價
  • 以正規化輸入執行 API,回傳輸出、費用與項目,並支援欄位篩選、筆數上限、摘要與 jq 重塑
  • 依 ID 檢視或續接持久化請求,並重新讀取或重塑已付費結果而不必再次付費
  • 查詢該金鑰對應的美元錢包餘額
  • 以缺陷回報反映錯誤資料,或免費提交關於缺少 API、欄位或文件不清的意見
適用情境
適合助理需要跨多個供應商進行網頁擷取或資料查詢、又不想逐一介接的情況,也適合重視按次美元計價、正規化 schema 與自動容錯移轉的場景。無金鑰安裝即可先瀏覽目錄並為呼叫報價。
執行需求
可作為遠端 Streamable HTTP 端點使用,也可透過 npx(anyapi-mcp)或 Docker 以 stdio 在本機執行,供只能啟動本機伺服器的用戶端使用。執行 API 與使用帳戶類工具需要 ANYAPI_API_KEY 或 Authorization Bearer 權杖中的 AnyAPI 金鑰;目錄類工具不需金鑰。需要能連線至託管端點的網路。
安裝前請注意
run_api 會從預付美元錢包實際扣款,建議先查餘額並報價;說明稱失敗呼叫不扣款。API 金鑰是可計費憑證,應避免寫入共用設定。run_api 會把輸入資料送往第三方 API 供應商,結果僅短暫快取且僅對帳戶可見。缺陷與意見工具會把文字送往服務商。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 AnyAPI,將其新增到工作區。
  2. 連接 Authorization token 憑證。它們會被私密儲存,絕不會在公開頁面上展示。
  3. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.github.getanyapi-com%2Fanyapi/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "anyapi": {
      "type": "http",
      "url": "https://api.getanyapi.com/mcp",
      "headers": {
        "Authorization": "Bearer <YOUR_TOKEN>"
      }
    }
  }
}

README

AnyAPI MCP server

Hundreds of scraping and data APIs through one gateway: one key, USD pay-per-request, normalized schemas, automatic failover.

This package is a local stdio MCP server that proxies to the hosted AnyAPI MCP server at https://api.getanyapi.com/mcp. Clients that speak remote Streamable HTTP can point at that URL directly and skip this package entirely. Use this one when your client only launches local MCP servers over stdio.

Install

With npx, no clone and no build:

json
{  "mcpServers": {    "anyapi": {      "command": "npx",      "args": ["-y", "anyapi-mcp"],      "env": { "ANYAPI_API_KEY": "aa_live_..." }    }  }}

With Docker, no clone and no build:

json
{  "mcpServers": {    "anyapi": {      "command": "docker",      "args": ["run", "-i", "--rm", "-e", "ANYAPI_API_KEY", "ghcr.io/getanyapi-com/mcp"],      "env": { "ANYAPI_API_KEY": "aa_live_..." }    }  }}

Get a key at https://getanyapi.com/dashboard/keys. Agents can mint their own free-trial key with no dashboard and no email:

bash
curl -s -X POST https://api.getanyapi.com/agent/signup

Configuration

VariableRequiredDefaultMeaning
ANYAPI_API_KEYNononeYour AnyAPI key. Running an API needs it. Connecting, listing the tools, and the four catalog tools do not.
ANYAPI_MCP_URLNohttps://api.getanyapi.com/mcpThe hosted endpoint to proxy to.

The key is optional on purpose, but be precise about what that buys. The hosted server answers initialize and tools/list without a credential, so a client connects and sees the ten tools with no account. It also answers the four catalog tools without one - search_apis, list_apis, get_api and quote_api - so a keyless install can find an API, read its input schema and price a call. run_api and the account tools return 401 without a key.

The same catalog is public over REST as well: GET https://api.getanyapi.com/catalog and GET https://api.getanyapi.com/catalog/search.

Tools

Ten tools, read live from the hosted server rather than declared in this package, so a catalog or schema change reaches you without a release here.

ToolWhat it does
search_apisSearch APIs by meaning and keyword. Takes any combination of query, category and platform; a scope on its own is a complete search.
list_apisBrowse the catalog as lightweight summaries (id, name, category, USD pricing), with an optional category.
get_apiThe full definition of one API: normalized input/output JSON Schemas, per-lane USD pricing, and trailing-30-day latency.
quote_apiThe exact USD price of a run_api call before running it. Nothing is charged or executed.
run_apiExecute an API by SKU with normalized input. Returns the output, costUsd, and items. Supports fields, max_items, summary and jq.
get_requestInspect or resume a durable request. Reads stored state and never repeats the paid dispatch.
read_resultRe-shape a prior run's output without re-running or paying again.
get_balanceThe remaining USD wallet balance for the key.
report_bugReport wrong, empty, or malformed data for input you believe is valid. Free.
send_feedbackReport a missing API, a missing field, or anything confusing. Free.

Failed calls are never charged.

Develop

bash
npm installnpm run check   # build, then unit tests

npm run check needs no network and no API key. To drive the built server against production by hand:

bash
npm run buildANYAPI_API_KEY=aa_live_... node dist/index.js

License

Apache-2.0

來源:README.md,提交 5b75122

工具

10

get_api

Get API details

Get the full definition of one API by API slug, including its normalized input/output JSON schemas, per-request and per-1,000-request USD pricing on every source, and nullable trailing-30-day latency p50/p95/p99 with the successful sample count. Latency percentiles describe observed successful requests; p99 is an observation, not a maximum or a client timeout guarantee. Entries with heavy:true produce large API responses.

輸入參數sku_id必填context必填

get_balance

Check wallet balance

Get the remaining wallet balance (in USD) for the AnyAPI key supplied as a Bearer token. Requires a valid AnyAPI key.

輸入參數context必填

get_request

Check a request

Inspect or resume a durable AnyAPI request by request_id. This reads AnyAPI's stored state and never repeats the paid provider dispatch. While status is queued or running, retryAfterSeconds gives the minimum interval between status checks.

輸入參數context必填request_id必填

list_apis

Browse APIs

Browse available AnyAPI APIs as lightweight summaries (id, name, category, USD pricing), optionally filtered by category. Descriptions and schemas are omitted to keep catalog responses small. Each pricing offer carries both `maxUsd` (billed per request) and `maxPer1kUsd` (the same price per 1,000 requests).

輸入參數context必填category

quote_api

Quote a price

Get the exact input-aware execution price for an API, free and without a key. Nothing is charged or executed. `sku_id` and `input` identify the proposed execution; pricing resolves exactly as it does for execution, and input validation can return invalid_input without a charge. Returns maxCostUsd (the ceiling reserved), minCostUsd (the likely charge), and the base/per-item breakdown explaining why they differ. These are USD amounts for this one call, not per-1,000-request catalog comparison rates.

輸入參數input必填sku_id必填context必填

read_result

Read a saved result

Read or reshape a previously paid API result without executing or paying again. `result_id` identifies the full cached result; fields/max_items/summary/jq control its presentation, including row selection and slicing large fields. Results are cached ~15 min and are private to the authenticated account; an expired id returns result_expired.

輸入參數jqfieldscontext必填summarymax_itemsresult_id必填

report_bug

Report a bug

Submit a defect report to AnyAPI about wrong, empty, or malformed API data for valid input, misleading or unactionable errors, incorrect prices or schemas, or retries that failed unexpectedly. Free, never charged. `summary` is required and contains one line; optional `request_id` identifies the stored request and its upstream error body without requiring the payload in the report.

輸入參數skucontactcontext必填detailssummary必填request_id

run_api

Run an API

Execute an API by API slug with a normalized input payload. Every input schema is strict: unknown fields are rejected, not ignored, and field names can differ between related APIs. Inputs must conform to the endpoint's schema, not its description. Published latency p50/p95/p99 and sample counts describe observed successful requests; p99 is an observation, not a maximum or a client timeout guarantee. Requires a valid AnyAPI key as a Bearer token. Charges the USD wallet. Some failed wallet-funded requests incur processing charges passed through at cost, with no markup; the error message shows the amount charged. Results can be large. `fields` keeps selected keys, `max_items` caps returned rows, and `summary` returns an outline; these controls reduce response size without changing the charge.

輸入參數jqinput必填fieldssku_id必填context必填summarymax_items

search_apis

Search APIs

Search APIs by meaning and keyword across name, slug, and description, returning matches with their descriptions but without schemas, ranked most relevant first. At least one of `query`, `category`, or `platform` is required, in any combination; `category` or `platform` without `query` enumerates that scope. `limit` caps matches (default 25, maximum 50). Each result carries a `relevance` score in (0,1] relative to the top match; a relevance floor drops weak matches, so `total` counts relevant matches before the limit. `ranking` identifies meaning-based ('semantic') or substring ('keyword') matching. Entries with heavy:true produce large API responses. Search results omit input schemas; API inputs require the endpoint's strict schema, whose field names can differ between related APIs.

輸入參數limitquerycontext必填categoryplatform

send_feedback

Send feedback

Submit non-defect feedback to AnyAPI about an API you could not find in the catalog, a missing result field, confusing documentation or tool descriptions, or an improvement that would make a task easier. Free, never charged. `summary` is required and contains one line; optional `details` describes the task or suggestion.

輸入參數skucontactcontext必填detailssummary必填request_id

版本歷史

1
  1. v0.1.5最新Sep 16, 2026

評分

已滿足適用檢查項的 100%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分