Skip to main content
Glama
Commodity-Price-API

CommodityPriceAPI MCP Server

Official

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
COMMODITYPRICEAPI_KEYYesYour CommodityPriceAPI key
COMMODITYPRICEAPI_REQUEST_TIMEOUT_MSNoUpstream request timeout in ms15000

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
get_usageA

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

list_symbolsA

Returns all commodity symbols supported by CommodityPriceAPI, including category, default currency, and unit. Use this to look up a symbol before calling rate tools.

get_latest_ratesA

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

get_gold_priceA

Shortcut for the latest gold (XAU) rate without needing to pass a symbols list.

get_silver_priceA

Shortcut for the latest silver (XAG) rate without needing to pass a symbols list.

get_historical_ratesA

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.

get_time_seriesA

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

get_fluctuationA

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

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Commodity-Price-API/commoditypriceapi-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server