Connect Grok to Live Precious-Metal Market Data
Grok can retrieve current gold, silver, platinum, and palladium prices through the GoldAPI.io MCP Server. After a one-time connector setup, you can ask Grok for spot prices, jewelry melt values, bullion valuations, historical prices, currency conversions, and other precious-metals calculations in natural language.
No coding or local installation is required. GoldAPI.io hosts the MCP server at a secure public HTTPS endpoint, and Grok discovers the available tools automatically.
The connection uses:
https://mcp.goldapi.io/mcpGoldAPI MCP Server access requires an active GoldAPI Business plan.
Quick setup: add GoldAPI to Grok
Grok supports custom remote MCP connectors. To add GoldAPI:
- Sign in to Grok at grok.com.
- Open grok.com/connectors.
- Select New Connector.
- Choose Custom.
- Enter
GoldAPIas the connector name. - Paste
https://mcp.goldapi.io/mcpinto the MCP server URL field. - Continue and complete the required OAuth authentication.
- Sign in with the GoldAPI.io account that has active Business-plan access.
- Review the requested access and approve consent.
- Return to Grok and confirm that GoldAPI appears among your connected tools.
The official xAI connector documentation explains that Grok discovers the tools exposed by a custom public MCP server and makes them available in conversations.
For Grok Business and Enterprise accounts, a team administrator may need to provision the connector before organization members can use it. Connector availability can also be affected by workspace policies.
Run your first live gold-price request
Open a new Grok conversation and ask:
Use GoldAPI to get the current spot price of gold in USD per troy ounce and per gram.Grok should choose the GoldAPI get_current_metal_price tool. Inspect the tool-use details and confirm that the request contains gold (XAU) and US dollars (USD).
For current market questions, explicitly saying “Use GoldAPI” helps distinguish a tool-backed response from an answer based on general model knowledge.
Spot-price prompts for gold, silver, platinum, and palladium
Use a clear currency and unit when you want a specific result.
Use GoldAPI to show the live gold price in Australian dollars per troy ounce.Get the current silver spot price in EUR per ounce and per gram using GoldAPI.What are the current platinum and palladium prices in USD? Use the GoldAPI connector and label each metal clearly.Use GoldAPI to compare today's spot prices for gold, silver, platinum, and palladium in British pounds.GoldAPI supports the standard precious-metal symbols:
| Metal | Symbol |
|---|---|
| Gold | XAU |
| Silver | XAG |
| Platinum | XPT |
| Palladium | XPD |
Turn a spot price into a useful valuation
A raw market price is often only the starting point. Grok can use GoldAPI tools to calculate values from weight, purity, currency, and current or historical prices.
Gold jewelry and scrap value
Use GoldAPI to calculate the current melt value of 85 grams of 18k gold in EUR.How much is 125 grams of 22k gold worth today in Australian dollars? Show the value per gram and the total.Compare the current value per gram of 14k, 18k, 22k, and 24k gold in USD using GoldAPI.These are metal-value estimates. They do not automatically include gemstones, craftsmanship, collectible value, taxes, retail margins, or fees.
Bullion holdings
Use GoldAPI to value 10 troy ounces of gold and 500 troy ounces of silver in USD. Show each holding and the combined total.What is the current value of 2 kilograms of silver and 5 ounces of platinum in CAD?Value my holdings in AUD: 3 ounces of gold, 200 ounces of silver, 4 ounces of platinum, and 2 ounces of palladium.The value_metal_holdings tool can value up to 50 holdings while reusing matching price requests where possible.
Dealer estimates
Estimate a dealer buy quote for 50 troy ounces of silver at a 4% discount to melt value using GoldAPI.Create a nonbinding dealer sell estimate for 2 troy ounces of gold at a 3% premium to melt value in USD.Dealer calculations are illustrative, not offers. Actual dealers can apply different spreads, premiums, testing charges, taxes, and commercial terms.
Explore historical precious-metal prices with Grok
GoldAPI gives Grok tools for a single historical date and for daily prices across an inclusive range of up to 90 days.
Use GoldAPI to find the XAU/USD price on 2025-01-15.Show daily silver prices in EUR from 2025-03-01 through 2025-03-14 using GoldAPI.Analyze the historical performance of XAU/AUD over the last 30 calendar days. Report descriptive statistics and do not forecast future prices.The performance tool describes historical data. It does not predict prices and should not be treated as investment advice.
Use Grok for exchange rates and LBMA benchmarks
GoldAPI MCP includes more than spot-price tools.
Convert 10,000 USD to AED using the current GoldAPI exchange rate.Use GoldAPI to return the current USD/AUD rate with bid and ask values.Get the LBMA gold benchmark in USD for 2025-06-30 using GoldAPI.When the date, currency, benchmark, or metal matters, state it directly in the prompt.
What happens when Grok uses the GoldAPI connector?
MCP stands for Model Context Protocol. It gives Grok a standard way to discover and invoke external tools.
For a request such as “What is the current palladium price in euros?”, the process is generally:
- Grok identifies that the answer requires current precious-metals data.
- It selects the GoldAPI current-price tool.
- It sends palladium (
XPD) and euros (EUR) as structured inputs. - GoldAPI returns the current result.
- Grok presents the data conversationally.
This tool call is the important part. An AI response that does not invoke a connected live-data source should not be assumed to contain a current spot price.
Verify that Grok used GoldAPI
After receiving an answer, check the conversation's tool-use details. A valid tool-backed result should show:
- GoldAPI as the selected connector.
- A GoldAPI MCP tool call.
- The expected metal and currency.
- The requested unit, weight, purity, or historical date.
- Current-data timing information where supplied.
Common tool names include:
get_current_metal_priceget_historical_metal_priceget_metal_price_historycalculate_metal_valuecalculate_dealer_quotecompare_karat_valuesanalyze_metal_performancevalue_metal_holdings
If no GoldAPI call appears, try:
Answer this using the connected GoldAPI MCP tools. Do not estimate or use general model knowledge.Fix common Grok connector problems
GoldAPI is not available in a conversation
Return to grok.com/connectors and confirm that GoldAPI is connected. In a Business or Enterprise workspace, ask an administrator whether the connector has been provisioned and permitted by team policy.
Grok cannot reach the MCP server
Confirm that the URL is exactly:
https://mcp.goldapi.io/mcpGoldAPI is already publicly hosted, so you do not need a tunnel or a locally running process.
Authentication needs attention
Reconnect GoldAPI and repeat the OAuth flow. Sign in with the GoldAPI account that has Business-plan access.
A 401 response indicates missing or invalid authorization. A 403 response normally means the authenticated GoldAPI account does not have active Business MCP access. A 429 response indicates an underlying request or rate limit.
Grok returns the wrong unit or currency
Restate the request with explicit output requirements, such as “AUD per gram” or “USD per troy ounce.” For jewelry, include both weight and purity.
A workspace blocks the custom connector
Organization policies can restrict connectors. Ask a Grok workspace administrator to approve or provision the GoldAPI custom MCP connection.
Grok and GoldAPI frequently asked questions
Can Grok provide live gold and silver prices?
Yes. Grok can retrieve current precious-metal data after the GoldAPI.io MCP Server is added as a custom connector. Confirm the response contains a GoldAPI tool call.
Does Grok support platinum and palladium prices?
Yes. GoldAPI supports gold, silver, platinum, and palladium through its current-price, historical, valuation, and portfolio tools.
Is this available without programming?
Yes. Non-technical users can add GoldAPI from Grok's connector page using the hosted MCP URL and OAuth authorization.
Must I paste a GoldAPI API key into Grok?
No. The interactive Grok connector can use OAuth. Complete the GoldAPI sign-in and consent flow instead of sharing an API key in a conversation.
Can Grok calculate gold value by gram and karat?
Yes. Provide the weight, unit, purity, and currency. GoldAPI can calculate melt value and compare common karats using current or historical prices.
Which GoldAPI plan includes MCP access?
The GoldAPI Business plan includes MCP Server access. The Pro plan provides unlimited REST API requests but does not include MCP or production WebSocket access.
Make Grok a precious-metals data assistant
The GoldAPI.io MCP Server lets Grok work with structured current and historical data for gold, silver, platinum, and palladium. Once the custom connector is authorized, everyday prompts can retrieve spot prices, calculate jewelry or bullion value, compare purities, analyze historical ranges, and value multi-metal holdings.
See the GoldAPI MCP Server documentation for the authoritative endpoint, authentication rules, tools, and errors. You can also review xAI's custom connector documentation for Grok-specific connector behavior.
