Skip to content
MCP server

CommodityPriceAPI

Live and historical gold, silver, oil and other commodity prices for your assistant

Runs locallyStatus and history
Install
Pricing
Free trial
Platforms
CLI, API
Runs
Locally
Version
1.2.3
Listing updated
2 days ago

About CommodityPriceAPI

CommodityPriceAPI is an MCP server for finance and payments. It runs locally on your machine and is started by your AI client.

Behind the nine tools is CommodityPriceAPI, a service that quotes mid-market prices, the midpoint of bid and ask, tracking LBMA and LPPM for precious metals, COMEX, NYMEX, ICE, CBOT and CME for futures, with World Bank and IMF monthly reference series for agriculture, fertilisers and minor metals. The site is explicit that these are reference prices, not exchange settlement prices or executable quotes.

Gold, silver, platinum, palladium, copper and WTI and Brent crude refresh every second on every plan; other symbols update as often as their market publishes. The website cites 520+ symbols across 10 categories and 150+ currencies, while the registry description and README mention 130+ and 140+ commodities, so check the catalogue for the exact symbol you need.

The local stdio server needs Node.js 18 or newer and a CommodityPriceAPI key in COMMODITYPRICEAPI_KEY. The README says a free 7-day trial gives 2,000 requests with no card. Paid plans start at $34.99 per month for 8,000 calls, with history back to 1990.

Install

Run in a terminal

claude mcp add commoditypriceapi-mcp --env COMMODITYPRICEAPI_KEY='<COMMODITYPRICEAPI_KEY>' -- npx -y @commoditypriceapi/mcp

Add to claude_desktop_config.json

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

Add to ~/.cursor/mcp.json

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

Add to .vscode/mcp.json

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

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

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

Add to your client's MCP settings (most use this shape)

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

Configuration

  • COMMODITYPRICEAPI_KEYYour CommodityPriceAPI key (get one at https://commoditypriceapi.com/auth/signup)Required
  • COMMODITYPRICEAPI_REQUEST_TIMEOUT_MSUpstream request timeout in milliseconds (default 15000)

What it does

Real-time prices
Latest quotes for metals, energy and agricultural commodities.
Historical data
Basic plan history reaches back to 1990.
Intraday and time series
Time-series and intraday endpoints on higher plans.
Currency conversion
Quote prices in 150+ currencies on higher plans.
Named underlying markets
Each symbol maps to a stated exchange or reference source.
One-click Cursor install
Plus config for Claude Desktop, Claude Code, VS Code and Windsurf.

Good for

  • Ask the current gold price
  • Compare oil prices over a period
  • Pull historical copper prices
  • Convert a commodity price to another currency
  • Build market summaries in a chat

Pricing

Free trial, from $34.99 a month

7-day trial; Basic $34.99, Standard $174.99, Advanced $349.99 per month

Prices change. Check commoditypriceapi.com before you buy.

CommodityPriceAPI FAQ

Do I need an API key?

Yes, set COMMODITYPRICEAPI_KEY.

Is there a free trial?

The README says a free 7-day trial with 2,000 requests and no card.

Are these exchange prices?

No. They are mid-market reference prices, not settlement prices or executable quotes.

What does it cost after the trial?

Plans start at $34.99 per month for 8,000 calls.

Is CommodityPriceAPI free?

CommodityPriceAPI is a paid product with a free trial. Paid plans start at $34.99 a month.

How do I add CommodityPriceAPI to Claude Code?

Run this command in your terminal: claude mcp add commoditypriceapi-mcp --env COMMODITYPRICEAPI_KEY='<COMMODITYPRICEAPI_KEY>' -- npx -y @commoditypriceapi/mcp

What are the best alternatives to CommodityPriceAPI?

The closest alternatives to CommodityPriceAPI are Agent-Native Analytics, Google Ads + Meta Ads + SEO/GEO MCP, Solana MCP by Vybe, Tapetide - Indian Stock Market MCP and World Monitor.

Alternatives to CommodityPriceAPI

  1. Open-source analytics app where an AI agent builds charts and dashboards from your data

    • Remote
    • Open source
    • 7.7K GitHub stars
    • Analytics and data
  2. Hosted MCP connector for managing Google Ads, Meta Ads, GA4 and Search Console from chat

    • 8 tools
    • Remote
    • Freemium
    • 8.1K GitHub stars
    • Marketing and SEO
  3. Remote MCP server exposing the Vybe Solana API to AI clients and code editors

    • 44 tools
    • Remote
    • 2.8K GitHub stars
    • Finance and payments
  4. Indian NSE and BSE stock market data for AI assistants through 48 MCP tools

    • 17 tools
    • Remote
    • Freemium
    • 150 GitHub stars
    • Finance and payments
  5. World Monitor

    MCP server

    Live geopolitical intelligence dashboard with an API and MCP server for agents

    • Remote
    • Freemium
    • Analytics and data
  6. Budget Tracker

    MCP server

    Local MCP expense ledger that logs receipts and mileage, splits VAT and prepares rebilling

    • 14 tools
    • Remote
    • Freemium
    • 2 GitHub stars
    • Finance and payments