Eia MCP Server
by cyanheadsio.github.cyanheads/eia-mcp-serverv0.1.7
Browse and query the EIA API v2 — electricity, petroleum, natural gas, coal, forecasts via MCP.
context tax
queued
security
queued
cold start
queued
freshness
Deprecated6d ago
Install Eia MCP server
Install in Claude Code
claude mcp add eia-cyanheads -e EIA_API_KEY='<eia-api-key>' -- npx -y @cyanheads/eia-mcp-server run start:stdioInstall in Cursor
{
"mcpServers": {
"eia-cyanheads": {
"command": "npx",
"args": [
"-y",
"@cyanheads/eia-mcp-server",
"run",
"start:stdio"
],
"env": {
"EIA_API_KEY": "<eia-api-key>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"eia-cyanheads": {
"command": "npx",
"args": [
"-y",
"@cyanheads/eia-mcp-server",
"run",
"start:stdio"
],
"env": {
"EIA_API_KEY": "<eia-api-key>"
}
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"eia-cyanheads": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@cyanheads/eia-mcp-server",
"run",
"start:stdio"
],
"env": {
"EIA_API_KEY": "<eia-api-key>"
}
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"eia-cyanheads": {
"command": "npx",
"args": [
"-y",
"@cyanheads/eia-mcp-server",
"run",
"start:stdio"
],
"env": {
"EIA_API_KEY": "<eia-api-key>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| EIA_API_KEY | yes | — | Free API key from api.eia.gov. Required — all requests use this as the api_key query parameter. |
| EIA_DATASET_TTL_SECONDS | — | — | Per-table TTL for DataCanvas dataframes in seconds. |
| EIA_DATAFRAME_DROP_ENABLED | — | — | Set to 'true' to expose eia_dataframe_drop for manual canvas cleanup. |
| CANVAS_PROVIDER_TYPE | — | — | Set to 'duckdb' to enable DataCanvas spillover for large query result sets (Node.js only). |
| MCP_LOG_LEVEL | — | — | Sets the minimum log level for output (e.g., 'debug', 'info', 'warn'). |
| MCP_HTTP_HOST | — | — | The hostname for the HTTP server. |
| MCP_HTTP_PORT | — | — | The port to run the HTTP server on. |
| MCP_HTTP_ENDPOINT_PATH | — | — | The endpoint path for the MCP server. |
| MCP_PUBLIC_URL | — | — | Public origin override for deployments behind a TLS-terminating reverse proxy (e.g. https://mcp.example.com). |
| MCP_AUTH_MODE | — | — | Authentication mode to use: 'none', 'jwt', or 'oauth'. |
Freshness
Deprecated — last maintenance signal 6d ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-10-04 · 6d ago · GitHub
Latest release
2026-10-04 · 6d ago · GitHub · v0.4.3
Package published
no data · npm/PyPI
Registry entry updated
2026-08-30 · 40d ago · official registry · v0.1.7
FAQ
›How do I install the Eia MCP server in Claude Code?
Run: claude mcp add eia-cyanheads -e EIA_API_KEY='<eia-api-key>' -- npx -y @cyanheads/eia-mcp-server run start:stdio. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does Eia require an API key?
Yes. It expects EIA_API_KEY.
›Can I use Eia as a remote (hosted) MCP server?
Yes — it offers both a hosted endpoint and a local stdio package.
›Is Eia in the official MCP registry?
Yes, as io.github.cyanheads/eia-mcp-server.