Skip to main content
Glama
gold-price-per-gram-mcp

gold-price-per-gram-mcp

gold-price-per-gram-mcp

The live gold price per gram for AI assistants, by karat and currency, with metal prices, jewelry melt value and exact gold unit conversion.

This is a Model Context Protocol (MCP) server. It reads the gold, silver, platinum and palladium spot price at call time and converts it with central-bank FX rates for about 160 currencies. It needs no API key.

Tools

Tool

What it returns

get_gold_price_per_gram

Gold price per gram, troy ounce, tola and kilogram for 24K, 22K, 21K, 18K, 14K, 10K and 9K in any currency, with the spot time stamp and FX date.

get_metal_prices

Spot price of gold, silver, platinum and palladium per troy ounce, gram and kilogram in any currency. A metal whose feed is down is reported, not fatal.

calculate_jewelry_value

Melt value of a gold item from weight, unit and karat, with an optional dealer spread percent. States that retail and buyback prices differ from melt value.

convert_gold_units

Exact conversion between gram, kilogram, troy ounce, pennyweight, grain, avoirdupois ounce, tola, Thai baht, Vietnamese chi and luong, Hong Kong tael, Taiwan tael and China liang, with the definition and source of each unit.

Every result has structured JSON, a one-paragraph summary, as_of, source and more (the matching page on goldgramprice.com).

Related MCP server: Ratevert

What it knows that your model does not

  • Today's gold price. Spot moves every minute and a model's training data is months old.

  • Today's exchange rate for INR, AED, SAR, PKR, EUR, GBP and about 150 more currencies.

  • Exact unit constants. A troy ounce is 31.1034768 g and a grain is 64.79891 mg by definition (NIST Handbook 44). A tola is 180 grains. A Thai bullion baht is 15.244 g, not 15 g. A kitchen-scale ounce is 28.349523125 g, not a troy ounce.

  • Karat purity as an exact fraction (karat / 24), so 22K is 91.6667% and 14K is 58.3333%.

Install

Hosted (Claude.ai custom connector, ChatGPT developer mode)

Paste this URL. No token, no sign-up.

https://gold-price-per-gram-mcp.lipmichal.workers.dev/mcp

Claude Code

claude mcp add --transport http gold-price https://gold-price-per-gram-mcp.lipmichal.workers.dev/mcp

Or run it locally over stdio:

claude mcp add gold-price -- npx -y gold-price-per-gram-mcp

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "gold-price": { "command": "npx", "args": ["-y", "gold-price-per-gram-mcp"] }
  }
}

Cursor

Add to ~/.cursor/mcp.json:

{
  "mcpServers": {
    "gold-price": { "url": "https://gold-price-per-gram-mcp.lipmichal.workers.dev/mcp" }
  }
}

VS Code

Add to .vscode/mcp.json:

{
  "servers": {
    "gold-price": { "type": "http", "url": "https://gold-price-per-gram-mcp.lipmichal.workers.dev/mcp" }
  }
}

Node 20 or newer is needed for the local stdio version.

Example prompts

  • "What is the 22K gold price per gram in India today?"

  • "How much is one tola of 24K gold in Pakistani rupees?"

  • "I have a 14K chain that weighs 12 grams. What is its melt value, and what might a buyer offer at a 25% spread?"

  • "Show gold, silver and platinum prices in euros."

  • "How many grams are in a Thai baht of gold, and in a Vietnamese chi?"

Data sources

All keyless and free to use from a server. Full list with fetch dates in DATA_SOURCES.md.

  • Spot prices from gold-api.com, the same feed goldgramprice.com uses. Its terms allow commercial use and ask callers not to send several requests per second, so the hosted server caches each price for 5 minutes.

  • FX rates from Frankfurter, blended from the ECB and other central banks. Cached for 1 hour. Rates update once a working day.

  • Unit constants from NIST Handbook 44 Appendix C. Karat definition from 16 CFR 23.3.

Limitations

  • Prices are spot (melt) values for pure metal. Jewellery in a shop costs more (making charges, design, tax) and buyers pay less (refining and margin). The tools say so in every answer.

  • The spot price can be up to 5 minutes old on the hosted server. FX rates are daily reference rates, not live market quotes.

  • Purity uses the nominal karat fraction. Real items can be slightly under (legal tolerances) or over.

  • Regional tael values differ (Hong Kong 37.429 g, Vietnam 37.5 g, Taiwan 37.5 g, China 50 g). Pick the one you mean.

  • When a price feed is down, the tool returns a clear error instead of a stale or remembered number.

