# CommodityPriceAPI (npm · @commoditypriceapi/mcp)

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

- Trust score: 74/100 (medium)
- Change this week: +3
- Registry status: active
- Liveness: live
- Owner verified: no
- Last scored: 2026-11-21

## Components

- npm · `@commoditypriceapi/mcp`: 74/100 (this document), [markdown](https://verifymcp.io/servers/commodity-price-api-commoditypriceapi-mcp/commoditypriceapi-mcp.md), [page](https://verifymcp.io/servers/commodity-price-api-commoditypriceapi-mcp/commoditypriceapi-mcp)

## Channel facts

- Registry: `npm`
- Package: `@commoditypriceapi/mcp`
- Version: `1.2.3`
- Transport: `stdio`

## Trust breakdown

How this component scores in each security and reliability category. Every signal is checked automatically from public evidence about the published package, including repeated runs of it in an isolated sandbox, and we only credit what we can confirm. Scores are 0–100 per category. Scoring method: https://verifymcp.io/docs/scoring (what has changed: https://verifymcp.io/docs/scoring/changelog)

Scored 2026-11-21.

- **Supply Chain Security**: 81/100
  - No malware found by supply-chain analysis.
  - CVE check failed: a known high-severity CVE affects zod 3.25.76, a direct dependency. A fixed version is available.
  - No install/post-install scripts declared.
  - 31 of 93 dependencies flagged as unhealthy.
- **Provenance & Transparency**: 45/100
  - Source repository is publicly reachable at the declared URL.
  - Provenance check failed: no build-provenance attestation is published.
  - Clear OSI-approved license (MIT).
  - Actively maintained (last published 16 days ago).
  - Disclosure check failed: no security disclosure policy was found in the source repository.
- **Schema Quality & AI Usability**: 64/100
  - AI-judged instruction clarity (excellent).
  - Context-footprint check failed: tool/resource definitions use about 1917 tokens (~239/item across 8 items; 8 tools + 0 resources), over budget; trim descriptions and params.
  - Usage-examples check failed: none of the tools include examples.
- **Stability & Change Management**: 83/100
  - Stability observed for 25 of 30 days with no destabilising changes; credit accrues until the full window elapses.
- **Tool Coverage**: 97/100
  - 100% of tools have a non-trivial description (not blank, and not just the tool's name).
  - 90% of tool parameters carry a description.
- **Tool Safety**: 100/100
  - No prompt-injection markers were found in the server instructions, tool names or descriptions we captured.
  - We read all 8 captured tool definition(s), and no name or description among them implies an irreversible operation.
  - An AI judge read all 8 captured unit(s) of tool text and found none that tries to manipulate the model reading it.
- **Capabilities**: 100/100
  - Implements a supported MCP spec version (2025-11-25); the latest is 2026-07-28.

## Install

### How do I install the CommodityPriceAPI MCP server?

CommodityPriceAPI runs locally as an npm package, launched with npx -y @commoditypriceapi/mcp. Ready-made configuration for Claude, Cursor, VS Code, Codex and 5 more is on this page, copied from each client's own documentation.

### Claude

```bash
claude mcp add commodity-price-api-commoditypriceapi-mcp -- npx -y @commoditypriceapi/mcp
```

### Cursor

```json
{
  "mcpServers": {
    "commodity-price-api-commoditypriceapi-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@commoditypriceapi/mcp"
      ]
    }
  }
}
```

### VS Code

```json
{
  "servers": {
    "commodity-price-api-commoditypriceapi-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@commoditypriceapi/mcp"
      ]
    }
  }
}
```

### Codex

```bash
codex mcp add commodity-price-api-commoditypriceapi-mcp -- npx -y @commoditypriceapi/mcp
```

### opencode

```json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "commodity-price-api-commoditypriceapi-mcp": {
      "type": "local",
      "command": [
        "npx",
        "-y",
        "@commoditypriceapi/mcp"
      ],
      "enabled": true
    }
  }
}
```

### OpenClaw

```bash
openclaw mcp add commodity-price-api-commoditypriceapi-mcp --command npx --arg -y --arg @commoditypriceapi/mcp
```

### Hermes

```yaml
mcp_servers:
  commodity-price-api-commoditypriceapi-mcp:
    command: "npx"
    args: ["-y", "@commoditypriceapi/mcp"]
```

### Netclaw

```json
{
  "McpServers": {
    "commodity-price-api-commoditypriceapi-mcp": {
      "Transport": "stdio",
      "Command": "npx",
      "Arguments": [
        "-y",
        "@commoditypriceapi/mcp"
      ]
    }
  }
}
```

### Vellum

```bash
assistant mcp add commodity-price-api-commoditypriceapi-mcp -t stdio -c npx -a -y @commoditypriceapi/mcp
```

### Other

```json
{
  "mcpServers": {
    "commodity-price-api-commoditypriceapi-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@commoditypriceapi/mcp"
      ]
    }
  }
}
```

## Changelog

Every change recorded for this component, newest first. Days that predate change tracking, or that we cannot explain, say so: "we were watching and nothing happened" and "we were not watching" are different claims.

### 2026-11-20 (score 74, +1)

No change was recorded against any check on this day. Stability & Change Management went from 77 to 80. That category is still filling its 30-day observation window: 23 days of observed history at the previous scan, 24 at this one. The score rises as the window fills, whether or not the server changes.

### 2026-11-18 (score 73, +1)

No change was recorded against any check on this day. Stability & Change Management went from 70 to 73. That category is still filling its 30-day observation window: 21 days of observed history at the previous scan, 22 at this one. The score rises as the window fills, whether or not the server changes.

### 2026-11-16 (score 72, +1)

No change was recorded against any check on this day. Stability & Change Management went from 63 to 67. That category is still filling its 30-day observation window: 19 days of observed history at the previous scan, 20 at this one. The score rises as the window fills, whether or not the server changes.

### 2026-11-13 (score 71, +1)

- [functional regression] Security disclosure: unverified → fail

### 2026-11-12 (score 70, 0)

- [functional regression] Security disclosure: fail → unverified

### 2026-11-11 (score 70, +1)

No change was recorded against any check on this day. Stability & Change Management went from 47 to 50. That category is still filling its 30-day observation window: 14 days of observed history at the previous scan, 15 at this one. The score rises as the window fills, whether or not the server changes.

### 2026-11-10 (score 69, +6)

- [functional improvement] Stability: unverified → 0.47

### 2026-10-28 (score 63, +15)

- [security improvement] Malware scan: unverified → pass

## MCP tools (8)

### `get_usage` (~25 tokens)

Get API usage

Returns the current plan, quota, and usage for the configured CommodityPriceAPI key.

### `list_symbols` (~241 tokens)

List supported commodity symbols

Returns all commodity symbols supported by CommodityPriceAPI, including category, default currency, and unit. Use this to look up a symbol before calling rate tools. Precious metals use ISO 4217 codes (XAU, XAG, XPT, XPD); copper is XCU. Dated futures contracts (e.g. WTIOIL-FUT-DEC26, the December 2026 WTI contract) are listed as their own symbols with 'contract', 'deliveryMonth', 'expiresAt' and 'underlying' (the continuous parent such as WTIOIL-FUT); expired contracts are hidden unless includeExpired is set. Pass 'underlying' to list one parent's live months. A contract's latest price comes from get_latest_rates and its daily open/high/low/close (close = the exchange settlement) from get_historical_rates / get_time_series.

Input parameters:

- `contract` (string): Only symbols of this contract kind.
- `includeExpired` (boolean): Also list expired futures contracts (hidden by default).
- `underlying` (string): Only the dated futures contracts of this continuous parent symbol, e.g. 'WTIOIL-FUT'.

### `get_latest_rates` (~398 tokens)

Get latest commodity rates

Returns the latest rates for one or more commodity symbols (e.g. gold, silver, crude oil). Rates may lag up to 10 minutes depending on plan. Use 'quote' to convert to a specific currency (Premium/Plus plans only). Common names with a single match (e.g. GOLD) are auto-resolved to the real symbol and flagged in 'unresolved' with 'resolvedTo'. Set 'metadata' to false to omit the per-symbol unit/quote map.

Input parameters:

- `metadata` (boolean): Whether to include the 'metadata' map (per-symbol unit and quote currency) in the response. Defaults to true. Set false to omit it and get a smaller payload.
- `quote` (string): Target quote currency code (e.g. 'USD', 'EUR'). Premium/Plus plans only; omit to use each symbol's default currency.
- `symbols` (string, required): Comma-separated commodity symbols, e.g. 'XAU,XAG,XPT,BRENTOIL-SPOT'. Precious metals use ISO 4217 codes (XAU gold, XAG silver, XPT platinum, XPD palladium); copper is XCU. See the list_symbols tool f…

### `get_gold_price` (~214 tokens)

Get latest gold (XAU) price

Shortcut for the latest gold (XAU) rate, with bid/ask, without needing to pass a symbols list. Use 'include' to add a per-gram, per-tola, or per-carat breakdown. Set 'metadata' to false to omit the unit/quote map.

Input parameters:

- `include` (string): Add a per-unit breakdown alongside the per-troy-ounce rate: 'gram' adds a per-gram rate, 'tola' adds a per-tola rate, 'carat' adds per-gram rates at each purity from 24k down to 8k. Omit for the ounc…
- `metadata` (boolean): Whether to include the 'metadata' map (per-symbol unit and quote currency) in the response. Defaults to true. Set false to omit it and get a smaller payload.
- `quote` (string): Target quote currency code (e.g. 'USD', 'EUR'). Premium/Plus plans only; omit to use each symbol's default currency.

### `get_silver_price` (~215 tokens)

Get latest silver (XAG) price

Shortcut for the latest silver (XAG) rate, with bid/ask, without needing to pass a symbols list. Use 'include' to add a per-gram, per-tola, or per-carat breakdown. Set 'metadata' to false to omit the unit/quote map.

Input parameters:

- `include` (string): Add a per-unit breakdown alongside the per-troy-ounce rate: 'gram' adds a per-gram rate, 'tola' adds a per-tola rate, 'carat' adds per-gram rates at each purity from 24k down to 8k. Omit for the ounc…
- `metadata` (boolean): Whether to include the 'metadata' map (per-symbol unit and quote currency) in the response. Defaults to true. Set false to omit it and get a smaller payload.
- `quote` (string): Target quote currency code (e.g. 'USD', 'EUR'). Premium/Plus plans only; omit to use each symbol's default currency.

### `get_historical_rates` (~285 tokens)

Get historical commodity rates

Returns 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.

Input parameters:

- `date` (string, required): Date in YYYY-MM-DD format.
- `symbols` (string, required): Comma-separated commodity symbols, e.g. 'XAU,XAG,XPT,BRENTOIL-SPOT'. Precious metals use ISO 4217 codes (XAU gold, XAG silver, XPT platinum, XPD palladium); copper is XCU. See the list_symbols tool f…

### `get_time_series` (~266 tokens)

Get commodity time series

Returns daily historical rates for one or more symbols between two dates. The date range cannot exceed 1 year.

Input parameters:

- `endDate` (required)
- `startDate` (string, required): Date in YYYY-MM-DD format.
- `symbols` (string, required): Comma-separated commodity symbols, e.g. 'XAU,XAG,XPT,BRENTOIL-SPOT'. Precious metals use ISO 4217 codes (XAU gold, XAG silver, XPT platinum, XPD palladium); copper is XCU. See the list_symbols tool f…

### `get_fluctuation` (~273 tokens)

Get commodity price fluctuation

Returns how one or more commodity symbols changed between a start and end date: start rate, end rate, absolute change, and percent change.

Input parameters:

- `endDate` (required)
- `startDate` (string, required): Date in YYYY-MM-DD format.
- `symbols` (string, required): Comma-separated commodity symbols, e.g. 'XAU,XAG,XPT,BRENTOIL-SPOT'. Precious metals use ISO 4217 codes (XAU gold, XAG silver, XPT platinum, XPD palladium); copper is XCU. See the list_symbols tool f…

## Diagnostics

Captured diagnostic sections: Provenance, Vulnerabilities, Dependencies. The full working is on the page: https://verifymcp.io/servers/commodity-price-api-commoditypriceapi-mcp/commoditypriceapi-mcp#diagnostics

## Score history

- 2026-11-21: 74
- 2026-11-20: 74
- 2026-11-19: 73
- 2026-11-18: 73
- 2026-11-17: 72
- 2026-11-16: 72
- 2026-11-15: 71
- 2026-11-14: 71
- 2026-11-13: 71
- 2026-11-12: 70
- 2026-11-11: 70
- 2026-11-10: 69
- 2026-11-09: 63
- 2026-11-08: 63
- 2026-11-07: 63
- 2026-11-06: 63
- 2026-11-05: 63
- 2026-11-04: 63
- 2026-11-03: 63
- 2026-11-02: 63
- 2026-11-01: 63
- 2026-10-31: 63
- 2026-10-30: 63
- 2026-10-29: 63
- 2026-10-28: 63
- 2026-10-27: 48

## Common questions

### What is the CommodityPriceAPI MCP server?

CommodityPriceAPI is an MCP server listed in the public MCP registry as io.github.Commodity-Price-API/commoditypriceapi-mcp. Real-time and historical prices for gold, silver, oil, and 130+ other commodities. This page covers its npm package (@commoditypriceapi/mcp).

### Is the CommodityPriceAPI MCP server safe to use?

CommodityPriceAPI scores 74 out of 100 on VerifyMCP. We recorded 1 known advisory against it as of 21 November 2026. It declares no install or post-install scripts. That is a record of what we were able to check automatically, not an endorsement. The category breakdown on this page shows every signal behind the number, including the ones we could not confirm.

### What tools does the CommodityPriceAPI MCP server expose?

CommodityPriceAPI exposes 8 tools: get_usage, list_symbols, get_latest_rates, get_gold_price, get_silver_price, and 3 more. Their descriptions and schemas cost roughly 1,917 tokens of context every time the server is loaded.

### Is the CommodityPriceAPI MCP server still maintained?

CommodityPriceAPI is still listed as active in the MCP registry. We last reached this channel on 21 November 2026. Those dates come from our own scans of the registry and the channel itself, not from anything the publisher announced.

### What licence is the CommodityPriceAPI MCP server under?

CommodityPriceAPI declares the MIT licence, which is OSI-approved. That covers the source only, and says nothing about the cost of any service it calls.

### What did VerifyMCP test on the CommodityPriceAPI MCP server?

VerifyMCP ran 16 checks on CommodityPriceAPI, covering Malware scan, Known CVEs, Install scripts, Dependency health and 12 more. Endpoint Security and Transport & Reachability do not apply to an npm package, so they were not tested. The score does not measure everything, and the scoring documentation lists what it leaves out.

## Links

- npm package: https://www.npmjs.com/package/@commoditypriceapi/mcp
- Socket report: https://socket.dev/npm/package/@commoditypriceapi/mcp
- Repository: https://github.com/Commodity-Price-API/commoditypriceapi-mcp
- Website: https://commoditypriceapi.com/
- Changelog RSS feed: https://verifymcp.io/servers/commodity-price-api-commoditypriceapi-mcp/commoditypriceapi-mcp.xml
- Changelog JSON feed: https://verifymcp.io/servers/commodity-price-api-commoditypriceapi-mcp/commoditypriceapi-mcp/changelog.json
- Trust report (JSON): https://verifymcp.io/servers/commodity-price-api-commoditypriceapi-mcp/commoditypriceapi-mcp.json
- HTML version of this page: https://verifymcp.io/servers/commodity-price-api-commoditypriceapi-mcp/commoditypriceapi-mcp
