Skip to content
Agentmart
Submit a tool

OilpriceAPI/mcp-server

Source-timestamped energy data and reviewed OilPriceAPI product facts for MCP clients.

Connector by OilpriceAPI · GitHub account verified by the MCP Registry

IndexedMITLocal (stdio)★ 4
Write a review

Install

Works with Claude Code, Codex, VS Code, Cursor, Windsurf, Claude Desktop. Read the repository before you give any tool access to your data.

npx agentmarket install connector/oilpriceapi-mcp-server

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Source-timestamped energy data and reviewed OilPriceAPI product facts for MCP clients.

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this server can do and what it asks for, from its tool list, install config and code. Checked Oct 25, 2026.

Tools
36 read · 2 write · 2 delete
Secrets
1 (API keys, tokens or passwords)
Install scripts
None found
Runs as
Node.js package

Tools by what they do 40

Read from the source code; the running server may list different tools.

Read 36 · Look things up without changing anything.

  • opa_compare_prices
  • opa_get_account_status
  • opa_get_alert_triggers
  • opa_get_data_quality
  • opa_get_diesel_by_state
  • opa_get_drilling
  • opa_get_forecasts
  • opa_get_fuel_surcharge
  • opa_get_futures
  • opa_get_futures_curve
  • opa_get_futures_history
  • opa_get_history
Show 24 more tools
  • opa_get_history_range
  • opa_get_marine_fuel_history
  • opa_get_marine_fuels
  • opa_get_marine_ports
  • opa_get_market_brief
  • opa_get_natural_gas_hubs
  • opa_get_oil_inventories
  • opa_get_opec_production
  • opa_get_plans
  • opa_get_price
  • opa_get_product_facts
  • opa_get_rig_counts
  • opa_get_spread
  • opa_get_storage
  • opa_get_subscription_events
  • opa_get_well_activity
  • opa_get_well_permits
  • opa_get_well_production
  • opa_list_commodities
  • opa_list_price_alerts
  • opa_list_subscriptions
  • opa_lookup_well
  • opa_market_overview
  • opa_search_well_permits

Write 2 · Create, change, send or run things.

  • opa_create_price_alert
  • opa_create_price_subscription

Delete 2 · Delete, drop, revoke or wipe things.

  • opa_delete_price_alert
  • opa_delete_subscription

Secrets and settings it asks for

Secrets: values you paste in that let it act as you.

  • OILPRICEAPI_KEY

Other settings (environment variables or headers).

  • OILPRICEAPI_MCP_CATEGORIES
  • OILPRICEAPI_MCP_PROFILE
  • OILPRICEAPI_MCP_SCOPE

Network hosts it talks to 14

  • agent-plugins.org · found in code
  • api.oilpriceapi.com · found in code
  • claude.ai · found in code
  • claude.com · found in code
  • docs.oilpriceapi.com · found in code
  • github.com · found in code
  • glama.ai · found in code
  • in-toto.io · found in code
  • mcp.oilpriceapi.com · found in code
  • oilpriceapi.com · found in code
  • raw.githubusercontent.com · found in code
  • slsa-framework.github.io · found in code
  • slsa.dev · found in code
  • status.oilpriceapi.com · found in code

Files it touches

  • ~/.codeium/windsurf/mcp_config.json

Tools (40)