More

Karat calculators, scrap gold, city price pages and gold price history are on goldgramprice.com.

Part of the Zovo MCP collection: https://mcp.zovo.one

Development

npm install
npm test            # builds, then runs the fixture tests against saved upstream payloads
node scripts/smoke-stdio.mjs   # live stdio check, one real call per tool
npx wrangler deploy            # Cloudflare Worker, Streamable HTTP at /mcp

License

MIT

More data servers from the same author

Each one is free, needs no API key and has a hosted URL you can paste into Claude or ChatGPT.

server

tools

hosted URL

cups-to-grams-mcp

convert_ingredient, search_ingredients, scale_recipe, convert_oven_temperature

https://cups-to-grams-mcp.lipmichal.workers.dev/mcp

dscr-loan-calculator-mcp

calculate_dscr, max_loan_for_target_dscr, rent_needed_for_target_dscr, compare_scenarios, amortization_summary

https://dscr-loan-calculator-mcp.lipmichal.workers.dev/mcp

lake-level-mcp

search_lakes, get_lake_level, get_lake_history, compare_lakes

https://lake-level-mcp.lipmichal.workers.dev/mcp

minimum-wage-mcp

get_minimum_wage, list_upcoming_increases, compare_states, annual_income_at_minimum_wage

https://minimum-wage-mcp.lipmichal.workers.dev/mcp

no-tax-on-overtime-mcp

calculate_overtime_deduction, calculate_tips_deduction, calculate_senior_deduction, estimate_tax_savings, explain_eligibility

https://no-tax-on-overtime-mcp.lipmichal.workers.dev/mcp

paycheck-calculator-mcp

calculate_take_home_pay, compare_states_take_home, salary_to_hourly, hourly_to_salary, get_federal_tax_brackets

https://paycheck-calculator-mcp.lipmichal.workers.dev/mcp

uk-income-tax-salary-mcp

calculate_uk_take_home, get_uk_tax_bands, compare_salaries, marginal_rate_at_income

https://uk-income-tax-salary-mcp.lipmichal.workers.dev/mcp

us-federal-holidays-business-days-mcp

list_federal_holidays, is_business_day, add_business_days, count_business_days, invoice_due_date

https://us-federal-holidays-business-days-mcp.lipmichal.workers.dev/mcp

ab-test-sample-size-calculator-mcp

calculate_sample_size, estimate_test_duration, test_ab_significance, fisher_exact_test, check_peeking_risk

https://ab-test-sample-size-calculator-mcp.lipmichal.workers.dev/mcp

aca-premium-tax-credit-calculator-mcp

get_federal_poverty_level, calculate_premium_tax_credit, check_subsidy_cliff, get_aptc_repayment_cap

https://aca-premium-tax-credit-calculator-mcp.lipmichal.workers.dev/mcp

ap-score-distributions-mcp

get_ap_score_distribution, estimate_ap_percentile, compare_ap_exams, list_ap_exams, estimate_ap_score_from_composite

https://ap-score-distributions-mcp.lipmichal.workers.dev/mcp

car-loan-interest-deduction-calculator-mcp

calculate_car_loan_interest_deduction, calculate_salt_deduction, get_tax_brackets_and_standard_deduction, calculate_child_tax_credit

https://car-loan-interest-deduction-calculator-mcp.lipmichal.workers.dev/mcp

estate-gift-tax-exemption-calculator-mcp

get_exemption_amounts, calculate_estate_tax, check_gift, compare_years

https://estate-gift-tax-exemption-calculator-mcp.lipmichal.workers.dev/mcp

recipe-nutrition-calculator-mcp

lookup_ingredient_nutrition, calculate_recipe_nutrition, round_nutrition_label, scale_recipe_nutrition

https://recipe-nutrition-calculator-mcp.lipmichal.workers.dev/mcp

retirement-contribution-limits-2027-mcp

get_contribution_limits, calculate_max_contribution, get_social_security_cola, compare_years

https://retirement-contribution-limits-2027-mcp.lipmichal.workers.dev/mcp

section-179-deduction-calculator-mcp

calculate_section_179, calculate_bonus_depreciation, get_vehicle_depreciation_limits, calculate_asset_loan_payment

https://section-179-deduction-calculator-mcp.lipmichal.workers.dev/mcp

