Available tools
8 tools| Tool | Description |
|---|---|
getLatestPrices | Get latest commodity prices. Optionally filter by base currency and symbols. |
getHistoricalPrices | Get historical prices for a specific date. |
getTimeSeries | Get time-series data between two dates. |
getFluctuation | Get price fluctuation (change) between two dates. |
convert | Convert an amount from one commodity/currency to another. |
getOHLC | Get open/high/low/close for a commodity on a specific date. |
getOilPrices | Get latest crude oil prices (Brent + WTI). |
getEnergyPrices | Get latest energy commodity prices (oil, gas, gasoline, diesel). |
Setup
A few steps to connect your AI agents to Commodities-API.
- 1
Get an Access Key
Register at https://commodities-api.com and generate your access key. Free tier allows 100 req/month.
- 2
Connect on PatchOps
Navigate to /mcp, find Commodities-API, and enter your access key.
- 3
Start Querying
Use getOilPrices for quick Brent/WTI, getTimeSeries for historical trends, or convert for currency conversion.
Connect to your AI assistant
Pick the tool your team uses for the exact setup steps.
- 1
Open Claude settings
Launch Claude, click the profile button (bottom left), and go to Settings.
- 2
Access connectors
Open the Connectors tab, scroll to the bottom, and click “Add custom connector”.
- 3
Name your connector
Enter any name you’d like for this connector.
- 4
Get the connector URL
Log in to PatchOps, open the /mcp page, and copy the connector URL you want to use.
- 5
Add the connector
Paste the URL into the “Remote MCP server URL” box and click Add.
- 6
Start using
Your Commodities-API connector is ready to use in Claude.
