How to Use the OpenEI MCP in Claude Code
Pipe live US electricity rates from OpenEI into any script, cron job, or CI/CD pipeline using Claude Code and this MCP server.
Works with every AI agent you already use
…and any MCP-compatible client
Connect OpenEI MCP to Claude Code
Create your Vinkius account to connect OpenEI to Claude Code — we handle the hosting, security, and runtime updates so you don't have to. No server setup required.
Key Capabilities
Script Bulk Rate Lookups
This isn't for single lookups. Feed a CSV of addresses to a shell script. Your script calls `claude mcp openei-mcp get_rates_by_address` for each line and pipes the structured JSON output to another file. It's that simple. You can process thousands of locations for a feasibility study without ever leaving the terminal. The output is clean JSON, so you can easily parse it with `jq` or any other command-line tool to build your reports.
Automate Tariff Monitoring
Utilities change their rates. Set up a cron job to monitor them. Have it run a daily script that calls `get_rate_detail` with a specific tariff ID you're tracking. Your script can then `diff` the output against yesterday's result. If anything changes—a new demand charge, a shift in TOU hours—you can trigger an alert, send an email, or page an on-call engineer. It's set-and-forget monitoring for critical project inputs.
Test Energy Apps in CI/CD with Claude Code
Don't let your energy modeling app break because a utility changed its rate structure. Integrate this MCP Server into your CI/CD pipeline. Before every deployment, have your GitHub Action run tests that use `get_utility_rates` to pull live data for key service areas. If your application's parser fails on the current, real-world data structure, the build fails. This catches regressions and integration issues before they hit production, ensuring your models are always working with valid data.
Set up OpenEI MCP in Claude Code
Prerequisites
- Claude Code CLI installed (
npm install -g @anthropic-ai/claude-code) - Active Vinkius subscription with a valid endpoint token
- 1
Run the add command
Open your terminal and run the command shown on the right. Replace
[YOUR_TOKEN_HERE]with your endpoint token from cloud.vinkius.com. Use--scope userto make it available across all projects. - 2
Verify the connection
Start a Claude Code session and type
/mcpto list connected servers. You should seeopenei-mcpwith a green status indicator. - 3
Start using tools
Ask Claude Code something like "Check my latest OpenEI transactions." It will automatically discover and invoke the available OpenEI tools.
claude mcp add --transport http openei-mcp https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp Why Choose Vinkius
Vinkius connects your tools to AI with real-time monitoring and automatic cost savings — all from one dashboard.
Real-time monitoring
Live
visibility into every interaction
Connect your favorite tools to your AI and see exactly what's happening — every request, every response, in real time.
Built-in savings
60%
lower AI costs
Vinkius compresses data between your apps and your AI automatically. Lower bills every month — no configuration required.
Single dashboard
One
place for every integration
Every tool your AI connects to, managed from a single screen. One account, complete control.
Common questions about OpenEI MCP in Claude Code
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the OpenEI MCP today
We host it, we monitor it, we maintain it. You just paste one token.