Skip to content
Grok

mcp server for Grok

io.github.oilpriceapi/mcp-server

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

client:Grok transport:stdio runtime:npm

Install mcp server in Grok

.mcp.json (in your project root)

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

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

Grok Build reads Claude Code's .mcp.json and Claude Desktop's config unchanged, so a server you have already set up there needs nothing new. The Grok web app and X integration do not take custom servers. Grok docs

mcp server in other clients