Skip to main content
Glama
Commodity-Price-API

CommodityPriceAPI MCP Server

Official

CommodityPriceAPI MCP Server

npm version GitHub Node.js License

Official MCP server for CommodityPriceAPI. Exposes 8 MCP tools for real-time 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.

Item

Value

Package

@commoditypriceapi/mcp

Transport

stdio

Node.js

>=18

Quick Start

  1. Get a free CommodityPriceAPI key — free 7-day trial, 2,000 requests, no card required.

  2. Cursor users can install in one click:

    Add to Cursor

  3. 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": "<YOUR_API_KEY>"
      }
    }
  }
}
  1. Restart your client.

  2. Test it: ask "What's the current gold price?"

Related MCP server: siftingio-mcp

Table of Contents

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": "<YOUR_API_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:

Add to Cursor

Or add to .cursor/mcp.json manually:

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

Restart Cursor after saving.

Windsurf

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

{
  "mcpServers": {
    "commoditypriceapi": {
      "command": "npx",
      "args": ["-y", "@commoditypriceapi/mcp"],
      "env": {
        "COMMODITYPRICEAPI_KEY": "<YOUR_API_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": "<YOUR_API_KEY>"
        }
      }
    }
  }
}

Restart VS Code after saving.

Cline

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

{
  "mcpServers": {
    "commoditypriceapi": {
      "command": "npx",
      "args": ["-y", "@commoditypriceapi/mcp"],
      "env": {
        "COMMODITYPRICEAPI_KEY": "<YOUR_API_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": "<YOUR_API_KEY>"
  }
}

Verify It Works

Try these after setup:

Prompt

Expected 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

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 8 tools map 1:1 to CommodityPriceAPI v2 endpoints. Tools that take symbols accept a comma-separated list (e.g. XAU,XAG,BRENTOIL-SPOT). Use list_symbols to look up valid symbols — there are 148 across Metals, Energy, Agriculture, and more.

get_latest_rates

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

Parameter

Required

Description

symbols

Yes

Comma-separated symbols, e.g. XAU,XAG,BRENTOIL-SPOT

quote

No

Target quote currency (e.g. EUR). Premium/Plus plans only; omit for each symbol's default currency.

Note: if a symbol in a multi-symbol request is invalid, the API silently omits it from the response rather than returning an error. A missing symbol in the result means the symbol is wrong — check list_symbols.

get_gold_price

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

Parameter

Required

Description

quote

No

Target quote currency. Premium/Plus plans only.

get_silver_price

GET /v2/rates/latest/xag — shortcut for the latest silver (XAG) rate.

Parameter

Required

Description

quote

No

Target quote currency. Premium/Plus plans only.

get_historical_rates

GET /v2/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.

Parameter

Required

Description

symbols

Yes

Comma-separated symbols

date

Yes

YYYY-MM-DD

get_time_series

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

Parameter

Required

Description

symbols

Yes

Comma-separated symbols

startDate

Yes

YYYY-MM-DD

endDate

Yes

YYYY-MM-DD

get_fluctuation

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

Parameter

Required

Description

symbols

Yes

Comma-separated symbols

startDate

Yes

YYYY-MM-DD

endDate

Yes

YYYY-MM-DD

list_symbols

GET /v2/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 /v2/usage — current plan, quota, and usage for the configured API key. Takes no parameters.

Prompt Examples

Live prices

  • What's the current gold price?

  • Get the latest prices for silver, copper, and WTI crude.

  • What's gold trading at in euros?

Historical data

  • What was the price of wheat on January 2nd, 2026?

  • Compare gold and silver prices over the last 30 days.

  • Show me daily natural gas prices for Q1 2026.

Price changes

  • How much did Brent crude fluctuate this quarter?

  • Did gold go up or down since the start of the year, and by how much?

Discovery and account

  • Which commodity symbols do you support for energy?

  • How much of my API quota is left this month?

Example Answers and Tool Output

The text answers show what a client might say; exact wording depends on the model. JSON blocks are raw tool output.

Latest gold price

Prompt: What's the current gold price?

Example answer: Gold (XAU) is currently trading at $4,386.23 per troy ounce (bid $4,385.93 / ask $4,386.23).

{
  "success": true,
  "timestamp": 1786617187,
  "rates": {
    "XAU": {
      "rate": 4386.23,
      "bid": 4385.93,
      "ask": 4386.23
    }
  },
  "metadata": {
    "XAU": {
      "unit": "T.oz",
      "quote": "USD"
    }
  }
}

Historical rate

Prompt: What was the gold price on January 2nd, 2020?

Example answer: On 2020-01-02, gold opened at $1,518.26 and closed at $1,528.76 per troy ounce (high $1,531.31, low $1,517.15).

{
  "success": true,
  "date": "2020-01-02",
  "rates": {
    "XAU": {
      "date": "2020-01-02",
      "open": 1518.26,
      "high": 1531.31,
      "low": 1517.15,
      "close": 1528.76
    }
  }
}

Fluctuation

Prompt: How much did gold change between January 2nd and August 12th, 2026?

Example answer: Gold rose from $4,332.01 to $4,400.12 per troy ounce — up $68.11, or +1.57%.

{
  "success": true,
  "startDate": "2026-01-02",
  "endDate": "2026-08-12",
  "rates": {
    "XAU": {
      "startRate": 4332.01,
      "endRate": 4400.12,
      "change": 68.11,
      "changePercent": 1.57
    }
  }
}

Error Codes

Tool calls never crash the server. Upstream errors are returned as structured tool results with error, code, message, and a guidance field so the client can explain what went wrong instead of echoing a status code.

Code

Meaning

401

Missing or invalid API key — check COMMODITYPRICEAPI_KEY in your client config

402

Your trial or subscription doesn't cover this request (e.g. quote conversion on a non-Premium plan)

403

API key usage limit reached — upgrade or wait for quota reset

404

Symbol not found — call list_symbols for valid symbols

429

Rate limited — wait a minute and retry

499

Request to the upstream API timed out (see COMMODITYPRICEAPI_REQUEST_TIMEOUT_MS)

502

Server could not reach the upstream API

Example error result for an invalid symbol:

{
  "error": "SYMBOL_NOT_FOUND",
  "code": 404,
  "message": "The symbol is not supported, please visit the documentation for a list of supported symbols",
  "guidance": "Call list_symbols to see valid commodity symbols."
}

How It Works

This is a stdio MCP server that wraps the CommodityPriceAPI v2 REST API.

At runtime:

  1. Your MCP client starts the server process via npx.

  2. The client reads the tool list.

  3. When a prompt matches a tool, the client calls it.

  4. The server validates inputs, calls the CommodityPriceAPI, and returns structured JSON.

The server sends your API key to CommodityPriceAPI via both the x-api-key header and the apiKey query parameter — the upstream API accepts either, so this covers all cases without extra config.

Environment Variables

Variable

Required

Default

Description

COMMODITYPRICEAPI_KEY

Yes

Your CommodityPriceAPI key

COMMODITYPRICEAPI_REQUEST_TIMEOUT_MS

No

15000

Upstream request timeout in ms

Building from Source

git clone https://github.com/Commodity-Price-API/commoditypriceapi-mcp.git
cd commoditypriceapi-mcp
npm install
npm run build

Run it directly:

COMMODITYPRICEAPI_KEY=<YOUR_KEY> node dist/cli.js

Inspect with the MCP Inspector:

COMMODITYPRICEAPI_KEY=<YOUR_KEY> npx @modelcontextprotocol/inspector node dist/cli.js

Troubleshooting

Client uses an old tool list after updating: Restart the client and confirm it loaded the latest npm version.

401 errors: Check that COMMODITYPRICEAPI_KEY is set in your MCP client config's env block.

A symbol is missing from a multi-symbol response: The upstream API silently drops invalid symbols instead of erroring. Call list_symbols to find the correct symbol — e.g. Brent crude is BRENTOIL-SPOT, not BRENTOIL.

499 timeouts: The upstream API did not respond in time. Increase COMMODITYPRICEAPI_REQUEST_TIMEOUT_MS (default: 15000 ms).

Pricing

Free 7-day trial with 2,000 requests, no card required. For plan details, see the CommodityPriceAPI pricing page.

License

MIT

Available Tools

8 tools
get_fluctuationGet commodity price fluctuationA

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

ParametersJSON Schema
NameRequiredDescriptionDefault
endDateYes
symbolsYesComma-separated commodity symbols, e.g. 'XAU,XAG,BRENTOIL-SPOT'. See the list_symbols tool for valid values. Invalid symbols in a multi-symbol request are silently omitted from the response, not errored.
startDateYesDate in YYYY-MM-DD format.

TDQS

A3.8/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description must carry the transparency burden. It discloses the output fields (start rate, end rate, absolute change, percent change) and implies a read-only operation via 'Returns'. However, it does not mention important behaviors such as silent omission of invalid symbols, which is only covered in the schema parameter description, not in the tool description itself.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single sentence that is front-loaded with the core action and lists the specific output fields. Every word earns its place; there is no fluff or repetition.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple query tool with no output schema, the description sufficiently explains the return values and inputs. The schema covers the key edge case (invalid symbols omitted). The only minor gap is not mentioning date format or any limitations, but these are either in the schema or low-risk for a read-only fluctuation query.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 67% (symbols and startDate have descriptions; endDate refs startDate). The tool description adds minimal parameter context ('one or more commodity symbols', 'start and end date') but does not compensate for the 33% gap with format details. The schema already provides the example and invalid-symbol behavior, so the description adds marginal value.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb ('Returns') and identifies the resource ('commodity symbols') and the precise computation ('changed between a start and end date: start rate, end rate, absolute change, and percent change'). This clearly distinguishes it from sibling tools like get_latest_rates or get_time_series.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies the use case (calculating price changes over a period) but does not explicitly state when to choose this tool over siblings or provide exclusions. It lacks references to alternatives like get_historical_rates for raw history or get_latest_rates for current prices.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

get_gold_priceGet latest gold (XAU) priceA

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

ParametersJSON Schema
NameRequiredDescriptionDefault
quoteNoTarget quote currency code. Premium/Plus plans only.

TDQS

A4/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description must carry the full burden. It implies a safe read-only operation ('latest rate') but does not disclose any potential limitations such as default quote currency, rate update frequency, or response format. It adds some context by mentioning the shortcut nature, but lacks richer behavioral detail.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, well-structured sentence that front-loads the core purpose and immediately gives a usage hint. No wasted words or redundancies.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's simplicity (one optional parameter, no output schema), the description covers the essential purpose and usage distinction. It falls short of a 5 because it omits explicit note about the default quote currency or return value shape, though these are not critical for selection or invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema already provides 100% coverage for the single 'quote' parameter, including its optionality and premium restriction. The tool description adds no additional parameter semantics, so the baseline of 3 is appropriate without any value added.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states a specific verb ('get') and resource ('latest gold (XAU) rate'). It also distinguishes itself from the sibling tool 'get_latest_rates' by positioning itself as a shortcut that does not require a symbols list, making it immediately clear what this tool offers.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The phrase 'without needing to pass a symbols list' explicitly signals when to use this tool and implies the alternative 'get_latest_rates' which requires that list. However, it does not explicitly state exclusions (e.g., 'do not use if you need other currencies'), earning a 4 rather than 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

get_historical_ratesGet historical commodity 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.

ParametersJSON Schema
NameRequiredDescriptionDefault
dateYesDate in YYYY-MM-DD format.
symbolsYesComma-separated commodity symbols, e.g. 'XAU,XAG,BRENTOIL-SPOT'. See the list_symbols tool for valid values. Invalid symbols in a multi-symbol request are silently omitted from the response, not errored.

TDQS

A4.5/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden. It adds valuable behavioral context by disclosing the data availability start date (1990-01-01) and the fallback to the nearest date when the exact date has no rate. This goes beyond a simple 'returns rates' disclosure, though it does not detail response format or error handling.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences with no fluff. Front-loaded with the core action ('Returns open/high/low/close rates'), then adds two key behavioral notes. Every sentence earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple two-parameter tool with no output schema, the description covers the essential aspects: what it returns, which symbols/date, data availability, and the fallback behavior. The schema fills in parameter details, making this a complete description for the tool's complexity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% so baseline is 3, but the description enriches the date parameter by explaining the date range and fallback behavior, adding meaning beyond the format-only schema. The symbols parameter is mentioned as 'one or more symbols' in the description, though the schema already covers comma-separated format.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool returns OHLC rates for symbols on a specific historical date, which is a specific verb+resource+scope. It distinguishes itself from siblings like get_latest_rates and get_time_series by emphasizing 'past date' and 'nearest available date' fallback.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides clear context for when to use this tool (historical lookups on a specific date) and implicitly contrasts with "past date" vs. likely "latest" or "time series" siblings. However, it does not explicitly name alternatives or state when not to use it, which would earn a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

get_latest_ratesGet latest commodity 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).

ParametersJSON Schema
NameRequiredDescriptionDefault
quoteNoTarget quote currency code (e.g. 'USD', 'EUR'). Premium/Plus plans only; omit to use each symbol's default currency.
symbolsYesComma-separated commodity symbols, e.g. 'XAU,XAG,BRENTOIL-SPOT'. See the list_symbols tool for valid values. Invalid symbols in a multi-symbol request are silently omitted from the response, not errored.

TDQS

A4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Without annotations, the description carries the burden of behavioral disclosure. It reveals that rates may lag up to 10 minutes depending on plan, which is a key behavioral trait. It also notes the Premium/Plus-only restriction for quote conversion. It does not describe error handling or response format, but the disclosed lag and plan restrictions add meaningful transparency.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two sentences, front-loading the primary purpose and then adding relevant caveats (lag, quote usage). Every sentence provides value and there is no redundancy or filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description covers the core function, data freshness caveat, and plan-based restriction, while also pointing to the sibling list_symbols tool for valid inputs. It does not describe the return format or error handling, but given the tool's simplicity and the explicit reference to related tools, this is reasonably complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3. The description's mention of 'gold, silver, crude oil' provides real-world context but the schema already includes concrete example symbols. The quote parameter's plan restriction is already in the schema description, so the description adds minimal additional semantic value beyond what the schema provides.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb+resource construction: 'Returns the latest rates for one or more commodity symbols.' It clearly identifies the tool's scope (latest rates, multiple symbols) and provides examples (gold, silver, crude oil), making it easy to distinguish from siblings like get_historical_rates and get_fluctuation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description references the list_symbols tool for valid values and mentions the quote parameter's plan restriction, but it does not explicitly state when to prefer this tool over alternatives like get_gold_price or get_time_series. Usage context is implied by 'latest rates' but no when-not-to-use guidance is given.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

get_silver_priceGet latest silver (XAG) priceA

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

ParametersJSON Schema
NameRequiredDescriptionDefault
quoteNoTarget quote currency code. Premium/Plus plans only.

TDQS

A3.7/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description must disclose behavior, but it only says 'shortcut' and 'latest silver rate.' It does not mention the default quote behavior, response structure, or plan limitations that apply to the quote parameter, leaving meaningful gaps for an agent.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single front-loaded sentence that efficiently conveys purpose and the key differentiator without redundant or filler content.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple one-parameter tool this captures the core operation, but without an output schema or annotations it leaves unspecified details such as the default quote currency and the shape of the returned rate, so it is adequate yet not fully complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The only parameter, quote, is fully documented in the input schema, including the Premium/Plus-only restriction, so the description adds no parameter-specific meaning beyond what the schema already provides. Baseline 3 applies because schema coverage is 100%.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states the tool provides the latest silver (XAG) rate and frames it as a shortcut that avoids passing a symbols list, distinguishing it from general rate tools like get_latest_rates and aligning with the analogous get_gold_price tool.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It clearly communicates when to use the tool—when only the latest silver rate is needed and a symbols list is undesirable. It implies an alternative (the general latest-rates tool) but does not name it explicitly or list when not to use this tool.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

get_time_seriesGet commodity time seriesA

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

ParametersJSON Schema
NameRequiredDescriptionDefault
endDateYes
symbolsYesComma-separated commodity symbols, e.g. 'XAU,XAG,BRENTOIL-SPOT'. See the list_symbols tool for valid values. Invalid symbols in a multi-symbol request are silently omitted from the response, not errored.
startDateYesDate in YYYY-MM-DD format.

TDQS

A3.7/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden. It discloses the daily frequency and the 1-year maximum range, which are useful behavioral traits. However, it does not explain what happens on errors, missing data, or how invalid symbols are handled (though that is covered in the schema parameter description).

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two sentences, front-loaded with the core purpose, and includes the key constraint with no wasted words. Every sentence earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool has 3 parameters and no output schema, the description is moderately complete but lacks explicit sibling differentiation and does not describe the return structure or error behavior. The schema covers parameter details well, but the tool description alone leaves some gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 67%, and the description adds the daily frequency and the 1-year range constraint, which are not in the schema. However, it does not compensate fully for the lack of an explicit endDate description, though the $ref provides the format. The added value is moderate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool returns daily historical rates for one or more symbols between two dates, which specifies the verb, resource, and scope. However, it does not explicitly differentiate from the sibling 'get_historical_rates', so it loses the point for sibling distinction.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives clear context: use this tool to get daily historical rates for a date range, with the explicit constraint that the range cannot exceed 1 year. It does not mention alternatives or exclusions, but the context alone is sufficient to guide selection.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

get_usageGet API usageA

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

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

A4/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden. It states the tool 'returns' data, which implies a read-only operation, but it does not disclose potential behaviors like response structure, error conditions (e.g., invalid key), or whether this call consumes quota. This is adequate but not rich.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, front-loaded sentence with no wasted words. It conveys the essential information efficiently, which is appropriate for the tool's simplicity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool is simple with no parameters and no output schema, yet it clearly states what will be returned. While it does not detail the exact structure of the return value, 'current plan, quota, and usage' sufficiently covers user needs for a usage-checking tool. Slightly more detail could be added, but it is essentially complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With zero parameters and 100% schema description coverage (empty schema), the description is not expected to explain parameters. The baseline for zero params is 4, and the description adds no extra parameter-related information, so it maintains the baseline.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb ('Returns') and identifies the exact resource ('current plan, quota, and usage for the configured CommodityPriceAPI key'). This clearly distinguishes the tool from its data-focused siblings (e.g., get_gold_price, get_latest_rates), making its purpose unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage for checking API consumption, but it does not explicitly state when to use this tool versus alternatives. Given the sibling tools are all about market data, the use case is understandable but relies on inference rather than explicit guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

list_symbolsList supported commodity 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.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

A4.2/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the burden of behavioral disclosure. It indicates the operation is read-only ('Returns') and lists the returned fields, but does not describe response format, pagination, error behavior, or data freshness. This is adequate but not comprehensive.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise and well-structured: one sentence for purpose and returned fields, one sentence for usage guidance. No wasted words, and the key information is front-loaded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with no parameters and no output schema, the description adequately covers the return values (category, default currency, unit) and usage context. It could be slightly more explicit about the response format (e.g., array of objects) and whether any authentication is needed, but overall it is complete enough for simple tool invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

There are zero parameters, so schema coverage is trivially 100%. The baseline for 0 params is 4, and no parameter explanations are needed. The description adds value by explaining what the response contains, which is beyond the empty schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool returns all supported commodity symbols with specific fields (category, default currency, unit). It distinguishes itself from sibling rate tools by focusing on listing symbols rather than retrieving prices or rates.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It explicitly says to use this tool to look up a symbol before calling rate tools, providing a clear usage context relative to its siblings. However, it does not explicitly state when not to use it or name alternatives, which would make it a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

TDQS

A4.2/5.0
Disambiguation4/5

Tools are largely distinct, with clear separation between account usage, symbol lookup, latest rates, historical rates, time series, and fluctuation. The get_gold_price and get_silver_price shortcuts overlap with get_latest_rates, but their descriptions explicitly label them as shortcuts, reducing confusion.

Naming Consistency5/5

All tool names follow a consistent verb_noun pattern using snake_case, primarily 'get_' with one 'list_' exception. The naming is predictable and uniform across the entire set.

Tool Count5/5

With 8 tools, the server is well-scoped for its purpose of providing commodity price data. Each tool covers a meaningful aspect (usage, symbol metadata, current rates, historical, time series, fluctuation), and the two shortcuts are acceptable conveniences.

Completeness5/5

The tool surface covers the core domain lifecycle: discovering symbols, fetching current and historical prices, time series, and fluctuation analysis. Currency conversion is available via a parameter, and usage tracking is included. No significant gaps are apparent.

Maintenance

ActivityMaintained
ResponsivenessSyncing

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    An MCP server that provides current and historical gold/precious metal prices (gold, silver, platinum, and palladium) via the GoldAPI.io service with support for multiple currencies.
    1
    MIT
  • A
    license
    A
    quality
    C
    maintenance
    MCP server that provides access to SiftingIO market data, including live prices, SEC filings, OHLCV bars, 13F holdings, market status, and economic calendar tools for AI assistants.
    36
    43
    1
    MIT
  • F
    license
    Not graded
    quality
    C
    maintenance
    Enables LLM clients to query live and historical metal and commodity prices from metalsmarket.net through an MCP server.
  • A
    license
    Not graded
    quality
    A
    maintenance
    Official MCP server for the FinancialReports API. Provides direct access to regulatory filings, financial data, and corporate information from listed companies worldwide via 15 curated tools.
    2
    MIT

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