原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

CommodityPriceAPI

作者:Commodity-Price-API版本 1.2.3i★ –i在你的电脑上运行
注册名称io.github.Commodity-Price-API/commoditypriceapi-mcp

安装

概览

作者提供的说明(英文原文)

Real-time and historical prices for gold, silver, oil, and 130+ other commodities.

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 其他
  • 你需要填写:COMMODITYPRICEAPI_KEY

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 需要你自己填写: COMMODITYPRICEAPI_KEY, COMMODITYPRICEAPI_REQUEST_TIMEOUT_MS

标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。

你需要

  • npm已安装 Node.js(用于 npx 命令)

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

{
  "mcpServers": {
    "commoditypriceapi": {
      "command": "npx",
      "args": [
        "-y",
        "@commoditypriceapi/mcp"
      ],
      "env": {
        "COMMODITYPRICEAPI_KEY": "your-value",
        "COMMODITYPRICEAPI_REQUEST_TIMEOUT_MS": "your-value"
      }
    }
  }
}

在终端中运行这条命令

claude mcp add commoditypriceapi --env COMMODITYPRICEAPI_KEY=your-value --env COMMODITYPRICEAPI_REQUEST_TIMEOUT_MS=your-value -- npx -y @commoditypriceapi/mcp

运行前请先填写空着的值。

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "commoditypriceapi": {
      "command": "npx",
      "args": [
        "-y",
        "@commoditypriceapi/mcp"
      ],
      "env": {
        "COMMODITYPRICEAPI_KEY": "your-value",
        "COMMODITYPRICEAPI_REQUEST_TIMEOUT_MS": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "commoditypriceapi": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@commoditypriceapi/mcp"
      ],
      "env": {
        "COMMODITYPRICEAPI_KEY": "your-value",
        "COMMODITYPRICEAPI_REQUEST_TIMEOUT_MS": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

需要你填写的值

  • COMMODITYPRICEAPI_KEY 机密 必填 env
    Your CommodityPriceAPI key (get one at https://commoditypriceapi.com/auth/signup)
  • COMMODITYPRICEAPI_REQUEST_TIMEOUT_MS env
    Upstream request timeout in milliseconds (default 15000)

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月6日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 Commodity-Price-API 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“其他”中的其他服务器比较i

  • 星标数多于此分类中其他 32435 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 32435 个服务器的 77% 更新
  • 基础检查结果等于或优于此分类中其他 32435 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

CommodityPriceAPI 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

你需要填写:COMMODITYPRICEAPI_KEY

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(1.2.3)于10天前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。

有什么可以替代它?

同一分类中有:Spec Driven Development, Remote Desktop Commander, Apify MCP Server

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Spec Driven Development

作者:formulahendry

MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.

在你的电脑上运行★ 440MIT14个月前更新
安装

Remote Desktop Commander

作者:desktop-commander

Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.

在云端运行★ 211昨天更新
安装

Apify MCP Server

作者:apify

Extract data from any website with thousands of scrapers, crawlers, and automations on Apify Store ⚡

在云端运行今天更新
安装

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

CommodityPriceAPI MCP Server

Official MCP server for CommodityPriceAPI. Exposes 9 MCP tools for real-time, intraday and historical commodity prices — gold, silver, oil, natural gas, wheat, coffee, and 140+ other commodities. Your AI assistant queries the market in plain English; the MCP server handles the API calls.

Works with Claude Desktop, Claude Code, Cursor, Windsurf, VS Code, Cline, Codex, and any other MCP-compatible client.

ItemValue
Package@commoditypriceapi/mcp
Transportstdio
Node.js>=18

Quick Start

  1. Get a free CommodityPriceAPI key — free 7-day trial, 2,000 requests, no card required.
  1. Cursor users can install in one click:
  1. Everyone else: add this to your MCP client config (see Install by Client for the exact file path):
{

"mcpServers": { "commoditypriceapi": { "command": "npx", "args": ["-y", "@commoditypriceapi/mcp"], "env": { "COMMODITYPRICEAPI_KEY": " " } } } }

  1. Restart your client.
  1. Test it: ask "What's the current gold price?"

Table of Contents

  • Quick Start
  • Install by Client
  • Verify It Works
  • Tool Reference
  • Prompt Examples
  • Example Answers and Tool Output
  • Error Codes
  • How It Works
  • Environment Variables
  • Building from Source
  • Troubleshooting
  • Pricing
  • Links
  • License

Install by Client

Requirements
  • Node.js 18 or later
  • npx available in your terminal
  • A CommodityPriceAPI key — sign up free
Claude Desktop

Add to claude_desktop_config.json (Settings → Developer → Edit Config):

{

"mcpServers": { "commoditypriceapi": { "command": "npx", "args": ["-y", "@commoditypriceapi/mcp"], "env": { "COMMODITYPRICEAPI_KEY": " " } } } }

Restart Claude Desktop after saving.

Claude Code
claude mcp add commoditypriceapi --env COMMODITYPRICEAPI_KEY=<YOUR_API_KEY> -- npx -y @commoditypriceapi/mcp

Start a new Claude Code session after adding the server.

Cursor

One-click install:

Or add to .cursor/mcp.json manually:

{

"mcpServers": { "commoditypriceapi": { "command": "npx", "args": ["-y", "@commoditypriceapi/mcp"], "env": { "COMMODITYPRICEAPI_KEY": " " } } } }

Restart Cursor after saving.

Windsurf

Add to ~/.codeium/windsurf/mcp_config.json:

{

"mcpServers": { "commoditypriceapi": { "command": "npx", "args": ["-y", "@commoditypriceapi/mcp"], "env": { "COMMODITYPRICEAPI_KEY": " " } } } }

Restart Windsurf after saving.

VS Code / GitHub Copilot

Add to your VS Code settings.json:

{

"mcp": { "servers": { "commoditypriceapi": { "command": "npx", "args": ["-y", "@commoditypriceapi/mcp"], "env": { "COMMODITYPRICEAPI_KEY": " " } } } } }

Restart VS Code after saving.

Cline

Open MCP Servers panel → Configure → Advanced MCP Settings. Add to cline_mcp_settings.json:

{

"mcpServers": { "commoditypriceapi": { "command": "npx", "args": ["-y", "@commoditypriceapi/mcp"], "env": { "COMMODITYPRICEAPI_KEY": " " } } } }

Restart Cline after saving.

Codex CLI
codex mcp add commoditypriceapi --env COMMODITYPRICEAPI_KEY=<YOUR_API_KEY> -- npx -y @commoditypriceapi/mcp

codex mcp list

Start a new Codex session after adding the server.

Any Other MCP Client

Use this config:

{

"command": "npx", "args": ["-y", "@commoditypriceapi/mcp"], "env": { "COMMODITYPRICEAPI_KEY": " " } }

Verify It Works

Try these after setup:

PromptExpected tool
What's the current gold price?get_gold_price
Get the latest silver and Brent crude prices.get_latest_rates with symbols=XAG,BRENTOIL-SPOT
Show gold's hourly price on November 4th, 2026.get_intraday_rates with interval=1h
What was the gold price on January 2nd, 2020?get_historical_rates
Show daily gold prices for the first week of August 2026.get_time_series
How much did gold change between January and August 2026?get_fluctuation
Which commodity symbols do you support?list_symbols
How much of my API quota is left?get_usage

Tool Reference

All 9 tools map 1:1 to CommodityPriceAPI v3 endpoints. Tools that take symbols accept a comma-separated list; get_intraday_rates takes a single symbol (e.g. XAU,XAG,XPT,BRENTOIL-SPOT). Use list_symbols to look up valid symbols — there are 245 across Metals, Energy, Agriculture, and more.

Precious metals use ISO 4217 codes: XAU (gold), XAG (silver), XPT (platinum), XPD (palladium). Copper is XCU. The retired codes PL, PA, and HG still work on v3 — they are auto-resolved to the new symbol (see the note below).

get_latest_rates

GET /v3/rates/latest — latest rates for one or more symbols. Rates may lag up to 10 minutes depending on plan.

ParameterRequiredDescription
symbolsYesComma-separated symbols, e.g. XAU,XAG,BRENTOIL-SPOT
quoteNoTarget quote currency (e.g. EUR). Premium/Plus plans only; omit for each symbol's default currency.
metadataNotrue (default) or false. false omits the metadata map (per-symbol unit and quote currency) from the response.

Note on unresolved: v3 appends an unresolved map, keyed by the symbol you typed, in three cases. The same applies to get_intraday_rates, get_historical_rates, get_time_series, and get_fluctuation.

CaseHTTPWhat the entry holds
Symbol is not a catalogue code but has exactly one match (e.g. GOLD, or retired PL)200message + resolvedTo — the rate was returned under resolvedTo in rates. Informational, not a failure.
Some symbols could not be returned206message + optional suggestions ("did you mean"). Valid rates are still in rates.
No symbol resolved404Tool returns a SYMBOL_NOT_FOUND error carrying the same unresolved map.
get_gold_price

GET /v3/rates/latest/xau — shortcut for the latest gold (XAU) rate, including bid/ask.

ParameterRequiredDescription
quoteNoTarget quote currency. Premium/Plus plans only.
includeNogram, carat, or tola — adds a per-gram rate, per-gram rates at each purity from 24k to 8k, or a per-tola rate alongside the ounce rate.
metadataNotrue (default) or false. false omits the metadata map (per-symbol unit and quote currency) from the response.
get_silver_price

GET /v3/rates/latest/xag — shortcut for the latest silver (XAG) rate, including bid/ask.

ParameterRequiredDescription
quoteNoTarget quote currency. Premium/Plus plans only.
includeNogram, carat, or tola — adds a per-gram, per-carat, or per-tola rate alongside the ounce rate.
metadataNotrue (default) or false. false omits the metadata map (per-symbol unit and quote currency) from the response.
get_intraday_rates

GET /v3/rates/intraday — the rates of one symbol through a single UTC day at a chosen interval, from one minute to one day. Each point is the rate recorded at that exact mark (14:05 is the rate observed at 14:05 UTC), not an OHLC bar. Advanced and Enterprise plans only — other plans get 402.

ParameterRequiredDescription
symbolYesExactly one symbol, e.g. XAU. Sent to the API as symbols.
intervalYes1m, 5m, 10m, 15m, 30m, 45m, 1h, 2h, 4h, 8h, 12h, or 1d. Symbols updated every 10 minutes accept only multiples of 10 minutes (10m, 30m, 1h, 2h, 4h, 8h, 12h, 1d).
dateYesUTC day, YYYY-MM-DD. Not in the future; for today, points stop at the current UTC minute.
startTimeNoFirst mark of the window, HH:mm UTC. Default 00:00. Must fall on a mark of the interval (14:30 works for 5m or 30m, not 1h; 1d only allows 00:00).
metadataNotrue (default) or false. false omits the metadata map (unit and quote currency) from the response.

A result holds at most 100 points. When nextStartTime is not null, call again with startTime set to it to get the next page; from 15m upward a whole day fits in one call. Marks with no recorded rate are left out, so count can be below the window size. Only symbols updated every second, minute, or 10 minutes have intraday data — others return 400 BAD_REQUEST. Rates are in the symbol's own currency; there is no quote parameter.

get_historical_rates

GET /v3/rates/historical — open/high/low/close rates for one or more symbols on a specific past date, available back to 1990-01-01. If no rate exists for that exact date, the API returns the nearest available date.

ParameterRequiredDescription
symbolsYesComma-separated symbols
dateYesYYYY-MM-DD
get_time_series

GET /v3/rates/time-series — daily historical rates for one or more symbols between two dates. Max span: 1 year.

ParameterRequiredDescription
symbolsYesComma-separated symbols
startDateYesYYYY-MM-DD
endDateYesYYYY-MM-DD
get_fluctuation

GET /v3/rates/fluctuation — how each symbol changed between two dates: start rate, end rate, absolute change, and percent change.

ParameterRequiredDescription
symbolsYesComma-separated symbols
startDateYesYYYY-MM-DD
endDateYesYYYY-MM-DD
list_symbols

GET /v3/symbols — all supported commodity symbols with name, category, quote currency, unit, and update interval. Takes no parameters. Call this before rate tools when unsure of a symbol.

get_usage

GET /v3/usage — current plan, quota, and usage for the configured API key. Takes no parameters.

Prompt Examples

Live prices
  • What's the current gold price?
  • What's gold per gram right now?
  • Get the

只显示了开头部分;其余内容请在仓库中阅读

问 PopNx