mcp-server
v3.7.1Source-timestamped energy data and reviewed OilPriceAPI product facts for MCP clients.
Values you need
| Variable | What it is | |
|---|---|---|
OILPRICEAPI_KEY | optional secret | Your OilPriceAPI key from oilpriceapi.com/auth/signup. Optional: without it, keyless demo mode. |
OILPRICEAPI_MCP_SCOPE | optional | Tool scope: read (default) or write (explicit mutation opt-in). |
OILPRICEAPI_MCP_PROFILE | optional | Tool profile: all, core, market, or automation. |
OILPRICEAPI_MCP_CATEGORIES | optional | 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.1Add 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
- 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).
- Restart or reload the client so it starts the server.
- 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, ….
- 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