{"slug": "free-forex-gold-news-api-for-python-mt5-claude-mcp-zero-key-for-eur-usd", "title": "Free Forex & Gold News API for Python, MT5 & Claude MCP (Zero Key for EUR/USD)", "summary": "A developer built ForexNewsRadar, a free FX and Gold news API that serves live EUR/USD data without an account or API key at 120 requests per minute on REST and 30 per minute on a remote MCP endpoint. The service ships with an MIT-licensed Python client on PyPI that uses only the standard library, strips broker symbol suffixes, and fails closed with safe_to_trade=False when the network drops or a response cannot be parsed. It returns a compact state machine (CLEAR, PRE_NEWS, BUY, SELL, VETO) with separate prop-firm gating and veto reasons such as Whipsaw, Collision, and Toxic Window, aimed at Python bots, MetaTrader 5 EAs, and Claude MCP agents trading around CPI, NFP, and FOMC releases.", "body_md": "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.\n\nDisclosure 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.\n\n| Setup | Cost | Holds up on VPS IPs? | Tracks post-print whipsaw? | Fits best | \n|---|---|---|---|---|\n| **Scraping `faireconomy.media`** | Free | Rarely (HTTP 429 spikes during releases) | No — clock timestamps only | Local weekend scripts | \n| **MT5 `CalendarValueHistory()`** | Free | Spotty (0 rows / error 5401 on many prop servers) | No — clock timestamps only | Retail brokers with full native calendars | \n| **Plain calendar REST APIs** | Varies | Yes | No — cannot flag live whipsaw or collisions | Fixed pre-news timer pauses | \n| **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 | \n\n`EUR/USD` directly with `curl`\nYou can hit the live `EUR/USD` compact route from any terminal with no signup and no headers:\n\n```\ncurl -s \"https://forexnewsradar.com/api/v1/pairs/EURUSD?compact=1\"\n```\n\nTypical ~300-byte payload (key gate fields):\n\n```\n{\n  \"ok\": true,\n  \"symbol\": \"EURUSD\",\n  \"status\": \"SELL\",\n  \"prop_safe_to_trade\": true,\n  \"safe_to_trade\": true,\n  \"stale\": false,\n  \"direction_bias\": \"SELL\",\n  \"impulse_level\": 3,\n  \"veto_remaining_sec\": 0,\n  \"prop_wait_sec\": 0,\n  \"next_event_sec\": 6581,\n  \"veto_reason\": null,\n  \"updated_at\": \"2026-11-27T10:03:44.000Z\"\n}\n```\n\nWhat each field controls in an execution loop:\n\n`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).\nThe 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.\n\n```\npip install forexnewsradar\n# or run a one-shot check without installing:\nuvx forexnewsradar check EURUSD.pro\n```\n\nGold 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:\n\n``` python\nimport time\nimport forexnewsradar as fnr\n\n# Leave FNR_API_KEY unset to test free live EUR/USD.\n# Set FNR_API_KEY=fnr_live_... when monitoring Gold (XAUUSD) or all 18 pairs.\n# min_pre_news_buffer_sec applies when prop_account=True (default).\nradar = fnr.ForexNewsRadar(cache_ttl_sec=15.0, min_pre_news_buffer_sec=300)\n\nwhile True:\n    # prop_account=True enforces +-5m funded rules; False checks spot/ECN safety\n    verdict = radar.check(\"XAUUSDm\", prop_account=False)\n\n    if not verdict.safe_to_trade:\n        print(f\"Skipping XAUUSD: {verdict.veto_reason or verdict.status} (wait {verdict.veto_remaining_sec}s)\")\n    else:\n        print(f\"XAUUSD clear | direction_bias={verdict.direction_bias} | next_event={verdict.next_event_sec}s\")\n\n    time.sleep(15)\n```\n\nDumping 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`):\n\n```\nclaude mcp add --transport http forexnewsradar https://forexnewsradar.com/mcp\n```\n\nTool list:\n\n`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).\n\n`GlobalVariables`\nOn 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*.\n\nThat 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:\n\n```\nif(GlobalVariableGet(\"FNR_PROP_SAFE_EURUSD\") < 1.0) return;\n```\n\n`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.\nWhen 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).\n\nBefore 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.\n\n`$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`.", "url": "https://wpnews.pro/news/free-forex-gold-news-api-for-python-mt5-claude-mcp-zero-key-for-eur-usd", "canonical_source": "https://dev.to/forexnewsradar/free-forex-gold-news-api-for-python-mt5-claude-mcp-zero-key-for-eurusd-369l", "published_at": "2026-11-28 10:33:01+00:00", "updated_at": "2026-11-28 10:43:35.287910+00:00", "lang": "en", "topics": ["ai-agents", "ai-tools", "developer-tools", "agent-protocols"], "entities": ["ForexNewsRadar", "MetaTrader 5", "Claude MCP", "PyPI", "GitLab", "Cloudflare"], "also_reported_by": [], "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.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/free-forex-gold-news-api-for-python-mt5-claude-mcp-zero-key-for-eur-usd", "markdown": "https://wpnews.pro/news/free-forex-gold-news-api-for-python-mt5-claude-mcp-zero-key-for-eur-usd.md", "text": "https://wpnews.pro/news/free-forex-gold-news-api-for-python-mt5-claude-mcp-zero-key-for-eur-usd.txt", "jsonld": "https://wpnews.pro/news/free-forex-gold-news-api-for-python-mt5-claude-mcp-zero-key-for-eur-usd.jsonld"}}