# FourA MCP [Health: Active]

**Category:** 🔎 Search & Data Extraction  
**Repository:** https://github.com/fouradata/mcp  
**GitHub Stars:** 7  
**npm Downloads (last month):** 966  
**Views:** 7  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/fouradata-mcp

## Description
MCP server for the FourA web scraping API - four tools, six prompts, one API key.

## Tools
Capabilities this server exposes over MCP:

- **foura_single** — Send one HTTP request and return the response. Use it for static pages, JSON APIs, and server-rendered HTML, with your own headers, body and cookies. Set browser, os, or version when a target refuses the default Chrome. Pass a proxy id returned by foura_proxy to leave from that same exit. validate decides what counts as success, so a response it rejects comes back as a failure instead of as content; the timeouts nest, with timeout_ms bounding the whole request and the connect, accept and server_response ones bounding stages inside it. Switch to foura_proxy when the response is blocked or the exit country matters, and to foura_browser when the page needs JavaScript. One FourA API key authenticates every call, the result reports the credits it spent, and a refusal by your own plan arrives as a plan_limit_ code with retryAfter rather than as a block by the target.
- **foura_proxy** — Route an HTTP request through rotating proxies, retrying on another exit until one delivers. Use it when foura_single is blocked, and whenever the exit itself matters: this is the only tool that takes a strict exit-country allowlist (exitCountries, which never falls back to another country), presents a named browser family per attempt, excludes exits you already know are dead (ignoreProxies), and may escalate to a premium exit (exitClass, an allowance rather than an instruction). maxTries bounds how many exits are tried and timeout_ms bounds the whole rotation, so a short timeout can end it before maxTries is reached; protected targets often need 25 to 30. validate decides what counts as delivered, and an attempt it rejects is retried on the next exit. The response returns the id of the exit that succeeded: pass that returned id to foura_single.proxy or foura_browser.proxy to send the next request from the same exit. A failed rotation returns attemptReport, which separates exits that never answered from exits a bot check refused from pages your own rule threw away. Use foura_browser when the page needs JavaScript. Rotation costs several times a single request. One FourA API key authenticates every call, the result reports the credits it spent, and a refusal by your own plan arrives as a plan_limit_ code with retryAfter rather than as a block by the target.
- **foura_browser** — Load a public URL in a full browser session. JavaScript runs, the DOM renders, and cookies come back with the response. Use it for single-page apps, lazy-loaded content, or supported browser challenges. You can set your own headers, cookies and userAgent, and checkStatus or checkText turn a navigation that rendered the wrong page into a failure instead of returning it as content. For a protected page, call foura_proxy first and pass its returned proxy ID here to reuse that same exit, instead of starting a new selection here; with no proxy the session leaves from one fixed address. Set unblocker:false when you want the page exactly as it loads, challenge included. It is the most expensive of the four tools and the slowest, so prefer foura_single or foura_proxy whenever the content is already in the HTML. One FourA API key authenticates every call, the result reports the credits it spent, and a refusal by your own plan arrives as a plan_limit_ code, including plan_limit_browser_daily when the daily browser allowance is spent.
- **foura_auto** — Give it a public URL and get the content back. Use it when only the content matters and not how it is fetched: it escalates from a direct request to a rotating proxy to a full browser only as far as the target forces, and returns the session that worked so the next call can replay it. On protected targets, or whenever HTTP 200 may still be a challenge or an incomplete page, pass validate.data.accept with text unique to the real content; auto makes bounded attempts and returns either validated content or a failure, and cannot guarantee a match. It owns its own retry settings, so there is no maxTries here, and timeout_ms is the budget for every attempt together rather than for one. What it cannot do is the reason to reach for another tool: a strict exit country and a pinned exit live on foura_proxy (auto can only avoid exits, through ignoreProxies, or escalate to a premium exit with exitClass); choosing which browser is presented to the target lives on foura_single and foura_proxy; a scripted browser session lives on foura_browser. A request that names any of those belongs there rather than here. One FourA API key authenticates every call, the result reports the credits it spent, which is the sum of the attempts it made, and a refusal by your own plan arrives as a plan_limit_ code with retryAfter rather than as a block by the target.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "foura-mcp": {
    "command": "npx",
    "args": ["-y","@fouradata/mcp"],
    "env": {
      "FOURA_API_KEY": ""
    }
  }
}
```

**Requires environment variables:** `FOURA_API_KEY` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What FourA MCP does

FourA MCP exposes the FourA web scraping API through the Model Context Protocol. It retrieves content from public URLs using four request modes: direct HTTP, rotating proxy access, full browser sessions, and automatic escalation between those methods.

The default entry point is `foura_auto`. It accepts a URL and chooses how far to escalate based on what the target requires. Developers can instead select `foura_single`, `foura_proxy`, or `foura_browser` when they need explicit control over request behavior, exit location, or JavaScript execution.

All four tools are read-only and open-world annotated. Each response includes readable text and typed `structuredContent` validated against an output schema. Calls also report the credits consumed. Plan restrictions use `plan_limit_` error codes and may include `retryAfter`, distinguishing account limits from target-side blocking.

## How it works

`foura_single` sends one HTTP request and suits static HTML, JSON APIs, and server-rendered pages. It accepts custom headers, request bodies, cookies, browser and operating-system profiles, response validation, redirect controls, and timeout settings. A proxy ID can pin a later request to the same exit.

`foura_proxy` retries an HTTP request through different proxy exits until one satisfies the validation rules or the attempt budget ends. It supports strict exit-country allowlists, browser-family selection, excluded proxy IDs, standard or premium exit classes, and a maximum number of attempts. Its result identifies the successful exit; a failed rotation includes an attempt report separating nonresponsive exits, bot-check refusals, and responses rejected by validation.

`foura_browser` opens a public URL in a full browser session. JavaScript runs, the DOM is rendered, and cookies are returned. Custom headers, cookies, user agents, status checks, and text checks are available. Passing a proxy ID from `foura_proxy` reuses that exit. Without one, the browser session uses a fixed address.

`foura_auto` hides the fetch-method decision and escalates from direct HTTP to proxy rotation and then browser rendering when necessary. Validation can require text from the real page, helping distinguish usable content from a challenge or incomplete response. Its returned session can be reused for follow-up requests.

## Setup and configuration

Create a FourA API key, then run the npm package locally with an MCP client:

```json
{
  "mcpServers": {
    "foura": {
      "command": "npx",
      "args": ["-y", "@fouradata/mcp"],
      "env": {
        "FOURA_API_KEY": "pk_live_..."
      }
    }
  }
}
```

The package is downloaded on first launch and runs as a subprocess of the client. The same configuration structure works across supported clients, although each client uses its own configuration location. Claude Code can also register it with `claude mcp add foura -- npx -y @fouradata/mcp` after setting the API key in the environment.

A hosted Streamable HTTP endpoint is available at `https://mcp.foura.ai/mcp`. Connect with an `Authorization: Bearer pk_live_...` header, or bridge the endpoint through `mcp-remote` for clients that use local subprocess configuration.

