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

Local serverstdioMIT

What is the OilpriceAPI MCP Server?

oilpriceapi-mcp is an MCP project maintained in the oilpriceapi/mcp-server repository. The maintainer describes its purpose as “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…”. Read the project documentation for the complete scope.

Installation

The documented npm package is oilpriceapi-mcp. The configuration below comes from the maintainer’s example; adapt its paths and account values to your environment.

Configuration values

The example declares OILPRICEAPI_KEY. Secret-looking values have been replaced with placeholders. Required and optional labels are shown only when the documentation states them.

Source

Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
ProfileIncluded categories
allcore, market, automation
corecore
marketcore, market
automationcore, automation
opa_get_product_factsReviewed product, offer, freshness, auth, integration, entitlement, and data-rights contract
opa_get_priceCurrent spot price for a single commodity
opa_market_overviewAccount-visible current prices returned by the API, grouped by category
opa_compare_pricesSide-by-side comparison of 2-5 commodities with spread
opa_list_commoditiesAccount-visible commodity catalog returned by the live API
opa_get_historyHistorical prices with high/low/avg/change (day/week/month/year)
opa_get_futuresFront-month futures (Brent, WTI, gasoil, TTF, JKM, EU carbon)
opa_get_futures_curveFull forward curve with contango/backwardation analysis
opa_get_marine_fuelsBunker fuel prices by port and fuel type (VLSFO/MGO/IFO380)
opa_get_rig_countsBaker Hughes US total rig count with region and observation date
opa_get_drillingDrilling snapshot: rig counts, frac spreads, 30-day permits, DUCs
opa_get_diesel_by_stateAAA retail diesel price for any US state (50 states + DC)
opa_get_fuel_surchargeLTL and parcel carrier fuel surcharge percentages with effective dates and source provenance
opa_get_storageCushing and SPR oil storage/inventory levels
opa_get_opec_productionOPEC country-level production data
opa_get_forecastsEIA STEO energy price forecasts
opa_get_oil_inventoriesEIA weekly petroleum stocks (latest/summary/by_product)
opa_get_well_permitsUS well drilling permits (latest/by_state/by_operator)
opa_search_well_permitsState-scoped permit search by county/operator/date with measured freshness gate
opa_lookup_wellAPI-number lookup with promoted lifecycle and exact monthly production when available
opa_get_well_activityRecent permit counts/top operators/trends with explicit state-health warnings
opa_get_well_productionUS well production — beta coverage (summary/states/state/well/top_producers/cycle_time/cohorts)
opa_get_spreadRefining/trading spreads (crack, basis, margin)
opa_create_price_alertCreate a persistent alert (commodity, operator, threshold, optional webhook)
opa_list_price_alertsList all alerts on the account
opa_delete_price_alertPermanently delete an alert by id
opa_get_alert_triggersRecent alert trigger activity (optionally filtered by since)
opa_get_market_briefMulti-commodity brief: prices, 24h changes, 1m forecasts, spreads, optional narrative
opa_create_price_subscriptionCreate a persistent recurring watch (codes, interval like 5m/1h/daily)
opa_list_subscriptionsList all subscriptions on the account
opa_delete_subscriptionPermanently delete a subscription by id
opa_get_subscription_eventsPoll for new watch events since a cursor (since); returns snapshots + deltas

How to install the OilpriceAPI MCP Server

{
  "mcpServers": {
    "oilpriceapi": {
      "command": "npx",
      "args": [
        "-y",
        "oilpriceapi-mcp"
      ],
      "env": {
        "OILPRICEAPI_KEY": "YOUR_OILPRICEAPI_KEY"
      }
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

VariableDescriptionRequired
OILPRICEAPI_KEYDeclared in the maintainer’s client configuration.Check documentation