utility_rates
Pack: nrel · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)
No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/utility_rates for the schema, then POST the same URL with its arguments for the data.
Electricity utility rates ($/kWh) for a location: the serving utility plus average residential, commercial, and industrial rates. Example: utility_rates({ lat: 40.0, lon: -105.25 })
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
lat | number | yes | Latitude in decimal degrees, e.g. 40.0 |
lon | number | yes | Longitude in decimal degrees, e.g. -105.25 |
_apiKey | string | no | Optional — your own NREL / api.data.gov API key for higher limits; omit to use the shared Pipeworx key. |
Example call
Arguments
{
"lat": 40,
"lon": -105.25
}
curl
curl -X POST https://gateway.pipeworx.io/nrel/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"utility_rates","arguments":{"lat":40,"lon":-105.25}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('utility_rates', {
"lat": 40,
"lon": -105.25
});
More examples
{
"lat": 37.7749,
"lon": -122.4194
}
Connect
Add this to your MCP client config — every tool in the catalog, including this one:
{
"mcpServers": {
"pipeworx": {
"url": "https://pipeworx.io/mcp"
}
}
}
Connect to just the nrel pack
{
"mcpServers": {
"nrel": {
"url": "https://gateway.pipeworx.io/nrel/mcp"
}
}
}
See Getting Started for client-specific install steps.