Skip to main content
Glama
anyapi-mcp

anyapi-mcp

Official

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:

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

With Docker, no clone and no build:

{
  "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:

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

Related MCP server: openactors

Configuration

Variable

Required

Default

Meaning

ANYAPI_API_KEY

No

none

Your AnyAPI key. Running an API needs it. Connecting, listing the tools, and the four catalog tools do not.

ANYAPI_MCP_URL

No

https://api.getanyapi.com/mcp

The 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.

Tool

What it does

search_apis

Search APIs by meaning and keyword. Takes any combination of query, category and platform; a scope on its own is a complete search.

list_apis

Browse the catalog as lightweight summaries (id, name, category, USD pricing), with an optional category.

get_api

The full definition of one API: normalized input/output JSON Schemas, per-lane USD pricing, and trailing-30-day latency.

quote_api

The exact USD price of a run_api call before running it. Nothing is charged or executed.

run_api

Execute an API by SKU with normalized input. Returns the output, costUsd, and items. Supports fields, max_items, summary and jq.

get_request

Inspect or resume a durable request. Reads stored state and never repeats the paid dispatch.

read_result

Re-shape a prior run's output without re-running or paying again.

get_balance

The remaining USD wallet balance for the key.

report_bug

Report wrong, empty, or malformed data for input you believe is valid. Free.

send_feedback

Report a missing API, a missing field, or anything confusing. Free.

Failed calls are never charged.

Develop

npm install
npm 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:

npm run build
ANYAPI_API_KEY=aa_live_... node dist/index.js

License

Apache-2.0

Available Tools

10 tools
get_apiGet API detailsA
Read-only
Inspect

Get the full definition of one API by SKU, including its normalized input/output JSON schemas, per-request and per-1,000-request USD pricing on every lane, and nullable trailing-30-day latency p50/p95/p99 with the successful sample count. Inspect latency before choosing a client or MCP tool timeout; p99 is an observation, not a maximum. Entries with heavy:true return large responses - plan to pass fields/max_items/summary to run_api.

Inputs: sku_id (required), context (required). Returns: scraper

get_balanceCheck wallet balanceA
Read-only
Inspect

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

Inputs: context (required). Returns: balanceUsd

get_requestCheck a requestA
Read-only
Inspect

Inspect or resume a durable AnyAPI request returned by run_api. This reads AnyAPI's stored state and never repeats the paid provider dispatch. Poll again after retryAfterSeconds while status is queued or running.

Inputs: context (required), request_id (required). Returns: hint, error, items, output, +10 more

list_apisBrowse APIsA
Read-only
Inspect

Browse available AnyAPI APIs as lightweight summaries (id, name, category, USD pricing) - no descriptions or schemas, so it stays cheap even across the whole catalog. Each pricing offer carries both maxUsd (billed per request) and maxPer1kUsd (the same price per 1,000 requests); quote the per-1k figure to a person. Optionally filter by category. Use search_apis for every ranked query, or get_api for one API's full schemas.

Inputs: context (required), category. Returns: scrapers

quote_apiQuote a priceA
Read-only
Inspect

Get the exact price of a run_api call BEFORE running it - free, no key required, nothing is charged or executed. Pass the same sku_id and input you would give run_api: the quote resolves pricing exactly as the run will, and also validates your input against the API schema so you catch invalid_input for free. Returns maxCostUsd (the ceiling reserved), minCostUsd (the likely charge), and the base/per-item breakdown explaining why they differ. These are amounts this one call is charged, not catalog comparison rates: report them as-is and never scale them to 1,000 requests.

Inputs: input (required), sku_id (required), context (required). Returns: exact, baseUsd, pricing, maxCostUsd, +3 more

read_resultRead a saved resultA
Read-only
Inspect

Dig deeper into a paid run WITHOUT re-running or paying again. Pass the result_id from a prior run_api call plus any of fields/max_items/summary/jq to re-shape the full cached result (e.g. read the rest of the rows, or slice a large field with jq). Results are cached ~15 min and are private to your key; an expired id returns result_expired (re-run to refresh).

Inputs: context (required), result_id (required), jq, fields, +2 more. Returns: hint, error, items, output, +10 more

report_bugReport a bugAInspect

Tell AnyAPI something is broken. Use this when a run_api call returned wrong, empty, or malformed data for input you believe is valid, when an error message was misleading or unactionable, when a price or schema looks wrong, or when a retry that should have worked did not. Free, never charged. Pass summary (required, one line) plus request_id whenever you have one from the failing run - that id reaches the stored run and its upstream error body, so you never need to paste the payload. Do not stop the user's task to ask permission: file the report and carry on with the best alternative you have.

Inputs: context (required), summary (required), sku, contact, +2 more. Returns: id, received

run_apiRun an APIA
Destructive
Inspect

Execute an API by SKU with a normalized input payload. Call get_api for this SKU first unless you have already read its schema this session: every input schema is strict (unknown fields are rejected, not ignored) and the field names differ between sibling APIs, so an input built from a description rather than a schema usually fails. Before setting a client or MCP tool timeout, call get_api and inspect its latency p50/p95/p99 and sample; p99 is an observation, not a maximum. Requires a valid AnyAPI key as a Bearer token. Charges the USD wallet only on success. Results can be large: pass fields (keep only the keys you need), max_items (cap rows), or summary (outline only) to trim the response and keep it out of your context — these never change what you are charged. Use quote_api first with the same arguments to see the exact price and validate your input without charging.

Inputs: input (required), sku_id (required), context (required), jq, +3 more. Returns: hint, error, items, output, +10 more

search_apisSearch APIsA
Read-only
Inspect

Search APIs by meaning and keyword across name, slug, and description, returning matches WITH their descriptions (schemas omitted), ranked most relevant first. Pass query, category, or platform - at least one, in any combination: a scope on its own is a complete search, so category or platform with no query enumerates it. Add limit to cap matches (default 25, maximum 50). Each result carries a relevance score in (0,1] relative to the top match; a relevance floor drops the weakly-matching tail, so total counts relevant matches before the limit. ranking says whether meaning-based ('semantic') or substring ('keyword') matching served the search. Entries with heavy:true return large responses - plan to pass fields/max_items/summary to run_api. Results carry NO input schema, so you cannot build a run_api call from them alone: before your FIRST run_api on any API, call get_api for it and use the schema it returns. Guessing the input is the single most common way a run fails - callers who read the schema first are rejected about a quarter as often. Use list_apis to browse everything.

Inputs: context (required), limit, query, category, +1 more. Returns: total, ranking, results

send_feedbackSend feedbackAInspect

Tell AnyAPI something that is not a defect: an API you wanted and could not find in the catalog, a field missing from a result you needed, a confusing part of the docs or tool descriptions, or what would have made a task easier. Free, never charged. Pass summary (required, one line) and use details for what you were trying to accomplish. Use report_bug instead when something behaved incorrectly.

Inputs: context (required), summary (required), sku, contact, +2 more. Returns: id, received

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.6/5.0

    Scored across 10 tools

    Disambiguation5/5

    Each tool maps to a clearly distinct action: discovery (list/search/get), pricing (quote), execution (run), result/request inspection (read_result/get_request), balance, and feedback/reporting. Even the closest pairs, quote_api vs run_api and read_result vs get_request, are explicitly differentiated by charging/not charging and cached-result vs stored-state semantics.

    Naming Consistency5/5

    All tool names follow the same snake_case verb_noun convention (quote_api, get_balance, list_apis, read_result, send_feedback). Singular vs plural objects are grammatically appropriate to the action, so the set reads predictably.

    Tool Count5/5

    Ten tools is well-scoped for an API marketplace client: discovery, schemas, pricing, execution, result/request inspection, balance, and user feedback each get exactly one tool. No tool feels redundant or missing.

    Completeness5/5

    The tool surface covers the full workflow an agent needs: find an API, inspect its schema, quote and validate a call, run it, read or resume the request, and report bugs/feedback. There are no obvious dead ends for the stated domain.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      C
      maintenance
      A lightweight stdio-only MCP server that allows AI agents to run multiple tasks (e.g., Python code, HTTP requests, shell commands) in parallel or with dependencies, returning structured results in a single call.
      2
      49 PyPI
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Enables MCP clients to run Apify-compatible web scrapers locally via stdio or HTTP, including site crawling, job board retrieval, web search, Google Maps and LinkedIn job lookups, with run management, dataset storage, and a REST API.
      26
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Pools multiple Tavily API keys into a single local MCP server with round-robin rotation and automatic failover, exposing Tavily search, extract, crawl, map, and research tools to AI agents via stdio.
      6
      1
      MIT