MCP Server
MCP
io.github.cyanheads/eia-mcp-server
Browse and query the EIA API v2 — electricity, petroleum, natural gas, coal, forecasts via MCP.
Install
npx -y @cyanheads/[email protected]
Configuration Example
{
"remotes": [],
"packages": [
{
"registryType": "npm",
"registryBaseUrl": "https://registry.npmjs.org",
"identifier": "@cyanheads/eia-mcp-server",
"version": "0.1.7",
"runtimeHint": "bun",
"transport": {
"type": "stdio"
},
"packageArguments": [
{
"value": "run",
"type": "positional"
},
{
"value": "start:stdio",
"type": "positional"
}
],
"environmentVariables": [
{
"description": "Free API key from api.eia.gov. Required — all requests use this as the api_key query parameter.",
"isRequired": true,
"format": "string",
"name": "EIA_API_KEY"
},
{
"description": "Per-table TTL for DataCanvas dataframes in seconds.",
"format": "string",
"default": "86400",
"name": "EIA_DATASET_TTL_SECONDS"
},
{
"description": "Set to 'true' to expose eia_dataframe_drop for manual canvas cleanup.",
"format": "string",
"default": "false",
"name": "EIA_DATAFRAME_DROP_ENABLED"
},
{
"description": "Set to 'duckdb' to enable DataCanvas spillover for large query result sets (Node.js only).",
"format": "string",
"name": "CANVAS_PROVIDER_TYPE"
},
{
"description": "Sets the minimum log level for output (e.g., 'debug', 'info', 'warn').",
"format": "string",
"default": "info",
"name": "MCP_LOG_LEVEL"
}
]
},
{
"registryType": "npm",
"registryBaseUrl": "https://registry.npmjs.org",
"identifier": "@cyanheads/eia-mcp-server",
"version": "0.1.7",
"runtimeHint": "bun",
"transport": {
"type": "streamable-http",
"url": "http://localhost:3010/mcp"
},
"packageArguments": [
{
"value": "run",
"type": "positional"
},
{
"value": "start:http",
"type": "positional"
}
],
"environmentVariables": [
{
"description": "Free API key from api.eia.gov. Required — all requests use this as the api_key query parameter.",
"isRequired": true,
"format": "string",
"name": "EIA_API_KEY"
},
{
"description": "Per-table TTL for DataCanvas dataframes in seconds.",
"format": "string",
"default": "86400",
"name": "EIA_DATASET_TTL_SECONDS"
},
{
"description": "Set to 'true' to expose eia_dataframe_drop for manual canvas cleanup.",
"format": "string",
"default": "false",
"name": "EIA_DATAFRAME_DROP_ENABLED"
},
{
"description": "Set to 'duckdb' to enable DataCanvas spillover for large query result sets (Node.js only).",
"format": "string",
"name": "CANVAS_PROVIDER_TYPE"
},
{
"description": "The hostname for the HTTP server.",
"format": "string",
"default": "127.0.0.1",
"name": "MCP_HTTP_HOST"
},
{
"description": "The port to run the HTTP server on.",
"format": "string",
"default": "3010",
"name": "MCP_HTTP_PORT"
},
{
"description": "The endpoint path for the MCP server.",
"format": "string",
"default": "/mcp",
"name": "MCP_HTTP_ENDPOINT_PATH"
},
{
"description": "Public origin override for deployments behind a TLS-terminating reverse proxy (e.g. https://mcp.example.com).",
"format": "string",
"name": "MCP_PUBLIC_URL"
},
{
"description": "Authentication mode to use: 'none', 'jwt', or 'oauth'.",
"format": "string",
"default": "none",
"name": "MCP_AUTH_MODE"
},
{
"description": "Sets the minimum log level for output (e.g., 'debug', 'info', 'warn').",
"format": "string",
"default": "info",
"name": "MCP_LOG_LEVEL"
}
]
}
]
}
mcp
model-context-protocol
npm
By
Comments
Sign in to leave a comment