MC

OilpriceAPI MCP Server

Published by OilpriceAPI

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

CATEGORY
More to explore
DEPLOYMENT
Local package
LATEST SOURCE VERSION
3.7.0
SOURCE CHECKED
Nov 30, 2026

Quick answers

How do I add OilpriceAPI MCP Server to Claude Code, Cursor or Codex?

Claude CodeCommand

Run this in your terminal:

claude mcp add --env 'OILPRICEAPI_KEY=<your-oilpriceapi-key>' --transport stdio mcp-server -- npx -y oilpriceapi-mcp

Replace the <your-…> placeholder with your own OILPRICEAPI_KEY.

Claude Code setup guide
CursorConfig

Add this to ~/.cursor/mcp.json, or to .cursor/mcp.json in a project:

{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "oilpriceapi-mcp"
      ],
      "env": {
        "OILPRICEAPI_KEY": "<your-oilpriceapi-key>"
      }
    }
  }
}

Replace the <your-…> placeholder with your own OILPRICEAPI_KEY.

Cursor setup guide
CodexCommand

Run this in your terminal:

codex mcp add mcp-server --env 'OILPRICEAPI_KEY=<your-oilpriceapi-key>' -- npx -y oilpriceapi-mcp

Replace the <your-…> placeholder with your own OILPRICEAPI_KEY.

Codex setup guide
VS CodeConfig

Add this to .mcp.json at the root of your workspace:

{
  "mcpServers": {
    "mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "oilpriceapi-mcp"
      ],
      "env": {
        "OILPRICEAPI_KEY": "<your-oilpriceapi-key>"
      }
    }
  }
}

Replace the <your-…> placeholder with your own OILPRICEAPI_KEY.

VS Code setup guide
Claude DesktopConfig

Add this to claude_desktop_config.json, then restart Claude:

{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "oilpriceapi-mcp"
      ],
      "env": {
        "OILPRICEAPI_KEY": "<your-oilpriceapi-key>"
      }
    }
  }
}

Replace the <your-…> placeholder with your own OILPRICEAPI_KEY.

Claude Desktop setup guide
ChatGPTNot available

ChatGPT can't add it from its published details: it connects from the cloud and needs a public address, and this server runs on your computer.

ChatGPT setup guide

Which apps can use OilpriceAPI MCP Server?

Claude Code, Cursor, Codex, VS Code and Claude Desktop can add it from its published details. ChatGPT can't: it connects from the cloud and needs a public address, and this server runs on your computer.

Does OilpriceAPI MCP Server need an API key?

To run it on your computer, set OILPRICEAPI_KEY first, with values from the publisher.

Is OilpriceAPI MCP Server official?

It's published by OilpriceAPI. The Official MCP Registry accepts names under io.github.OilpriceAPI only from the GitHub account or organisation OilpriceAPI. We last checked its listing on Nov 30, 2026. A listing shows where a server comes from; it isn't a security review.

Published packages

npm · oilpriceapi-mcp@3.7.0
View source repository