# Free Forex & Gold News API for Python, MT5 & Claude MCP (Zero Key for EUR/USD)

> Source: <https://dev.to/forexnewsradar/free-forex-gold-news-api-for-python-mt5-claude-mcp-zero-key-for-eurusd-369l>
> Published: 2026-11-28 10:33:01+00:00

**Key takeaway:** The ForexNewsRadar Python client fails closed with safe_to_trade=False and status="VETO" on network or parse errors, and its prop_safe_to_trade flag wraps T-5m pre-news and 5-minute post-release blackouts around active vetoes.

If you wire Python bots, MetaTrader 5 EAs, or Claude MCP agents into live FX and Gold (`XAU/USD`) markets, you eventually hit the same wall around US CPI, NFP, and FOMC. Scraped economic calendars start returning HTTP 429 right when spreads blow out. Native `CalendarValueHistory()` calls silently return zero rows on a surprising number of prop-firm MT5 servers. And even a working calendar clock cannot tell your script whether spreads calmed down 20 seconds after the print or whether the pair is still whipsawing both sides.

Disclosure up front: I built [ForexNewsRadar](https://forexnewsradar.com) to solve this exact problem for my own stack. Live `EUR/USD` runs without an account or API key (`120 req/min` on REST, `30 req/min` on Remote MCP at `https://forexnewsradar.com/mcp`), backed by an MIT Python client (` pip install forexnewsradar`). Here is how the four common setups stack up, plus the exact curl, Python, MCP, and MQL5 snippets and the edge cases that actually bite in production.

| Setup | Cost | Holds up on VPS IPs? | Tracks post-print whipsaw? | Fits best | 
|---|---|---|---|---|
| **Scraping `faireconomy.media`** | Free | Rarely (HTTP 429 spikes during releases) | No — clock timestamps only | Local weekend scripts | 
| **MT5 `CalendarValueHistory()`** | Free | Spotty (0 rows / error 5401 on many prop servers) | No — clock timestamps only | Retail brokers with full native calendars | 
| **Plain calendar REST APIs** | Varies | Yes | No — cannot flag live whipsaw or collisions | Fixed pre-news timer pauses | 
| **ForexNewsRadar (REST / SDK / MCP)** | Free live `EUR/USD` | Yes (Cloudflare Edge, ~300B payload) | Yes ( `BUY` /`SELL` drift + live`VETO` blocks) | Live FX/Gold bots, MT5 EAs, MCP agents | 

`EUR/USD` directly with `curl`
You can hit the live `EUR/USD` compact route from any terminal with no signup and no headers:

```
curl -s "https://forexnewsradar.com/api/v1/pairs/EURUSD?compact=1"
```

Typical ~300-byte payload (key gate fields):

```
{
  "ok": true,
  "symbol": "EURUSD",
  "status": "SELL",
  "prop_safe_to_trade": true,
  "safe_to_trade": true,
  "stale": false,
  "direction_bias": "SELL",
  "impulse_level": 3,
  "veto_remaining_sec": 0,
  "prop_wait_sec": 0,
  "next_event_sec": 6581,
  "veto_reason": null,
  "updated_at": "2026-11-27T10:03:44.000Z"
}
```

What each field controls in an execution loop:

`safe_to_trade` — standard liquidity and volatility gate for regular spot/ECN accounts.`prop_safe_to_trade` — stricter funded-account check that wraps `T-5m` pre-news and 5-minute post-release blackouts around active `VETO` blocks.`status` — live state machine (`CLEAR`, `PRE_NEWS`, `BUY`, `SELL`, or `direction_bias` — directional lean strictly limited to `NEUTRAL`.` veto_reason` — exact trigger behind a block (`Whipsaw`, `Collision`, `Foreign Noise`, or `Toxic Window` such as central bank press conferences and the final Friday hour before NY close).
The open-source [GitLab MIT repository](https://gitlab.com/forexnewsradar-hq/forexnewsradar-python) (published as `forexnewsradar` v1.1.0 on PyPI) runs purely on Python's standard library (`urllib`, Python 3.9+, `py.typed`, zero third-party packages). It strips messy broker suffixes (`EURUSD.pro`, `XAUUSDm`, `GOLD`) and fails closed (` safe_to_trade=False`, `status="VETO"`) whenever the network drops or the response cannot be parsed.

```
pip install forexnewsradar
# or run a one-shot check without installing:
uvx forexnewsradar check EURUSD.pro
```

Gold spreads routinely jump 5x to 10x around US CPI, NFP, and FOMC. In a real worker loop, keep a short local TTL cache and skip entries while blocked instead of exiting the process:

``` python
import time
import forexnewsradar as fnr

# Leave FNR_API_KEY unset to test free live EUR/USD.
# Set FNR_API_KEY=fnr_live_... when monitoring Gold (XAUUSD) or all 18 pairs.
# min_pre_news_buffer_sec applies when prop_account=True (default).
radar = fnr.ForexNewsRadar(cache_ttl_sec=15.0, min_pre_news_buffer_sec=300)

while True:
    # prop_account=True enforces +-5m funded rules; False checks spot/ECN safety
    verdict = radar.check("XAUUSDm", prop_account=False)

    if not verdict.safe_to_trade:
        print(f"Skipping XAUUSD: {verdict.veto_reason or verdict.status} (wait {verdict.veto_remaining_sec}s)")
    else:
        print(f"XAUUSD clear | direction_bias={verdict.direction_bias} | next_event={verdict.next_event_sec}s")

    time.sleep(15)
```

Dumping a 60-tool MCP server into Claude Code or Cursor eats thousands of tokens before the agent looks at a single chart. The stateless Streamable HTTP server at `https://forexnewsradar.com/mcp` ships only 5 read-only tools (`tools/list` sits around ~9 KB / ~2.2k tokens; one `check_prop_trade_gate` call returns ~1.8 KB / ~450 tokens and accepts both `prop_account=true` and `prop_account=false`):

```
claude mcp add --transport http forexnewsradar https://forexnewsradar.com/mcp
```

Tool list:

`check_prop_trade_gate` — single-call safety check, countdown timer, and directional lean for any of the 18 tracked symbols.`get_pair_telemetry` — live state, next Tier-1 event timer, recent prints, and recent closed ECN fills.`list_radar_pairs` — compact snapshot across Tokyo, London, and New York sessions.`get_macro_feed` — upcoming Red-Folder events and active VETO locks by currency or pair.`get_entitlement_status` — confirms whether the client is running in keyless If the upstream telemetry heartbeat ever goes stale, `check_prop_trade_gate` fails closed with `allowed_to_open_trade=false` and `radar_stale=true` (while `isError=true` is reserved strictly for auth, schema, or HTTP transport failures).

`GlobalVariables`
On MT5 terminals where `CalendarValueHistory()` comes back empty, drop `ForexNewsRadar_PropShield.mq5` (available at `/downloads/ForexNewsRadar_PropShield.mq5`) onto a single chart and add `https://forexnewsradar.com` under *Tools -> Options -> Expert Advisors -> Allow WebRequest*.

That hub EA polls `GET /api/v1/pairs?compact=1` every 15 seconds (`4 req/min`) through native `WebRequest` with no DLLs, draws a compact HUD, optionally clears pending orders if `InpDeletePendingOnVeto` is enabled, and writes RAM `GlobalVariables` visible to every chart on the terminal. Existing EAs only need one guard line before opening a trade:

```
if(GlobalVariableGet("FNR_PROP_SAFE_EURUSD") < 1.0) return;
```

`FNR_API_KEY` completely unset when testing. Setting `FNR_API_KEY="test"` sends a bogus `Authorization: Bearer` header, which causes `check()` to fail closed with `INVALID_API_KEY` and `pair()`/` board()` to raise `InvalidApiKeyError`.` 4014` (`ERR_FUNCTION_NOT_ALLOWED`):` WebRequest` by default until `https://forexnewsradar.com` is whitelisted in terminal options.`120 req/min` on `30 req/min`) for Claude Code or Cursor workflows.
When a Tier-1 print hits the tape, the backend intentionally sits out the first 15 to 30 seconds of spread chaos instead of racing co-located HFTs. Once liquidity stabilizes, per-pair decision models weigh the release numbers against live cross-market price and volatility behavior to emit a deterministic gate (`BUY`, `SELL`, `CLEAR`, or `VETO`) aimed at intraday post-announcement drift. Full design notes live at [forexnewsradar.com/methodology](https://forexnewsradar.com/methodology).

Before connecting anything to real capital, pull the public 14-day live sample on [Kaggle](https://www.kaggle.com/datasets/forexnewsradar/fx-and-gold-xauusd-macro-news-predictions-2026) (1,476 rows). It is a short two-week live snapshot — not a multi-year backtest — meant for checking payload structure and failure modes. Every row shows the verdict alongside Actual, Forecast, and Previous prints, and the `veto_reason` column shows exactly why noisy releases got blocked.

`$9` for 30 days on one unlocked pair (such as `XAU/USD`) or `$29` for 30 days across all 18 FX and metals pairs at `240 req/min`.
