mcp-server
About
Source-timestamped energy data and reviewed OilPriceAPI product facts for MCP clients.
Use this server
Add it to your MCP client. The catalogue lists this config verbatim from its source — it does not run, download, or vouch for the server. Review the command before you run it.
Transportstdio (runs a local command)
Env vars
OILPRICEAPI_KEY OILPRICEAPI_MCP_SCOPE OILPRICEAPI_MCP_PROFILE OILPRICEAPI_MCP_CATEGORIESClaude Code
claude mcp add --env OILPRICEAPI_KEY= --env OILPRICEAPI_MCP_SCOPE= --env OILPRICEAPI_MCP_PROFILE= --env OILPRICEAPI_MCP_CATEGORIES= mcp-server -- npx oilpriceapi-mcp
Cursor
If the button doesn't open Cursor, use the JSON below — Cursor accepts the same mcpServers config.
VS Code
code --add-mcp '{"name":"mcp-server","command":"npx","args":["oilpriceapi-mcp"],"env":{"OILPRICEAPI_KEY":"","OILPRICEAPI_MCP_SCOPE":"","OILPRICEAPI_MCP_PROFILE":"","OILPRICEAPI_MCP_CATEGORIES":""}}'
JSON
{
"mcpServers": {
"mcp-server": {
"command": "npx",
"args": [
"oilpriceapi-mcp"
],
"env": {
"OILPRICEAPI_KEY": "",
"OILPRICEAPI_MCP_SCOPE": "",
"OILPRICEAPI_MCP_PROFILE": "",
"OILPRICEAPI_MCP_CATEGORIES": ""
}
}
}
}
Environment variables are listed by name only — fill in your own values. Entries never carry secrets.