student-loan-repayment-assistance-plan-calculator-mcp

calculate_rap_payment, compare_rap_vs_standard, get_federal_loan_limits, get_plan_transition_dates

https://student-loan-repayment-assistance-plan-calculator-mcp.lipmichal.workers.dev/mcp

subdomain-finder-mcp

find_subdomains, resolve_subdomains, get_certificate_history, summarize_attack_surface

https://subdomain-finder-mcp.lipmichal.workers.dev/mcp

uk-statutory-sick-pay-maternity-pay-calculator-mcp

calculate_statutory_sick_pay, calculate_statutory_maternity_pay, get_minimum_wage_rates, check_eligibility

https://uk-statutory-sick-pay-maternity-pay-calculator-mcp.lipmichal.workers.dev/mcp

The paid back-office collection (invoices, VAT, PDFs, spreadsheets) is at https://mcp.zovo.one

Available Tools

4 tools
calculate_jewelry_valueCalculate gold jewelry melt valueA
Read-onlyIdempotent
Inspect

Melt value of a gold item (ring, chain, bracelet, scrap) from its weight, unit and karat at the live spot price, in any currency. Optional dealer_spread_percent returns the likely buyer offer. The result states that melt value is not the retail or buyback price.

Inputs: karat (required), weight (required), unit, currency, +1 more.

convert_gold_unitsConvert gold weight unitsA
Read-onlyIdempotent
Inspect

Convert a gold weight between gram, kilogram, troy ounce, pennyweight, grain, avoirdupois ounce, tola, Thai baht (bullion and jewellery), Vietnamese chi and luong, Hong Kong gold tael, Taiwan tael and China liang. Uses exact defined constants (1 troy ounce = 31.1034768 g, 1 grain = 64.79891 mg, NIST Handbook 44) and returns the definition and source of each unit. Omit "to" to get every unit.

Inputs: from (required), value (required), to.

get_gold_price_per_gramGet gold price per gramA
Read-onlyIdempotent
Inspect

Today's gold price per gram, per troy ounce, per tola and per kilogram, read live from the gold spot market, for 24K, 22K, 21K, 18K, 14K, 10K and 9K gold, in any of about 160 currencies (central-bank FX). Returns the spot time stamp, the FX date and the sources. Your training data cannot know today's gold price. Omit karat to get every karat.

Inputs: karat, currency.

get_metal_pricesGet precious metal pricesA
Read-onlyIdempotent
Inspect

Live spot prices of gold (XAU), silver (XAG), platinum (XPT) and palladium (XPD) per troy ounce, per gram and per kilogram, in any major currency. A metal whose feed is down is reported with its error instead of failing the whole call.

Inputs: currency.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.1/5.0

    Scored across 4 tools

    Disambiguation4/5

    get_gold_price_per_gram and get_metal_prices overlap on gold spot prices per gram/ounce, which could cause misselection at first glance. The descriptions do differentiate them (karat-level detail in ~160 currencies vs. multi-metal in major currencies), so an agent can resolve the boundary, but it takes reading.

    Naming Consistency5/5

    All four tools follow a clean verb_noun snake_case pattern: get_gold_price_per_gram, get_metal_prices, calculate_jewelry_value, convert_gold_units. No mixed conventions or vague verbs.

    Tool Count5/5

    Four tools is a tight, well-scoped surface for a precious-metals pricing server: price lookup, multi-metal lookup, valuation, and unit conversion. Each tool has a clear, non-redundant role.

    Completeness4/5

    The surface covers live pricing, multi-metal spot, melt valuation, and extensive unit conversion, which is strong for a live-price domain. The main gap is historical/time-series pricing and bulk/batch valuation, but agents can work around this for present-day price queries.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Wraps the Metals-API to provide real-time precious metals data (gold, silver, platinum, palladium) via natural language queries, part of the Pipeworx gateway for AI agents.
      89 npm
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables searching and converting currencies, stocks, crypto, ETFs, and funds with current rates and source freshness for AI agents.
      3
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables access to live precious metals prices, historical data, market intelligence, and portfolio management with AI/LLM integration.
      ISC
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI agents to fetch the live 18k gold price per milligram, gram in Rial and Toman, plus daily, weekly and monthly price history and platform statistics from Milli.gold through read-only tools. Supports Claude, Cursor and Copilot over stdio with no API key or account required.
      8
      160 PyPI
      MIT