MCP server for XAUUSD gold market data + 4-tier trading toolkit (TA, backtest, SMC, risk).
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
An MCP server that brings public gold (XAUUSD) market data into Claude, ChatGPT, Cursor, Windsurf, Cline, Zed, and any other Model Context Protocol client.
Free tier (13 tools + optional 8-tool MT5 BYOK adapter) is fully functional and stays free forever. Pro, Premium, and Ultra tiers add advanced TA, backtest, SMC suite, risk management, and AI analyst via an offline Ed25519 license key β no SaaS, no phone-home.
Educational and research use only β not financial advice.
| Tier | Tools | License | Suggested price |
|---|---|---|---|
| Free | 13 (+8 optional MT5 BYOK) | None | $0 |
| Pro | +7 (20 total) | GOLD_MCP_LICENSE_KEY env | $9-19/mo |
| Premium | +4 (24 total) | GOLD_MCP_LICENSE_KEY env | $29-49/mo |
| Ultra | +18 (42 total, 50 with MT5 BYOK) | GOLD_MCP_LICENSE_KEY env | $99-149/mo |
Public gold data (Yahoo Finance):
get_gold_price β latest gold close + 24h changeget_gold_ohlcv β historical bars (1m β 1mo)get_macro_context β DXY, US10Y/02Y, SPX, VIX, BTC, silver, oilget_gold_correlations β gold-vs-macro correlation matrixget_gold_seasonality β day-of-week / monthly return statsget_vn_macro β USD/VND + implied world-parity gold price in VNDestimate_vn_gold_premium β compare local VN quote to world paritygold_market_snapshot β one-call aggregator + bulleted summarydiagnostic β show license tier + available toolscache_purge β sweep expired cache entriesRealtime PAXG via Binance public WebSocket (NEW v4.1, no API key):
paxg_worker_status β WS worker health + tick countget_paxg_tick β last PAXG tick (tracks XAU/USD within 0.1-0.3%)get_paxg_ohlcv_realtime β aggregated PAXG bars from local tick logMT5 BYOK adapter (NEW v4.1, optional via pip install 'gold-mcp[mt5]', Windows):
mt5_attach / mt5_detach / mt5_status β manage attached terminalmt5_find_symbol β broker-specific XAUUSD symbol resolutionmt5_get_tick / mt5_get_ohlcv / mt5_get_ticks β read from your terminalmt5_account_info β balance / equity / leverageanalyze_gold_advanced β Bollinger + Ichimoku + Fibonaccimulti_timeframe_snapshot β 5m / 1h / 4h / 1d in one callgold_correlation_regime β detects DXY decoupling, etc.get_gold_setups β multi-indicator confluence scannercreate_gold_alert / list_gold_alerts / delete_gold_alertbacktest_gold_strategy β 4 strategies, vectorizedgold_walk_forward β rolling out-of-sample validationoptimize_gold_strategy β grid search by Sharpe / PF / returngold_intraday_seasonality β hourly / session bucketingSmart Money Concepts (SMC)
smc_full_scan β composite SMC bias (structure + OB + FVG + sweeps)detect_order_blocks β bullish/bearish OB with impulse ATR filteringdetect_fair_value_gaps β 3-candle imbalances + fill trackingdetect_liquidity_sweeps β stop-hunt detection (breach + reverse)detect_market_structure β CHOCH/BOS labeling on swing fractalsRegime + Multi-Timeframe
classify_regime β composite Hurst exponent + Lo-MacKinlay variance ratiomtf_alignment β D1/H4/H1 confluence with alignment score 0-100Position sizing + risk
kelly_fraction β half-Kelly default for safetyfixed_fractional_size β classic R% sizingoptimal_f β Ralph Vince geometric-mean-maximizing frisk_of_ruin β Monte Carlo ruin probabilityMonte Carlo + VaR
monte_carlo_paths β bootstrap or parametric path simulationvalue_at_risk β historical VaR + Conditional VaRprob_hit_target_or_stop β MC trade probability with EV in R-multiplesAI Analyst (BYOK Anthropic)
ai_daily_briefing β structured JSON read from Claude Sonnet 4.6ai_setup_explanation β cheaper Haiku 4.5 plain-English readReport generation
generate_html_tearsheet β polished standalone HTML reportgenerate_markdown_briefing β portable Markdown daily summaryPython 3.10+. No other setup, no env vars, no data files.
Edit %APPDATA%\Claude\claude_desktop_config.json (Windows) or
~/Library/Application Support/Claude/claude_desktop_config.json (macOS):
Restart Claude Desktop. The tools appear under the plug icon.
~/.cursor/mcp.json (or the equivalent file for your client):
Settings β Connectors β Add MCP server:
Ask the model in plain English. Examples:
"What is gold doing right now and how does it compare to today's macro tape (DXY, yields, VIX)?"
"Show me the last 24 hourly bars of gold and the 60-day correlation with silver and DXY."
"Give me a market snapshot for gold β combine price, macro context, correlations, and the day-of-week seasonality."
"USD/VND right now and the implied world-parity gold price in VND per tael. If SJC is quoting 145 million, what's the premium?"
LLMs reason well about gold but they don't see live market data, the macro tape that moves gold, or a clean correlation matrix on demand. This server is a tiny, free bridge between an MCP client and the public Yahoo Finance data that any researcher already has access to β exposed as well-typed tools so the model picks the right one automatically.
It started as a study project to learn MCP architecture and turned into something useful enough to publish for the community.
Add GOLD_MCP_LICENSE_KEY to the env block of your MCP config:
Restart your MCP client. Call diagnostic β tier_active should
report pro or premium. New tools become available immediately.
See examples/claude_desktop_config_pro.json for the full template.
For vendors selling licenses, see the CLI:
Or run the Lemon Squeezy webhook handler (port from
mcp-byok-template β
swap the env-var name from MCP_BYOK_LICENSE_KEY to GOLD_MCP_LICENSE_KEY).
This project is small on purpose. We welcome contributions that fit the same pattern:
See CONTRIBUTING.md for details and SECURITY.md for how to report security issues.
CI runs the suite on Linux, macOS, and Windows across Python 3.10/3.11/3.12 on every push and pull request.
gold-mcp is a data and analysis tool for educational and research
purposes only. Nothing returned by any tool constitutes investment
advice, a recommendation, or a solicitation. Markets carry risk; you
are responsible for your own decisions.
MIT β see LICENSE.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/gold-mcp)<a href="https://allmcps.com/mcp/gold-mcp"><img src="https://allmcps.com/api/badge/gold-mcp?style=directory" alt="Gold Mcp on AllMCPs" /></a>