MetalAPI
XAU3,997.89−1.54%XAG53.936−1.51%XPT1,554.47−0.83%XPD1,047.03−0.44%XCU6.5080+2.29%WTI103.27+3.82%BRENT111.70−1.30%EUR1.120400−0.01%GBP1.337500−0.01%JPY0.0063761+0.14%CHF1.213445−0.25%TRY0.020125−0.12%BTC80,329.75−0.55%ETH2,329.36−1.13%
MCP server · OAuth 2.1 · Streamable HTTP

Live metal prices, right inside your AI assistant

Connect Claude, ChatGPT, Cursor or VS Code to MetalAPI and ask for gold, silver, platinum, energy, currency and crypto prices in plain language — live, historical or converted to any unit.

MCP server URL
https://metalapi.com/mcp

Ask, don't code

Your assistant picks the right tool, calls MetalAPI and answers with real numbers.

What's the gold price per gram in euros right now?

Gold is trading at about €110.40 per gram (USD 3,997.89 per troy ounce), from MetalAPI's latest quote.

How did silver move over the last two weeks?

Silver closed between $52.10 and $54.30, ending 3.1% higher than two weeks ago. Here's the daily series…

Convert 2.5 troy ounces of platinum to Turkish lira.

2.5 oz of platinum is worth roughly ₺98,600 at the latest price.

Illustrative answers. Real answers use the latest prices your plan allows.

Connect in a minute

Sign in with your MetalAPI account where the app supports connectors, or paste an API key into your editor's MCP config.

Claude (claude.ai and Claude Desktop)

Sign in (OAuth)
  1. 1Open Settings → Connectors and choose Add custom connector.
  2. 2Name it MetalAPI and enter https://metalapi.com/mcp.
  3. 3Click Connect, sign in to MetalAPI (or create a free account) and click Allow.

ChatGPT

Sign in (OAuth)
  1. 1Open Settings → Apps & Connectors and create a connector (developer mode).
  2. 2Enter https://metalapi.com/mcp and choose OAuth authentication.
  3. 3Sign in to MetalAPI and approve the connection.

Claude Code

API key

Or add it without --header and run /mcp to sign in instead.

claude mcp add --transport http metalapi https://metalapi.com/mcp \
  --header "Authorization: Bearer YOUR_API_KEY"

Cursor

API key

Add this to ~/.cursor/mcp.json (or .cursor/mcp.json in a project).

{
  "mcpServers": {
    "metalapi": {
      "url": "https://metalapi.com/mcp",
      "headers": { "Authorization": "Bearer YOUR_API_KEY" }
    }
  }
}

VS Code (GitHub Copilot)

API key

Save as .vscode/mcp.json; VS Code asks for the key once and stores it securely.

{
  "inputs": [
    { "type": "promptString", "id": "metalapi-key", "description": "MetalAPI API key", "password": true }
  ],
  "servers": {
    "metalapi": {
      "type": "http",
      "url": "https://metalapi.com/mcp",
      "headers": { "Authorization": "Bearer ${input:metalapi-key}" }
    }
  }
}

13 tools, one connection

Market data tools count against your plan's monthly requests exactly like REST calls. Account tools are free.

get_latest_pricesRead-only

Latest prices for metals, energy, currencies and crypto, in any base currency and unit.

get_historical_pricesRead-only

Closing prices on any past day: currencies since 1999, metals and energy since 2000.

convertRead-only

Convert an amount between any two symbols, now or on a past day.

get_timeseriesRead-only

Daily closing prices between two dates.

get_fluctuationRead-only

Start and end price, absolute and percentage change between two dates.

get_ohlcRead-only

Open, high, low and close for a day.

get_carat_pricesRead-only

Gold price per gram for every carat from 8K to 24K.

list_symbolsRead-only

All supported symbols with names, categories and units.

get_accountRead-only

Your plan, monthly allowance and usage.

list_plansRead-only

Every plan with limits and prices.

list_api_keysRead-only

Your active API keys (masked).

create_api_keyAsks first

Creates an API key for your own apps (OAuth connections only).

get_upgrade_linkAsks first

Prepares a Stripe checkout link for a bigger plan — you open it and pay yourself.

Safe by design

Your account, your consent

OAuth 2.1 with PKCE: you sign in on metalapi.com and approve each app. Disconnect any time under Settings → Connected apps.

Read-only by default

Eleven of the thirteen tools only read data. The two that change something — creating a key and preparing a checkout link — ask for your confirmation first.

No payments by AI

The assistant can prepare a checkout link, but only you can pay it. Nothing is ever charged by the MCP server.

Same limits as the API

Market data calls are logged in your dashboard and count against the same monthly quota and per-minute limits as REST requests.

Building with an AI coding tool?

Point it at our machine-readable docs and it will write the integration for you.

Listed in the official MCP Registry as com.metalapi/metalapi.

Questions

Do I need a paid plan?+

No. The Free plan (100 requests a month, daily prices) works with every data tool except gold-by-carat prices. Paid plans add fresher prices and higher limits.

Which assistants work with MetalAPI?+

Any MCP client that supports Streamable HTTP: Claude (web, desktop and Claude Code), ChatGPT connectors, Cursor, VS Code with GitHub Copilot, Windsurf and others.

Can the assistant see my other data?+

No. The connection only reaches MetalAPI: prices, your plan, usage and API keys. It never sees your conversations or other apps.

What if I hit my monthly limit?+

Data tools return a quota-exceeded error with an upgrade link until the 1st of the month. Account tools keep working.

Give your assistant real market data

Create a free account, connect your assistant and ask your first question in under two minutes.