mcp-server

v3.7.1
io.github.OilpriceAPI/mcp-server Checked 18 hours ago Published 1 day ago

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

Values you need

VariableWhat it is
OILPRICEAPI_KEYoptional secret Your OilPriceAPI key from oilpriceapi.com/auth/signup. Optional: without it, keyless demo mode.
OILPRICEAPI_MCP_SCOPEoptional Tool scope: read (default) or write (explicit mutation opt-in).
OILPRICEAPI_MCP_PROFILEoptional Tool profile: all, core, market, or automation.
OILPRICEAPI_MCP_CATEGORIESoptional Comma-separated category allowlist (core, market, automation) that overrides the profile.

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add mcp-server -- npx -y oilpriceapi-mcp@3.7.1
Add to claude_desktop_config.json
{
  "mcpServers": {
    "mcp-server": {
      "args": [
        "-y",
        "oilpriceapi-mcp@3.7.1"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "mcp-server": {
      "args": [
        "-y",
        "oilpriceapi-mcp@3.7.1"
      ],
      "command": "npx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "mcp-server": {
      "args": [
        "-y",
        "oilpriceapi-mcp@3.7.1"
      ],
      "command": "npx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.mcp-server]
command = "npx"
args = ["-y", "oilpriceapi-mcp@3.7.1"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: opa_get_product_facts, opa_get_price, opa_market_overview, opa_compare_prices, opa_list_commodities, opa_get_history, opa_get_history_range, opa_get_futures, ….
  4. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json