Gold Price Per Gram MCP

io.github.theluckystrike由 GitHub 账号 theluckystrike 发布v1.0.0更新于 Oct 30, 2026

Live gold price per gram by karat and currency, metal prices, jewelry melt value, unit conversion.

发布方自己的服务:PriceWin

已验证Streamable HTTP可网页运行金融数据与分析

概览

AI 生成的概览

远程 MCP 服务器,让助手按克拉与货币查询黄金、白银、铂金、钯金的实时现货价,并计算首饰熔值和精确换算黄金重量单位。

可以做什么
  • 查询当日每克、每金衡盎司、每托拉和每公斤的黄金价格,覆盖 24K 至 9K 及约 160 种货币,并附现货时间戳与汇率日期
  • 获取黄金、白银、铂金、钯金按盎司、克、公斤计的现货价,单个金属数据源故障时单独报错而不影响整体调用
  • 根据重量、单位和克拉估算黄金饰品(戒指、项链、手链、废金)的熔值,可选经销商价差以推测买家出价
  • 在克、公斤、金衡盎司、本尼威特、格令、常衡盎司、托拉、泰铢、越南 chi 与 luong、香港与台湾两、中国两之间换算黄金重量
适用场景
适合用户询问当前黄金或贵金属价格、某货币下的特定克拉价格、首饰的废金或熔值,或在模型训练数据无法覆盖的地区性黄金重量单位之间换算时使用。
运行要求
远程 Streamable HTTP 端点,无需 API 密钥、令牌或注册。可选的本地 stdio 版本通过 npx 运行,需要 Node 20 或更高版本。需要能访问托管服务器,该服务器再读取 gold-api.com 现货价与 Frankfurter 汇率。
安装前请注意
价格仅为现货(熔值):零售首饰更贵、买家出价更低,工具会在回答中说明。托管服务器的现货价可能滞后最多 5 分钟,汇率为每日参考汇率而非实时行情。纯度按名义克拉/24 计算,各地区“两”的克重不同,需明确所选单位。数据源故障时工具返回错误,而不是过期数字。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Gold Price Per Gram MCP,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.theluckystrike%2Fgold-price-per-gram-mcp/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

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

README

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

ToolWhat it returns
get_gold_price_per_gramGold 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_pricesSpot 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_valueMelt 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_unitsExact 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).

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:

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

Cursor

Add to ~/.cursor/mcp.json:

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

VS Code

Add to .vscode/mcp.json:

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 installnpm test            # builds, then runs the fixture tests against saved upstream payloadsnode scripts/smoke-stdio.mjs   # live stdio check, one real call per toolnpx 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.

servertoolshosted URL
cups-to-grams-mcpconvert_ingredient, search_ingredients, scale_recipe, convert_oven_temperaturehttps://cups-to-grams-mcp.lipmichal.workers.dev/mcp
dscr-loan-calculator-mcpcalculate_dscr, max_loan_for_target_dscr, rent_needed_for_target_dscr, compare_scenarios, amortization_summaryhttps://dscr-loan-calculator-mcp.lipmichal.workers.dev/mcp
lake-level-mcpsearch_lakes, get_lake_level, get_lake_history, compare_lakeshttps://lake-level-mcp.lipmichal.workers.dev/mcp
minimum-wage-mcpget_minimum_wage, list_upcoming_increases, compare_states, annual_income_at_minimum_wagehttps://minimum-wage-mcp.lipmichal.workers.dev/mcp
no-tax-on-overtime-mcpcalculate_overtime_deduction, calculate_tips_deduction, calculate_senior_deduction, estimate_tax_savings, explain_eligibilityhttps://no-tax-on-overtime-mcp.lipmichal.workers.dev/mcp
paycheck-calculator-mcpcalculate_take_home_pay, compare_states_take_home, salary_to_hourly, hourly_to_salary, get_federal_tax_bracketshttps://paycheck-calculator-mcp.lipmichal.workers.dev/mcp
uk-income-tax-salary-mcpcalculate_uk_take_home, get_uk_tax_bands, compare_salaries, marginal_rate_at_incomehttps://uk-income-tax-salary-mcp.lipmichal.workers.dev/mcp
us-federal-holidays-business-days-mcplist_federal_holidays, is_business_day, add_business_days, count_business_days, invoice_due_datehttps://us-federal-holidays-business-days-mcp.lipmichal.workers.dev/mcp
ab-test-sample-size-calculator-mcpcalculate_sample_size, estimate_test_duration, test_ab_significance, fisher_exact_test, check_peeking_riskhttps://ab-test-sample-size-calculator-mcp.lipmichal.workers.dev/mcp
aca-premium-tax-credit-calculator-mcpget_federal_poverty_level, calculate_premium_tax_credit, check_subsidy_cliff, get_aptc_repayment_caphttps://aca-premium-tax-credit-calculator-mcp.lipmichal.workers.dev/mcp
ap-score-distributions-mcpget_ap_score_distribution, estimate_ap_percentile, compare_ap_exams, list_ap_exams, estimate_ap_score_from_compositehttps://ap-score-distributions-mcp.lipmichal.workers.dev/mcp
car-loan-interest-deduction-calculator-mcpcalculate_car_loan_interest_deduction, calculate_salt_deduction, get_tax_brackets_and_standard_deduction, calculate_child_tax_credithttps://car-loan-interest-deduction-calculator-mcp.lipmichal.workers.dev/mcp
estate-gift-tax-exemption-calculator-mcpget_exemption_amounts, calculate_estate_tax, check_gift, compare_yearshttps://estate-gift-tax-exemption-calculator-mcp.lipmichal.workers.dev/mcp
recipe-nutrition-calculator-mcplookup_ingredient_nutrition, calculate_recipe_nutrition, round_nutrition_label, scale_recipe_nutritionhttps://recipe-nutrition-calculator-mcp.lipmichal.workers.dev/mcp
retirement-contribution-limits-2027-mcpget_contribution_limits, calculate_max_contribution, get_social_security_cola, compare_yearshttps://retirement-contribution-limits-2027-mcp.lipmichal.workers.dev/mcp
section-179-deduction-calculator-mcpcalculate_section_179, calculate_bonus_depreciation, get_vehicle_depreciation_limits, calculate_asset_loan_paymenthttps://section-179-deduction-calculator-mcp.lipmichal.workers.dev/mcp
student-loan-repayment-assistance-plan-calculator-mcpcalculate_rap_payment, compare_rap_vs_standard, get_federal_loan_limits, get_plan_transition_dateshttps://student-loan-repayment-assistance-plan-calculator-mcp.lipmichal.workers.dev/mcp
subdomain-finder-mcpfind_subdomains, resolve_subdomains, get_certificate_history, summarize_attack_surfacehttps://subdomain-finder-mcp.lipmichal.workers.dev/mcp
uk-statutory-sick-pay-maternity-pay-calculator-mcpcalculate_statutory_sick_pay, calculate_statutory_maternity_pay, get_minimum_wage_rates, check_eligibilityhttps://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

来源:README.md,提交 3f43127

工具

4

get_gold_price_per_gram

Get gold price per gram

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.

输入参数karatcurrency

get_metal_prices

Get precious metal prices

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.

输入参数currency

calculate_jewelry_value

Calculate gold jewelry melt value

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.

输入参数unitkarat必填weight必填currencydealer_spread_percent

convert_gold_units

Convert gold weight units

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.

输入参数tofrom必填value必填

版本历史

1
  1. v1.0.0最新Oct 30, 2026

评分

已满足适用检查项的 100%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

其他 Price 集成