# AnyAPI MCP server

> Provides access to hundreds of scraping and data APIs through a single gateway with normalized schemas and automatic failover.

- Repository: https://github.com/getanyapi-com/mcp
- Page: https://hostedmcp.org/servers/getanyapi-com/mcp
- Transport: stdio, remote
- Stars: 1
- License: Apache-2.0
- Latest version: 0.1.5

## Install

### Claude Code

```sh
claude mcp add --env 'ANYAPI_API_KEY=<YOUR_ANYAPI_API_KEY>' mcp -- npx -y anyapi-mcp
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "anyapi-mcp"
      ],
      "env": {
        "ANYAPI_API_KEY": "<YOUR_ANYAPI_API_KEY>"
      }
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "anyapi-mcp"
      ],
      "env": {
        "ANYAPI_API_KEY": "<YOUR_ANYAPI_API_KEY>"
      }
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"mcp","type":"stdio","command":"npx","args":["-y","anyapi-mcp"],"env":{"ANYAPI_API_KEY":"<YOUR_ANYAPI_API_KEY>"}}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "anyapi-mcp"
      ],
      "env": {
        "ANYAPI_API_KEY": "<YOUR_ANYAPI_API_KEY>"
      }
    }
  }
}
```

### Codex

```sh
codex mcp add mcp --env 'ANYAPI_API_KEY=<YOUR_ANYAPI_API_KEY>' --env 'ANYAPI_API_KEY=<YOUR_ANYAPI_API_KEY>' -- npx -y anyapi-mcp
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.mcp]
command = "npx"
args = ["-y", "anyapi-mcp"]

[mcp_servers.mcp.env]
ANYAPI_API_KEY = "<YOUR_ANYAPI_API_KEY>"
```

### Gemini CLI

```sh
gemini mcp add -s user -e 'ANYAPI_API_KEY=<YOUR_ANYAPI_API_KEY>' -e 'ANYAPI_API_KEY=<YOUR_ANYAPI_API_KEY>' mcp npx -- -y anyapi-mcp
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "anyapi-mcp"
      ],
      "env": {
        "ANYAPI_API_KEY": "<YOUR_ANYAPI_API_KEY>"
      }
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `ANYAPI_API_KEY` | no | yes | AnyAPI API key (format: aa_live_...). Mint one at https://getanyapi.com/dashboard/keys. Needed to run an API; connecting, listing the tools, and the catalog tools (list_apis, search_apis, get_api, quote_api) all work without it. |
| `ANYAPI_API_KEY` | no | yes | AnyAPI API key (format: aa_live_...). Mint one at https://getanyapi.com/dashboard/keys. Needed to run an API; connecting, listing the tools, and the catalog tools (list_apis, search_apis, get_api, quote_api) all work without it. |

## Tools (10)

- `search_apis`
- `list_apis`
- `get_api`
- `quote_api`
- `run_api`
- `get_request`
- `read_result`
- `get_balance`
- `report_bug`
- `send_feedback`

## FAQ

### Do I need an API key to use the server?

You can connect and use catalog tools like searching and listing APIs without a key, but executing an API requires one.

### What happens if an API call fails?

Failed calls are not charged to your account.

### Can I use this without installing the package?

Yes, clients that support remote Streamable HTTP can point directly to the hosted URL.
