# Metals-API – Full API Reference for LLMs > Real-time and historical precious metals and currency JSON API: gold, silver, platinum, palladium, and more. ## Authentication REST requires the query parameter `access_key` on every request: ``` GET https://metals-api.com/api/latest?access_key=YOUR_ACCESS_KEY&base=USD&symbols=XAU ``` MCP: do not put the key in the URL — Claude Desktop and claude.ai reject tokens in the query string. Pass `api_key` on every tool call. The worker maps `api_key` → REST `access_key`. ``` https://metals-api.mcp.metals-api.com/mcp ``` Get a key at https://metals-api.com/register ## Base URL https://metals-api.com/api --- ## 1. Supported Symbols GET /api/symbols Retrieve the list of available metal and currency symbols. ``` GET /api/symbols?access_key=YOUR_ACCESS_KEY ``` MCP tool: `metals.symbols` Docs: https://metals-api.com/documentation#supportedsymbols --- ## 2. Latest Rates GET /api/latest Real-time metal and currency rates. Update frequency depends on plan. Query params: `access_key` (required), `base` (default USD), `symbols` (comma-separated). ``` GET /api/latest?access_key=YOUR_ACCESS_KEY&base=USD&symbols=XAU,XAG,XPT ``` MCP tool: `metals.latest` Docs: https://metals-api.com/documentation#latestrates --- ## 3. Historical Rates GET /api/{YYYY-MM-DD} Historical closing rates for a past date. ``` GET /api/2025-08-18?access_key=YOUR_ACCESS_KEY&base=USD&symbols=XAU ``` MCP tool: `metals.historical` (pass `date`, `base`, `symbols`, `api_key`) Docs: https://metals-api.com/documentation#historicalrates --- ## 4. Convert GET /api/convert Convert an amount between metal or currency symbols. ``` GET /api/convert?access_key=YOUR_ACCESS_KEY&from=XAU&to=USD&amount=1 ``` MCP tool: `metals.convert` Docs: https://metals-api.com/documentation#convertcurrency --- ## 5. Time Series GET /api/timeseries Daily rates between two dates. ``` GET /api/timeseries?access_key=YOUR_ACCESS_KEY&start_date=2025-08-01&end_date=2025-08-15&base=USD&symbols=XAU ``` MCP tool: `metals.time_series` Docs: https://metals-api.com/documentation#timeseries --- ## 6. Fluctuation GET /api/fluctuation Absolute and percent change between two dates. ``` GET /api/fluctuation?access_key=YOUR_ACCESS_KEY&start_date=2025-08-01&end_date=2025-08-15&base=USD&symbols=XAU ``` MCP tool: `metals.fluctuation` Docs: https://metals-api.com/documentation#fluctuation --- ## 7. OHLC GET /api/open-high-low-close/{YYYY-MM-DD} Open/High/Low/Close prices for a trading day. ``` GET /api/open-high-low-close/2025-08-18?access_key=YOUR_ACCESS_KEY&base=USD&symbols=XAU ``` MCP tool: `metals.ohlc` Docs: https://metals-api.com/documentation#openhighlowclose --- ## 8. Intraday GET /api/intraday Intraday candles for a single symbol. ``` GET /api/intraday?access_key=YOUR_ACCESS_KEY&symbol=XAU&base=USD&date=2025-08-18&interval=1h ``` MCP tool: `metals.intraday` Docs: https://metals-api.com/documentation#intraday --- ## MCP - Setup: https://metals-api.com/mcp - Endpoint: https://metals-api.mcp.metals-api.com/mcp - Server card: https://metals-api.com/.well-known/mcp/server-card.json - Tools: `metals.symbols`, `metals.latest`, `metals.historical`, `metals.convert`, `metals.time_series`, `metals.fluctuation`, `metals.ohlc`, `metals.intraday` ## Response shape JSON with `success`, `timestamp`, `base`, `date`, and `rates`. Default base is USD.