# APIFor

> APIFor is a freemium MCP server for public data access. Remote MCP server giving AI agents public datasets like holidays, postal codes. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Freemium
- **Starting price:** $5 a month
- **Platforms:** API, CLI
- **Website:** https://apifor.dev/docs/mcp/
- **Repository:** https://github.com/khmuhtadin/apifor-mcp
- **MCP Registry name:** dev.apifor/apifor
- **Categories:** [public data access](https://ai-powered.com/categories/public-data-access)
- **Listing updated:** 2026-11-28

## About

APIFor exposes a set of public reference datasets to AI clients through a single remote endpoint. Holidays, postal codes, airports and university records are among the datasets an agent can query, and the same credits also cover the REST API.

You connect a compatible MCP client to the server URL and sign in with OAuth or a Bearer API key. Calls draw from the same prepaid credit balance as REST requests, and the MCP and REST deployments are separate, so tool availability should be checked after connecting.

The service suits developers building agents or assistants that need country-level lookups without wiring up several data sources. Coverage varies by dataset, and some datasets only cover one country so far.

## Features

- **Remote MCP endpoint:** Connects to MCP clients over streamable HTTP without a local install.
- **OAuth or API key access:** Sign in with OAuth or send a Bearer key in the request header.
- **Multi-country public datasets:** Covers holidays, postal codes, airports and universities across several countries.
- **Prepaid credit billing:** Pay per request with credit packs that never expire and no overage charges.
- **Shared REST API:** MCP calls use the same credits as the REST endpoints.

## Good for

- Letting an assistant look up public holidays for scheduling across countries
- Finding postal codes or airports for travel and logistics workflows
- Retrieving university listings for education research or admissions tools
- Adding public reference data to an agent without building separate integrations

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add --transport http apifor https://mcp.apifor.dev/mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "apifor": {
      "type": "http",
      "url": "https://mcp.apifor.dev/mcp"
    }
  }
}
```

### Claude Desktop (Customize → Connectors → Add → Add custom connector)

```text
https://mcp.apifor.dev/mcp
```

Paste this URL, choose how to sign in, then click Add and Connect. On Team and Enterprise an Owner adds it in Organization settings → Connectors.

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

```json
{
  "mcpServers": {
    "apifor": {
      "url": "https://mcp.apifor.dev/mcp"
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "apifor": {
      "type": "http",
      "url": "https://mcp.apifor.dev/mcp"
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### ChatGPT (chatgpt.com → Plugins → + → Add custom MCP server)

```text
https://mcp.apifor.dev/mcp
```

Paste this URL, set up sign-in, accept the warning and install the plugin. Then type @ in a chat to use it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add apifor --url https://mcp.apifor.dev/mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.apifor]
url = "https://mcp.apifor.dev/mcp"
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "apifor": {
      "httpUrl": "https://mcp.apifor.dev/mcp"
    }
  }
}
```

Or run: gemini mcp add -s user --transport http apifor https://mcp.apifor.dev/mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "apifor": {
      "serverUrl": "https://mcp.apifor.dev/mcp"
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "apifor": {
      "url": "https://mcp.apifor.dev/mcp",
      "transport": "http"
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "apifor": {
      "type": "streamableHttp",
      "url": "https://mcp.apifor.dev/mcp"
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "apifor": {
      "url": "https://mcp.apifor.dev/mcp"
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "apifor": {
      "url": "https://mcp.apifor.dev/mcp"
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "apifor": {
      "url": "https://mcp.apifor.dev/mcp"
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "apifor": {
      "url": "https://mcp.apifor.dev/mcp"
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Grok Bot (Grok Bot desktop app → Connect apps → Add a custom connector)

```sh
https://mcp.apifor.dev/mcp
```

Enter a Name (for example "APIFor"), choose Type: Remote HTTPS, paste this as the Server URL and choose Add plugin.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "apifor": {
      "type": "http",
      "url": "https://mcp.apifor.dev/mcp"
    }
  }
}
```

## FAQ

### How much does APIFor cost to start?

You get 1,000 free requests once after verifying your email, and OAuth sign-in counts as verified. After that, prepaid packs start at $5 for 5,000 requests.

### Do unused credits expire?

No. Credits never expire and carry over between packs.

### Which authentication methods are supported?

The server supports OAuth sign-in, and clients that cannot use OAuth can send an API key as a Bearer token.

### Do the datasets cover every country?

No. Coverage depends on the source, and some datasets currently cover only one country.

### How do I add APIFor to Claude Code?

Run this command in your terminal: claude mcp add --transport http apifor https://mcp.apifor.dev/mcp

### What are the best alternatives to APIFor?

The closest alternatives to APIFor are KnowAPI and PPN Hub — public APIs over MCP.

## Where this comes from

- Description: written from the project's README, the project's website and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [KnowAPI](https://ai-powered.com/mcp/knowapi): KnowAPI is an MCP server for public data access.
- [PPN Hub — public APIs over MCP](https://ai-powered.com/mcp/ppn-hub-public-apis-over-mcp): PPN Hub — public APIs over MCP is a freemium MCP server for public data access.

---
Source: https://ai-powered.com/mcp/apifor