## Tools and capabilities

- `foura_auto`: Automatically selects direct HTTP, proxy rotation, or browser rendering.
- `foura_single`: Sends one configurable HTTP request with headers, cookies, bodies, profiles, and validation.
- `foura_proxy`: Rotates through proxy exits with country selection, exit reuse, exclusions, and retry limits.
- `foura_browser`: Loads JavaScript applications and returns rendered content and cookies.
- Response validation: Accept or reject results using status, text, or other validation rules.
- Typed outputs: Receive structured response data, metadata, sessions, credits, and error information.

## Limitations and notes

Browser fetching is slower and costs more than direct HTTP; proxy rotation also costs several times more than a single request. Prefer `foura_single` or `foura_proxy` when the needed content is already present in the response HTML, and use `foura_browser` for JavaScript-rendered pages or supported browser challenges.

`foura_auto` does not provide strict exit-country selection, pinned exits, browser-profile selection, or scripted browser control. Use the explicit tools for those requirements. Its timeout covers the complete sequence of attempts, while `foura_proxy` has separate overall and attempt-count controls.

Validation can reject a technically successful HTTP response when it contains a challenge or the wrong page. Automatic escalation has bounded attempts and cannot guarantee that a requested text match will be found. Browser access can also be refused when the account's browser allowance is exhausted.

_Full upstream README: https://allmcps.com/mcp/fouradata-mcp/readme_

