MCP server for source-timestamped oil, gas, fuel, carbon, and related energy market data.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent โ or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag โ we're steadily working through the catalog.
๐ก Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by MCP Server.
Give compatible AI clients source-timestamped oil, gas, LNG, carbon, fuel, and related energy data through MCP. No API key is needed to try the limited demo.
Get a Free API Key ยท Documentation ยท API Explorer ยท Pricing
Backed by OilPriceAPI, a normalized REST API for energy dashboards, fleet and logistics tools, maritime workflows, and market research.
Canonical sources: Public product facts ยท Official MCP Registry record
The default scope is read-only. Account mutations are not listed and direct mutation calls are rejected unless write scope is explicitly enabled:
Inspect the package without opening an MCP stdio session:
--config generates client-native, copy/paste-valid JSON for
claude-desktop, claude-code, cursor, vscode, cline, or windsurf.
It never reads or prints the configured API key. Claude Code, VS Code, and
Windsurf outputs use their supported environment or secure-input references;
Claude Desktop, Cursor, and Cline use an explicit local replacement marker.
Add --demo to omit API-key configuration entirely. Scope, profile, and
category options are preserved in the generated server arguments.
Example commodity codes:
| Code | What it is | Typical agent use |
|---|---|---|
BRENT_CRUDE_USD | Brent crude (global) | market briefings, dashboards |
WTI_USD | WTI crude (US) | trading context, macro models |
NATURAL_GAS_USD | Henry Hub natural gas | energy analytics |
DUTCH_TTF_EUR | TTF gas (Europe) | European energy, LNG analysis |
JKM_LNG_USD | JKM LNG (Asia) | LNG trading & shipping |
EU_CARBON_EUR | EU ETS carbon allowances | CBAM, maritime compliance, ESG |
DIESEL_USD | Diesel (Gulf Coast) | fleet & fuel-surcharge math |
JET_FUEL_USD | Jet fuel | aviation ops |
VLSFO_USD | Marine bunker fuel | voyage costing |
GOLD_USD | Gold | macro & portfolio context |
The server works out of the box in keyless demo mode โ just omit OILPRICEAPI_KEY from the configs below. The price tools (opa_get_price, opa_compare_prices, opa_list_commodities, opa_market_overview) serve latest available values for a limited demo commodity set, and every other data tool explains its account requirements. Demo responses are marked with a footer. For the broader account-enabled catalog, history, futures, and alerts, get a free API key and add it to your config.
Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
Add to your project's .mcp.json:
Add to .cursor/mcp.json in your project root:
Add to .vscode/mcp.json:
Add to ~/.codeium/windsurf/mcp_config.json:
Container builds require the source revision and commit timestamp so the image, capability manifest, and build metadata are traceable to the same checkout:
The runtime image uses the unprivileged node user. Omit OILPRICEAPI_KEY for
the limited keyless demo, or inject it with your container platform's secret
manager. Do not bake credentials into the image.
| Variable | Required | Description |
|---|---|---|
OILPRICEAPI_KEY | No | API key from oilpriceapi.com/auth/signup. After the core trial, use the public product facts or your account response for the current Free allowance and reset window. Dataset access and limits vary by plan and entitlement. Without a key, the server uses the limited demo. |
OILPRICEAPI_BASE_URL | No | Override API base URL (for staging/testing). Default: https://api.oilpriceapi.com |
OILPRICEAPI_MCP_SCOPE | No | read (default) hides and blocks create/delete tools. Set write only when account mutations are intended. |
OILPRICEAPI_MCP_PROFILE | No | Stable inventory profile: all (default), core, market, or automation. |
OILPRICEAPI_MCP_CATEGORIES | No | Comma-separated category allowlist (core, market, automation). Overrides the selected profile. |
read scope includes all non-mutating tools, including alert history,
subscription listing, and subscription event polling. The four create/delete
tools require --scope write or OILPRICEAPI_MCP_SCOPE=write. Unknown scope,
profile, or category values fail closed before stdio starts.
Profiles reduce tool overload without replacing first-class MCP actions:
Factual signals from GitHub, npm, and our automated checks โ not a rating.
No reviews yet โ be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/oilpriceapi-mcp-server)<a href="https://allmcps.com/mcp/oilpriceapi-mcp-server"><img src="https://allmcps.com/api/badge/oilpriceapi-mcp-server?style=directory" alt="MCP Server on AllMCPs" /></a>