API Anything — Claude Code MCP server: install
API Anything is an MCP server for Claude Code that learns a site's HTTP requests and stores callable operations in a shared catalog. Agents can query sites without a separate API.
MIT ★ 3,703 updated 2026-11-13
claude mcp add --env API_ANYTHING_HOME=<API_ANYTHING_HOME> --env API_ANYTHING_BROWSER=<API_ANYTHING_BROWSER> --transport stdio api-anything -- npx -y api-anythingWhat API Anything does
API Anything learns how a website sends its own HTTP requests and turns those requests into callable operations. The operations go into a shared catalog, so another agent can reuse them instead of driving the site through a browser. Cookies and tokens are removed from learned requests before they are shared.
Run npx -y api-anything setup to find available agents and connect the MCP server. Node 22.13 or newer is required, while an account and API key are not. Calls use plain HTTP where possible; sites that block that path can be handled through browser-based requests.
What it helps with
- call a site that has no public API
- turn a page request into a reusable operation
- share a learned operation through the catalog
- fetch site data over HTTP instead of browser steps
Example prompts for the agent
- Ask Goodreads for the rating of Piranesi.
- Search Hacker News for SQLite through API Anything.
How to install API Anything
Platform CLI
claude mcp add --env API_ANYTHING_HOME=<API_ANYTHING_HOME> --env API_ANYTHING_BROWSER=<API_ANYTHING_BROWSER> --transport stdio api-anything -- npx -y api-anythingReplace <…> with your own values
Platform CLI
codex mcp add api-anything --env API_ANYTHING_HOME=<API_ANYTHING_HOME> --env API_ANYTHING_BROWSER=<API_ANYTHING_BROWSER> -- npx -y api-anythingReplace <…> with your own values
Config file
{
"mcpServers": {
"api-anything": {
"command": "npx",
"args": [
"-y",
"api-anything"
],
"env": {
"API_ANYTHING_HOME": "<API_ANYTHING_HOME>",
"API_ANYTHING_BROWSER": "<API_ANYTHING_BROWSER>"
}
}
}
}Replace <…> with your own values
Config file
{
"servers": {
"api-anything": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"api-anything"
],
"env": {
"API_ANYTHING_HOME": "<API_ANYTHING_HOME>",
"API_ANYTHING_BROWSER": "<API_ANYTHING_BROWSER>"
}
}
}
}Replace <…> with your own values
Platform CLI
gemini mcp add -e API_ANYTHING_HOME=<API_ANYTHING_HOME> -e API_ANYTHING_BROWSER=<API_ANYTHING_BROWSER> api-anything npx -y api-anythingReplace <…> with your own values
Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about API Anything
How do I install API Anything in Claude Code?
Run claude mcp add api-anything -- npx -y api-anything.
What does API Anything do?
It learns a site's HTTP requests, exposes them as callable operations, and stores those operations in a shared catalog. Agents can reuse the learned calls for later site queries.
What does API Anything require?
Node 22.13 or newer is required. No account or API key is needed.