Read from the source code; the running server may differ. Descriptions are the server’s own words; hidden characters are shown as [U+…].

  • opa_compare_pricesCompare Commodity Pricesread-only

    Compare current prices between 2-5 commodities side by side. Use when the user asks to compare commodities (e.g., 'Brent vs WTI', 'US gas vs EU gas'). Returns each commodity's price with 24h changes, plus the spread if comparing two same-currency commodities. Accepts natural language or codes.

  • opa_create_price_alertCreate Price Alert

    Create a PERSISTENT price alert tied to the user's OilPriceAPI account. The alert engine evaluates eligible source updates and notifies the user (by email, plus webhook if a URL is given) when the commodity price crosses the threshold. Use when the user asks to be alerted/notified when a price goes above or below a level (e.g. 'tell me when Brent drops below $70'). REQUIRES an API key (OILPRICEAPI_KEY) — this writes to the user's account. Alerts persist until deleted; manage them with opa_list_price_alerts and opa_delete_price_alert.

  • opa_create_price_subscriptionCreate Price Subscription

    Create a PERSISTENT, recurring price subscription (a 'watch') tied to the user's OilPriceAPI account. The API snapshots the watched commodities every `interval` and records an event each time — so the agent can come back later and poll for what changed via opa_get_subscription_events. Use when the user wants ONGOING monitoring of one or more commodities (e.g. 'keep watching Brent and WTI every hour'). This is different from a price alert: a watch ALWAYS emits an event every interval (a running log), whereas an alert only fires when a threshold is crossed. REQUIRES an API key (OILPRICEAPI_KEY) …

  • opa_delete_price_alertDelete Price Alertcan change or delete data

    Permanently delete a price alert from the user's OilPriceAPI account by id. Use when the user wants to remove/cancel/stop an existing alert. Get the id from opa_list_price_alerts first. This permanently removes the alert from the user's account. REQUIRES an API key (OILPRICEAPI_KEY).

  • opa_delete_subscriptionDelete Price Subscriptioncan change or delete data

    Permanently delete a price subscription ('watch') from the user's OilPriceAPI account by id. Use when the user wants to stop/cancel/remove an ongoing watch. Get the id from opa_list_subscriptions first. This permanently removes the recurring watch (and its event history) from the account. REQUIRES an API key (OILPRICEAPI_KEY).

  • opa_get_account_statusGet Account Statusread-only

    Get the current API account's plan tier, request usage, remaining quota, and reset date. Use before calling gated tools, when the user asks about their plan/limits/usage, or after any 402/403/429 to explain what the current plan covers. Works on every plan including free.

  • opa_get_alert_triggersGet Alert Triggersread-only

    Get recent trigger activity for the user's price alerts — which alerts have fired, how many times, and when they last triggered. Use when the user asks whether any alerts have gone off or about recent alert activity. REQUIRES an API key (OILPRICEAPI_KEY). Note: the API tracks trigger history as per-alert counters (trigger_count / last_triggered_at) rather than a separate event feed, so this returns alerts that have triggered.

  • opa_get_data_qualityGet Data Quality Reportread-only

    Get OilPriceAPI's own data-quality grades. With a commodity code: that series' quality report — overall grade/score plus dimension scores (completeness, freshness, and more) for the current period. Without a code: the API's available catalog summary (grade distribution by category). Use when the user asks how reliable/complete a series is, or which series carry the highest quality grades. The summary works on any valid key; per-commodity access varies. Requires an eligible account entitlement. Use opa_get_plans for current access and pricing; the API response is authoritative.

  • opa_get_diesel_by_stateGet Diesel Price by Stateread-only

    Get the current average retail diesel price for a US state. Use when the user asks about diesel prices in a specific state, diesel fuel costs by state, or state-level fuel prices. Accepts state names ('California') or 2-letter codes ('CA'). Returns the AAA-sourced state average diesel price. Covers all 50 states plus DC.

  • opa_get_drillingGet Drilling Activityread-only

    Get a drilling activity snapshot: US, Canada, and international rig counts, frac spread count, well permits issued in the last 30 days (with a by-state breakdown), and DUC (drilled-uncompleted) well totals. Use when the user asks about drilling activity, rigs vs frac spreads, or upstream operations. Requires an eligible account entitlement. Use opa_get_plans for current access and pricing; the API response is authoritative.

  • opa_get_forecastsGet Price Forecastsread-only

    Get energy price forecasts from EIA Short-Term Energy Outlook (STEO) and other sources. Use when the user asks about price predictions, outlooks, or where oil/gas prices are heading. Returns forecast data available to the account. Requires an eligible account entitlement. Use opa_get_plans for current access and pricing; the API response is authoritative.

  • opa_get_fuel_surchargeGet Fuel Surchargeread-only

    Get carrier-published fuel surcharge percentages for LTL freight and parcel carriers. Use when the user asks about current or historical fuel surcharge rates for carriers like ODFL, Saia, Estes, XPO, ABF, TForce, Averitt, Southeastern Freight, UPS, FedEx, or DHL. Auto mode treats UPS/FedEx/DHL as parcel carriers and other carrier slugs as LTL. Parcel history requires a service_level such as ground, air, or international_air_export.

  • opa_get_futuresGet Futures Priceread-only

    Get the latest front-month futures contract price for energy commodities. Use canonical instrument slugs: brent, wti, gasoil, natural-gas, ttf-gas, lng-jkm, eu-carbon, or uk-carbon. Contract codes and older venue slugs remain compatibility inputs. For the forward curve returned for this account, use opa_get_futures_curve instead. Requires an eligible account entitlement. Use opa_get_plans for current access and pricing; the API response is authoritative.

  • opa_get_futures_curveGet Futures Curveread-only

    Get the futures forward-curve contracts returned for this account. Use canonical instrument slugs: brent, wti, gasoil, natural-gas, ttf-gas, lng-jkm, eu-carbon, or uk-carbon. Contract codes and older venue slugs remain compatibility inputs. Returns available contract months with settlement prices plus market-structure analysis. Requires an eligible account entitlement. Use opa_get_plans for current access and pricing; the API response is authoritative.

  • opa_get_futures_historyGet Futures Settlement Historyread-only

    Get daily, weekly or monthly OHLC history per contract month for brent, wti or natural-gas (NYMEX Henry Hub) futures between two dates. Use when the user asks how a futures contract traded over time or for past settlements; opa_get_futures and opa_get_futures_curve return only the current front month and curve. The date range is at most 730 days and cannot include future dates. Pass contract_month (YYYY-MM) for one contract; without it every listed contract month is returned and the answer shows at most 400 rows, saying what it left out. Daily close is the last captured price; exchange settlem…

