goldprice.dev

dev.goldprice由 goldprice.dev 发布官方发布者v1.0.4更新于 Oct 24, 2026

Gold, silver and copper spot, 31 currencies, per-country dealer prices and nine MCP tools.

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

概览

AI 生成的概览

远程 MCP 服务器,提供黄金、白银和铜的市场数据:现货价格、按克拉计的黄金价格、OHLCV 历史、期货曲线和经销商报价。

可以做什么
  • 查询某个品种的最新现货或期货价格,并列出支持的品种。
  • 按克拉纯度获取多币种的每克黄金价格,以及按国家划分的实物经销商和零售报价。
  • 获取从 1 分钟到 1 天间隔的 OHLCV K 线历史,深度由套餐决定。
  • 读取黄金、白银和铜的多期限期货结算曲线。
  • 查看来源元数据,如数据源、单位、方法论和时效规则。
  • 检索服务商的常见问题库,获取使用、计费和认证方面的解答。
适用场景
适合助手需要当前或历史贵金属与工业金属价格、首饰级黄金定价或期货隐含曲线,用于报告、交易研究或定价计算时;也适合需要引用服务商官方文档作答的场景。
运行要求
远程 streamable HTTP 端点,无需安装包或本地运行时。未声明认证,但可选提供 API 密钥,其套餐决定历史深度和数据延迟。需要能访问服务商 API 的网络。
安装前请注意
免费和无密钥调用者获得的现货价格延迟 15 分钟,历史深度取决于 API 密钥的套餐。结账工具会打开 Stripe 计费链接并要求用户先确认套餐,可能产生付费订阅。价格仅为市场信息,不构成投资建议。

安装

在 SourceWeft 中

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

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

交给智能体安装

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

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

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

其他 MCP 客户端

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

{
  "mcpServers": {
    "goldprice-dev": {
      "type": "http",
      "url": "https://api.goldprice.dev/v1/mcp"
    }
  }
}

工具

9

start_checkout

Open a direct billing URL for an explicitly selected eligible plan: a one-hour Stripe Checkout URL for Free accounts or the existing customer's Stripe billing portal. This always asks the human to confirm the same plan first; a cancellation creates nothing.

输入参数plan必填

get_spot_price

Get Spot Price

Return the latest spot (or GC futures) price for one symbol. Price is a Decimal-formatted string. Latest USD spot price/bid/ask use nearest half-up rounding: XAU 2 decimal places, XAG 3, HG 4. Free and keyless callers get the price 15 minutes late; bid/ask are null when no quote is available. `is_stale` is true when aggregator detected source divergence or stale FX.

输入参数symbol必填

list_commodities

List Commodities

Return the full list of symbols served by this API. Use before get_spot_price / get_historical / get_metadata when you don't know which symbols are supported.

无需输入参数。

get_metadata

Get Metadata

Return provenance metadata for a symbol: the serving source, unit, methodology URL, staleness rules. Use for attribution and to document data lineage in downstream reports.

输入参数symbol必填

get_carat

Get Karat-Gram Gold Prices

Return per-gram gold (XAU) prices by karat purity — 24k, 22k, 21k, 20k, 18k, 16k, 14k, 10k — in a requested currency (default USD; the same 31 currencies get_spot_price serves plus EGP, NPR, PKR and VND). Jewelry-grade pricing computed from XAU spot and exchangerate.dev FX. FREE on every tier — no plan gate. Values are Decimal-formatted strings, quantized to the currency's ISO 4217 minor unit (JPY → whole numbers, USD → 2dp).

输入参数currency

get_historical

Get Historical Prices

Return OHLCV bar history for a symbol at 1m, 5m, 15m, 30m, 1h, 2h, 4h, or 1d (default). Plus includes 1h and 4h bars for the last 30 days; Pro includes 1m to 4h bars. History depth is set automatically by your API key's plan — do NOT pass a tier argument (there is none): Free sees the last 30 days; Basic sees the last year; Plus and Pro unlock full history back to 1996 (XAU/USD). Dates must be ISO 8601 (YYYY-MM-DD). Returns bars in date-descending order. volume is null for spot instruments (XAU/USD, XAG/USD, XCU/USD); real for futures (GC, SI, HG) and ETFs (GLD).

输入参数limitsymbol必填to_date必填intervalfrom_date必填

search_docs

Search Docs

Search the goldprice.dev FAQ corpus via BM25. Returns top-K matching questions + answers with relevance scores. Use before answering how-to / billing / auth questions so you cite the canonical text instead of guessing from training data.

输入参数limitquery必填

get_forward_view

Get Forward View

Returns the multi-horizon futures settlement curve for a commodity (XAU, XAG, HG). Every populated horizon up to one year forward. Useful for bot builders and traders seeing the futures-implied path. See https://goldprice.dev/methodology#forward-view-layers for per-layer math.

输入参数asset必填

get_physical_price

Get Physical Dealer Gold Prices

Return the latest per-country physical dealer/retail gold prices — real quotes from dealers, mints, and bullion benchmarks, NOT spot-derived arithmetic — with nullable premium_over_spot_bps per quote (null when live reference inputs are unavailable). `country` is an ISO 3166-1 alpha-2 code (e.g. ID, MY, AE, JP). Uncovered countries return unknown_country on every plan. Requires Basic or higher; static sample responses for evaluation are in the docs at https://goldprice.dev/docs/physical.

输入参数country必填

版本历史

2
  1. v1.0.4最新Oct 10, 2026
  2. v1.0.3Sep 16, 2026

评分

已满足适用检查项的 83%

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

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

    请声明包含 README 的 GitHub 仓库,或在 OAuth 受保护资源元数据中提供 resource_documentation。

  • 许可证不适用

    托管服务按其提供方的条款使用,因此这里不要求许可证。此检查项不计入百分比。