solar_resource

Pack: nrel · Endpoint: https://gateway.pipeworx.io/nrel/mcp

Solar resource (sunlight) for a location: average direct normal irradiance (DNI), global horizontal irradiance (GHI), and tilt-at-latitude radiation, annual plus monthly. Example: solar_resource({ lat: 40.0, lon: -105.25 })

Parameters

NameTypeRequiredDescription
latnumberyesLatitude in decimal degrees, e.g. 40.0
lonnumberyesLongitude in decimal degrees, e.g. -105.25
_apiKeystringnoOptional — 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":"solar_resource","arguments":{"lat":40,"lon":-105.25}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('solar_resource', {
  "lat": 40,
  "lon": -105.25
});

More examples

{
  "lat": 35.0895,
  "lon": -106.6055
}

Connect

Add this to your MCP client config:

{
  "mcpServers": {
    "nrel": {
      "url": "https://gateway.pipeworx.io/nrel/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build September 4, 2026