Show 25 more tools
  • opa_get_historyGet Price Historyread-only

    Get historical price data for a commodity over a time period. Use when the user asks about price trends, historical prices, or how a commodity has performed over time. Returns high, low, average, change, and data point count. Periods: day (24h), week (7d), month (30d), year (365d). Supports point-in-time filtering via stored observation and revision timestamps. Observation-dated bulk backfills may appear in an earlier as_of result because their actual load time cannot be reconstructed. Requires an eligible account entitlement. Use opa_get_plans for current access and pricing; the API response …

  • opa_get_history_rangeGet Price History for a Date Rangeread-only

    Get dated price rows for up to 5 commodities between a start date and an optional end date (YYYY-MM-DD, UTC), aggregated hourly, daily, weekly or monthly. Use when the user needs the actual series (e.g. daily Brent and heating oil from 2025-01-01 to 2025-06-30) rather than summary statistics over a fixed window, which opa_get_history returns. Results are paged at up to 500 rows per page across all requested codes, newest rows first: page 1 holds the most recent dates and later pages go back in time; within a page each code's rows are listed oldest to newest. The answer states the page count an…

  • opa_get_marine_fuel_historyGet Marine Fuel Price Historyread-only

    Get the daily price history of one marine fuel at one port: one row per assessment date with price, currency, unit and collection time, plus high/low over the rows returned. Use when the user asks how bunker prices at a port moved over days or months. Needs the port's UN/LOCODE (resolve names with opa_get_marine_ports) and a fuel type: VLSFO, MGO_05S (MGO), HFO_380 (IFO380) or HFO_180. Requires a paid subscription or an active trial; other accounts get HTTP 403. The API rate-limits history more tightly than latest prices and caps the rows per request, so a long window can come back shorter tha…

  • opa_get_marine_fuelsGet Marine Fuel Pricesread-only

    Get latest marine fuel (bunker) prices returned for the account, one row per port and fuel, each with the currency, unit, as-of time, age in days and stale flag the API reports. Use when the user asks about bunker fuel, marine fuel, VLSFO, MGO, IFO380, or shipping fuel costs. Filter by port name or UN/LOCODE (e.g., Singapore or SGSIN, Rotterdam or NLRTM) and/or by the fuel type the API reports: VLSFO, MGO_05S (MGO), HFO_380 (IFO380). Requires an eligible account entitlement. Use opa_get_plans for current access and pricing; the API response is authoritative.

  • opa_get_marine_portsGet Marine Fuel Portsread-only

    List the bunkering ports the API carries (UN/LOCODE, name, country, region, major-port flag, fuel services, trading hours), or read one port with its prices collected in the last 24 hours. Use it to resolve a port name to the UN/LOCODE that opa_get_marine_fuel_history needs, or to check which fuel services a port lists. Works with any valid API key; the API applies its own marine per-minute rate limit. Requires an eligible account entitlement. Use opa_get_plans for current access and pricing; the API response is authoritative.

  • opa_get_market_briefMulti-Commodity Market Briefread-only

    Get a multi-commodity market brief: latest spot prices, 24h changes, 1-month forecasts (for Brent/WTI/Natural Gas), and notable spreads — for several commodities in ONE call. Use when the user wants a market snapshot, morning brief, or an at-a-glance read across multiple commodities. Set `narrative: true` to also get a plain-English summary plus market context (active supply disruptions, key economic indicators). Accepts natural language ('brent', 'us gas') or API codes. REQUIRES an API key (OILPRICEAPI_KEY); counts as 1 request. Per-account code limits apply and the API response is authoritat…

  • opa_get_natural_gas_hubsGet US Natural Gas Hub Pricesread-only

    Get US physical natural gas hub prices as basis to Henry Hub (USD/MMBtu). Use when the user asks about regional gas prices or hub basis — Waha (West Texas/Permian), SoCal Citygate, Chicago Citygate, Algonquin Citygate, Eastern Gas South (formerly Dominion South), Houston Ship Channel. Without a hub, returns each live hub available to the account plus its basis; with a hub, returns that hub's latest price, basis, and basis history. Hub series differ in depth — check history_days before requesting a long window. Requires an eligible account entitlement. Use opa_get_plans for current access and p…

  • opa_get_oil_inventoriesGet EIA Oil Inventoriesread-only

    Get the latest EIA weekly petroleum inventory (stocks) data. Use when the user asks about oil inventories, crude stocks, weekly EIA stocks, inventory builds/draws, or product-level inventory levels. Returns the latest weekly figures available to the account; optionally a summary view or a breakdown by petroleum product. Requires an eligible account entitlement. Use opa_get_plans for current access and pricing; the API response is authoritative.

  • opa_get_opec_productionGet OPEC Productionread-only

    Get the latest OPEC oil production data. Use when the user asks about OPEC output, production quotas, supply cuts, or OPEC+ compliance. Returns available country-level production figures. Requires an eligible account entitlement. Use opa_get_plans for current access and pricing; the API response is authoritative.

  • opa_get_plansGet Plans & Pricingread-only

    Get OilPriceAPI's current subscription plans: monthly/yearly price, request limits, and included features for each tier. Use when the user asks what an upgrade costs, which plan unlocks a gated tool (history, futures, natural gas hubs...), or how the tiers compare. Live pricing from the API — no key required.

  • opa_get_priceGet Commodity Priceread-only

    Get the latest available, source-timestamped value for an energy commodity. Use when the user asks about a single commodity's latest price. Accepts natural language ('brent oil', 'diesel') or API codes ('WTI_USD'). Returns price, currency, available change fields, and timestamp. For multiple commodities at once, use opa_market_overview. For price trends, use opa_get_history.

  • opa_get_product_factsGet OilPriceAPI Product Factsread-only

    Get the reviewed, versioned OilPriceAPI product contract for product scope, evaluation offer, pricing URL, freshness policy, catalog and entitlement wording, authentication, canonical first request, keyless demo, and data-rights boundaries. Use this instead of model memory or package prose for questions about OilPriceAPI itself. No API key or paid-data entitlement is required.

  • opa_get_rig_countsGet US Rig Countsread-only

    Get the latest US rig count (Baker Hughes). Use when the user asks about drilling activity, rig counts, or oil field operations. Returns a single US total rig count with its region and observation date — this source carries no oil/gas split and no prior-week delta. For rigs broken out by US/Canada/international alongside frac spreads and permits, use opa_get_drilling. No parameters needed. Requires an eligible account entitlement. Use opa_get_plans for current access and pricing; the API response is authoritative.

  • opa_get_spreadGet Refining & Trading Spreadsread-only

    Get refining and trading spreads: crack spreads (refining margin proxy), basis spreads (regional price differentials), and refinery margins, latest or as a daily history. Use when the user asks about crack spreads, 3-2-1 crack, refining margins, Brent-WTI, Waha or JKM/TTF vs Henry Hub basis. crack: crack_type 3-2-1|jet|diesel|gasoline (default 3-2-1) against crude BRENT_CRUDE_USD|WTI_USD|BRENT_SPOT_USD|WTI_SPOT_USD (default BRENT_CRUDE_USD). basis: pair WAHA_HH|BRENT_WTI|BRENT_DUBAI|JKM_HH|TTF_HH|BRENT_OMAN; omit pair to list every pair (/basis/all). margin: index usgc|singapore|nwe (default u…

  • opa_get_storageGet Oil Storage Levelsread-only

    Get oil storage and inventory levels for Cushing, Oklahoma (WTI delivery hub) and/or the US Strategic Petroleum Reserve (SPR). Use when the user asks about oil inventories, storage levels, Cushing stocks, or the SPR. Returns current inventory levels with changes. Requires an eligible account entitlement. Use opa_get_plans for current access and pricing; the API response is authoritative.

  • opa_get_subscription_eventsPoll Subscription Eventsread-only

    Poll for new subscription events — the recurring snapshots recorded by the user's watches. Use this to catch up on what changed since the last poll: pass the `since` cursor (the seq number) returned by the previous call to get only newer events. Events are POLLED, not pushed — there is no always-on connection, so call this periodically to stay current. Each event carries a price snapshot plus per-code deltas vs the prior snapshot. The returned `cursor` is what you pass as `since` next time. REQUIRES an API key (OILPRICEAPI_KEY). This poll does NOT count against the monthly request quota.

  • opa_get_well_activityGet Recent Well Activityread-only

    Get recent US well-permit activity including counts by state, top operators and formations, permit types, and weekly trend. The response also includes every non-available state-health record so stale, degraded, unavailable, or attention states are explicit; rankings must not be treated as complete national coverage when warnings exist. If the state-health index cannot be loaded, the activity summary is still returned, headed as partial, with the reason the health gate is missing.

  • opa_get_well_permitsGet Well Permitsread-only

    Get the latest US oil & gas well drilling permit data. Use when the user asks about well permits, new drilling permits, permitting activity, or upstream permit trends. Returns available permits; optionally filtered/aggregated by state or by operator. Requires an eligible account entitlement. Use opa_get_plans for current access and pricing; the API response is authoritative.

  • opa_get_well_productionGet Well Productionread-only

    Get US oil & gas well production data (BETA coverage: monthly state-level production from EIA + selected state regulators, and well-level histories for selected states only — NOT complete US well-level production). Views: summary (national + top states), states (reporting states returned by the API, latest month), state (monthly history for one state), well (monthly history for one well by 14-digit API number), top_producers (highest-output wells, optionally by state), cycle_time (permit-to-production cycle time stats, optionally by state), cohorts (cycle times by spud quarter). Use when the u…

  • opa_list_commoditiesList Available Commoditiesread-only

    List the account-visible commodities returned by the live API. Use when the user asks what commodities are available for this account, what codes to use, or when another tool returns a 'commodity not recognized' error. Results are grouped by category. Dataset access varies by account entitlement. No parameters needed.

  • opa_list_price_alertsList Price Alertsread-only

    List all PERSISTENT price alerts on the user's OilPriceAPI account. Use when the user asks what alerts they have set up, or to find an alert's id before deleting it. REQUIRES an API key (OILPRICEAPI_KEY) — alerts are account-scoped. No parameters needed.

  • opa_list_subscriptionsList Price Subscriptionsread-only

    List all PERSISTENT price subscriptions ('watches') on the user's OilPriceAPI account. Use when the user asks what they're monitoring, or to find a watch's id before deleting it. Each watch is a recurring, account-tied snapshot job. REQUIRES an API key (OILPRICEAPI_KEY). No parameters needed.

  • opa_lookup_wellLook Up Well by API Numberread-only

    Look up a well by 10-, 12-, or 14-digit API number using the core API's promoted lifecycle summaries. Returns operator, county, lifecycle dates, cumulative production and evidence; for a 14-digit API number it also includes exact monthly well-production history when available. Optional state disambiguates API numbers that occur across source contexts. Unpromoted or ambiguous records fail closed.

  • opa_market_overviewEnergy Market Overviewread-only

    Get the current prices returned by the API for this account in one call. Use when the user wants a broad market snapshot or asks about overall energy prices. Returns available prices grouped by category (oil, gas, coal, refined products, metals, forex) with 24h changes. Supports filtering by category. Dataset access varies by account entitlement. For a single commodity, use opa_get_price instead.

  • opa_search_well_permitsSearch Well Permitsread-only

    Search well permits in one US state by county or operator and optional permit-date range. The tool checks the core API's measured state-health gate first, fails closed for unavailable/attention states, and always returns freshness, date coverage, source provenance, and any staleness/degradation caveat with the records. Operator and county filters currently require separate searches.

Compare and alternatives

    Featured in

    Signals

    Stars
    4
    Forks
    2
    Open issues
    5
    Last commit
    Oct 19, 2026 (9 days ago)
    Last release
    Oct 17, 2026 (11 days ago)

    From GitHub (fetched Oct 24, 2026).

    Details

    Registry name
    io.github.OilpriceAPI/mcp-server
    Version
    3.6.0
    Auth
    API key
    Packages
    npm oilpriceapi-mcp
    License
    MIT
    First seen
    Oct 24, 2026
    Last checked
    Oct 24, 2026
    Cite this page

    OilpriceAPI/mcp-server. Agent Mart. https://agentmart.dev/connectors/oilpriceapi-mcp-server (last updated 2026-10-24)