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 分