API Anything logo

API Anything

Turns learned website traffic into local JSON reads that agents can call through MCP, CLI, or code.

Install API Anything

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "api-anything": {
      "command": "npx",
      "args": [
        "-y",
        "api-anything"
      ]
    }
  }
}

Settings โ†’ Developer โ†’ Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Claude Code command
claude mcp add --transport stdio api-anything -- npx -y api-anything

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

Install not yet sandbox-testedโ€” we haven't run this command through our automated sandbox yet. Not a red flag; we're working through the catalog.

Overview

api-anything MCP server turns website interactions into callable JSON operations for agents, using a site's own frontend traffic to learn reads. It tries plain HTTP first, uses a browser when required, and can relearn an operation when the site's request pattern changes. Reach for it when a website lacks an API and you need repeatable searches or lookups without driving a browser for every request. Calls run locally, while a shared catalog can provide already learned site operations.

Use cases

  • Search websites that lack public APIs
  • Look up ratings, listings, or travel results
  • Monitor mentions across supported sites
  • Reuse learned reads without opening a browser
  • Return only selected fields from site results

Key features

  • Learns read operations from frontend traffic
  • Uses HTTP first and browser tiers as fallbacks
  • Repairs learned operations after site changes
  • Exposes calls through MCP, CLI, and code
  • Filters results with named fields
  • Includes a shared catalog of learned site operations

Security & health

What it can reach and how reliably it runs โ€” from our own checks, not the maintainerโ€™s claims.

ActiveNo health check has run yet.

Recent health check succeeded.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 5h ago via OSV.dev ยท api-anything (npm)

How API Anything works

What api-anything does

api-anything exposes learned website reads to agents through the Model Context Protocol, a command-line interface, or code. It is intended for sites that do not provide a conventional API but whose frontend makes the requests needed to retrieve data. Examples include checking book ratings, searching flights, finding project mentions, and collecting information from other supported sites.

The package includes a shared catalog of learned operations covering 114 sites and 323 read operations. Catalog entries can be used locally, while requests themselves run on the machine where api-anything is installed. A local-only option lets users avoid the shared catalog.

Writes are disabled unless explicitly allowed. When writes are enabled, they are sent once rather than repeatedly replayed through a browser workflow.

How it works

Learning uses a headless browser with two example inputs. The system compares the resulting traffic, identifies values that behave like parameters, and retains the rest of the request structure. Cookies are represented as references rather than copied as fixed request values.

Calls use a tiered approach:

  • Tier 1 sends a plain HTTP request with Node's fetch implementation.
  • Tier 2 makes the request from inside a browser page when the site rejects direct HTTP.
  • Tier 3 runs the page and reads its response when a read needs full page execution.

Responses include status information such as the result class, whether a write occurred, retry guidance, and the next call to make. If a learned request no longer matches the site, api-anything can relearn it, replay the result, and save the repaired operation only after the replay succeeds.

The --fields option limits returned objects to named fields. This is useful for reducing response size when an agent needs only selected values from a larger result.

Setup and configuration

Node.js 22.13 or newer is required. A quick command-line read can run through npx without an account, API key, or browser setup:

Terminal
npx -y api-anything call hacker-news search query=sqlite --fields title,url --max-tier 1

The --max-tier 1 option restricts the call to plain HTTP. If the operation cannot complete at that tier, the result reports a reason and a suggested next step.

To connect an MCP client, run:

Terminal
npx -y api-anything setup

The setup flow supports Claude Code, Codex, Cursor, Claude Desktop, Gemini CLI, and VS Code. Hermes can be selected with --agents hermes; --local-only prevents use of the shared catalog. The server can also be registered directly as a stdio MCP server:

config.json
{
  "mcpServers": {
    "api-anything": {
      "command": "npx",
      "args": ["-y", "api-anything", "mcp"]
    }
  }
}

If a desktop application cannot locate npx, --print-config produces a configuration entry using absolute paths. Claude Code also supports installation through its plugin marketplace.

Written by AllMCPs with AI assistance from the projectโ€™s README and listing data. How we build listings

Reviews

No reviews yet โ€” be the first to share how it worked for you.

Frequently Asked Questions about API Anything

api-anything is an MCP server that connects agents to websites without conventional APIs by exposing learned read operations as JSON tools. It learns request patterns from frontend traffic, tries plain HTTP before browser-based fallbacks, and can repair operations when sites change. Calls run locally through the MCP server.

Install it by running `npx -y api-anything setup`, then choose an MCP client and restart it. You need Node.js 22.13 or newer. For manual configuration, register `npx -y api-anything mcp` as a stdio server in the client.

Yes, api-anything supports Cursor through the setup flow or the install configuration supplied for the server. After setup, restart Cursor and use the learned website operations from the agent.

Yes, it uses plain HTTP first when the site permits it. If direct HTTP is blocked or insufficient, api-anything falls back to a browser page and, for some reads, full page execution. Use `--max-tier 1` to restrict a call to the HTTP tier.

It can relearn an operation when a request pattern drifts, replay the result, and save the repaired operation only after the replay succeeds. This lets learned reads adapt when a site's frontend changes.

Related MCP servers

Add a badge to your READMEShow itโ€™s listed โ€” live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewAPI Anything AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/api-anything?style=directory)](https://allmcps.com/mcp/api-anything)
HTML Embed
<a href="https://allmcps.com/mcp/api-anything"><img src="https://allmcps.com/api/badge/api-anything?style=directory" alt="API Anything on AllMCPs" /></a>