nasa-power-mcp-server
Provides tools for querying NASA POWER historical solar and meteorological observations: point time series (hourly/daily/monthly), point climatology, single-parameter native-grid region queries, and side-by-side comparison of 2–10 labeled locations. Also exposes parameter dictionary search, reference data (presets, communities, coverage, wind surfaces), and a staged-data workflow for describing and running read-only SQL queries over larger result sets, with source units and provenance preserved.
This server has a remotely hosted endpoint. Open its connector listing for connection details, authentication requirements, and setup instructions:
Public Hosted Server: https://nasa-power.caseyjhand.com/mcp
Overview
NASA POWER historical solar and meteorological observations for renewable energy, sustainable buildings and agroclimatology. Retrieve point time series and climatology, inspect native-grid regions, and compare labeled locations with source units and provenance. No NASA account or API key is required.
Tools
Tool | Description |
| Hourly, daily or monthly observations at one point |
| Monthly and annual point climatology, including tilted solar profiles |
| One parameter across a bounded native-grid region |
| Shared observations and seasonal summaries for 2–10 labeled points |
| Search the complete community/resolution parameter dictionary |
| Presets, communities, coverage, missing values, wind surfaces and dataframe guidance |
| Inspect staged schemas, units, expiry and provenance |
| Run bounded read-only SQL against an explicit canvas token |
| Opt-in removal of one named staged table |
Eight tools are enabled by default; NASA_POWER_DATAFRAME_DROP_ENABLED=true enables the ninth.
Skills
Skill | Description |
| Which tool answers a typical-month versus a dated question, grid-cell size, data freshness, rate versus total units, degree days, the one-data-call-at-a-time gate, and SQL over staged tables |
The skill ships in skills/nasa-power-guide/SKILL.md. Plugin hosts load it from the package, and MCP clients that support the Skills extension read it from the server as skill://nasa-power-guide/SKILL.md.
Related MCP server: @cyanheads/eia-energy-mcp-server
Capability reference
nasa_power_get_timeseries tool
latitude/longitudeandtemporalResolution:hourlyanddailytake an inclusivestartDate/endDate,monthlytakesstartYear/endYear.selectionis a namedpreset(defaultsolar_pv) or explicitparameters, at most 15 effective codes hourly and 20 otherwise, corrections included.community(RE,SB,AG; defaultRE),units(metric,imperial) andtimeStandard(LST,UTC). OptionalsiteElevationaddsPSC; pairedwindElevation(10–300 meters) andwindSurfaceaddWSC. Usenasa_power_list_referencetopicwind_surfacesfor all 17 canonical NASA aliases, includingairportgrass,airporticeandvegtype_1; vegetation underscores are retained.Returns
metadata,parameters,expansions,omittedParameters,summaries,rows, an exactrowCountanddataset(null unless staged). Optionalcanvas_idreuses a canvas when staging is needed.When the response still overflows the budget without its observations (wide selections with hour-of-day groups), the summaries stage beside the observations as
summaryDataset;summarieskeeps one entry andsummaryCountgives the exact total. Query the table insummaryIndexorder; SQLunits: nullrestores an omitted source unit.Codes NASA lists but does not serve at the requested resolution (
GDD*at monthly and climatology,*_HR_MAXand*_HR_MINat monthly) fail withunsupported_parameterbefore any data request, naming the codes and the resolution that serves them. This holds for every data tool.
nasa_power_get_climatology tool
Point coordinates with the same selection and corrections; optional
startYearandendYeartogether, otherwise the source product range. NotemporalResolutioninput.Small profiles remain inline; larger profiles return a bounded preview and complete
datasethandle, and oversized summaries stage assummaryDatasetwith an exactsummaryCount, as innasa_power_get_timeseries. Pass optionalcanvas_idto reuse an existing workspace. Without DuckDB, an oversized result is refused withcanvas_required, which lists calls that each fit inline: parameter groups for a wide selection.Group codes list only their actually returned members in
expansions, on every data tool:SI_EF_TILTED_SURFACEand the distinctSI_TILTED_AVG,SI_TILTED_MIN,SI_TILTED_MAXgroups (numeric angles and N/S orientation text included), theSI_TRACKER_AVG,SI_TRACKER_MIN,SI_TRACKER_MAXgroups, hour-of-day*_HRgroups (members*_00…*_23, monthly and climatology) and*_HR_MAX/*_HR_MINgroups (members*_00_MAX…*_23_MAX, climatology). A group is omitted only when none of its members return.
nasa_power_get_region tool
One
parameterover orderedlatitudeMin/latitudeMaxandlongitudeMin/longitudeMax, each axis spanning 2–10 degrees (invalid_regionotherwise); split antimeridian regions into separate calls.temporalResolutionisdaily,monthlyorclimatology; point corrections are unsupported.Daily regions require date bounds and monthly regions require year bounds. Regional climatology accepts no year fields and reports the source's precomputed period; use
nasa_power_get_climatologyfor a custom point year window.Returns cell-tagged
rows,cellCountand per-periodsummarieswith equal-weight cellmin/mean/max, not area-weighted. Optionalcanvas_idreuses a canvas for staging.Oversized summary envelopes return
summaryDatasetwith all cross-cell summaries, exactsummaryCountand a whole-record inline preview. Query the table insummaryIndexorder; SQLunits: nullrestores an omitted source unit. Observations and summaries register together and retain linked provenance.
nasa_power_compare_locations tool
2–10
locations, each with coordinates and alabelof 1–120 characters, sharing one selection, corrections and window.temporalResolutiondefaults toclimatology;hourly,dailyandmonthlyalso work.Returns successful
locationswith per-site provenance, location-taggedrows, annual and calendar-seasonsummaries, andfailedentries withpartial: truewhen some sites fail; all-site failure returnsall_locations_failed.possibleSharedGridCellflags sites that may share a grid cell.Optional
sort(parameter,directionasc/desc) orders by a selected numeric parameter with known identical units. Optionalcanvas_idreuses a canvas for staging.When summaries exceed the response budget,
summaryDatasets.bucketsandsummaryDatasets.locationspoint to complete SQL tables; inline summaries become whole-record previews and each location includessummaryCount. Query insummaryIndexorder; the location-summary table includeslocationId. SQLunits: nullrepresents an omitted source unit, not a known unit.
nasa_power_search_parameters tool
community(defaultRE),temporalResolution(defaultdaily), optionalfilter(up to 256 characters),offsetand positive integerlimit(default 20, effective cap 100 with a notice when capped).Every case-insensitive
filtertoken must match a code, name or definition across the complete dictionary before sorted pagination; a blank filter browses it.entries,total,hasMoreandtruncateddescribe the page.Codes NASA lists but does not serve at the selected resolution are left out before counting and paging; a
noticenames any the filter matched, with the resolution to request instead.
nasa_power_list_reference tool
topic:presets(default),communities,coverage,missing_data,wind_surfacesordataframes.Returns typed
entries,guidance,documentationUrlsandverifiedOn. Presets aresolar_pv,wind_turbine,building_hvac,agroclimatologyandwater_balance;building_hvacis unavailable hourly.agroclimatologyaddsT2M_MAXandT2M_MINoutside hourly resolution; monthly/climatology extremes remain source aggregates, without reconstructed daily records or calculated growing degree days. Growing degree days (GDD*) are served at daily resolution only.
nasa_power_dataframe_describe tool
Required
canvas_idfrom a producing response; optionaltablelimits inspection to one table.Returns canvas and table expiry, SQL columns with source units, and original scientific
provenance. Only tables in the supplied canvas are visible.
nasa_power_dataframe_query tool
Required
canvas_idand one read-only SELECT insql(up to 16,384 characters); positive integerrowLimitdefaults to 100 and is capped at 1,000, with an effective-cap notice for larger requests. Files, writes and system catalogs are denied.Returns
columns,rows,rowCount,shownCount,truncatedandcountSemantics(exactormaterialized_prefix). SQL has a 10-second deadline; the structured and rendered outputs each must fit 40,000 characters.SQL mistakes retain bounded identifiers or conversion values with recovery guidance. Operational failures use generic messages; engine paths and native causes are excluded.
nasa_power_dataframe_drop tool
Required
canvas_idand exacttable; enabled only byNASA_POWER_DATAFRAME_DROP_ENABLED=true.Returns
dropped: falsefor an absent table while other tables keep the canvas alive. Removing the final table also retires its canvas and frees its slot; subsequent describe, query or drop calls returncanvas_not_found.
Features
Built on @cyanheads/mcp-ts-core: stdio and Streamable HTTP transports, pluggable auth (none / jwt / oauth), swappable storage (in-memory, filesystem, Supabase, Cloudflare KV/R2/D1), structured logging with optional OpenTelemetry tracing.
POWER-specific:
Historical gridded observations, rather than site measurements or forecasts. Meteorological coverage starts in 1981, solar in 1984 and hourly in 2001; source configuration and publication latency further constrain availability.
One active upstream request, starts at least two seconds apart, bounded retries and a 55-second overall call deadline. NASA publishes no numeric request allowance. References cache for 24 hours and observations for 10 minutes.
Source fill values become
null; zero remains a measurement. Monthly annual keys and climatologyANNremain distinct from monthly observations. LST labels have no UTC offset.T_ZONESandTM_ZONESretain numeric climate-zone codes withvalueKind: categorical, including in SQL column metadata. They have no arithmetic summaries or comparison sort metrics; explicit numeric sorting by either is rejected.
Agent-friendly output:
Scientific provenance — source API version, dataset identifiers, endpoint and access time accompany results; preserve returned units and attribute NASA POWER.
Explicit gaps —
omittedParametersdistinguishes an absent series from fill values; arithmetic observation means and calendar-season buckets are not climate normals, annual yields or water balances.Complete datasets — inline outputs each fit 40,000 characters. Larger datasets stage all rows with a preview of at most 20 rows and a
datasethandle; unsupported requests fail with narrowing guidance, and oversized ones without DuckDB fail withcanvas_requiredand a list of calls that each fit inline, instead of returning a capped source prefix.
Staging requires DuckDB and supports at most 250,000 rows, 64 parameter columns and 32 MiB of serialized rows per dataset. Canvases are process-local capabilities: pass the returned token explicitly and route later calls to the same process. Tables expire after 30 minutes with eight tables per canvas. Defaults are one idle hour and six absolute hours per canvas, four canvases per tenant, eight per process, and 256 MiB engine memory per canvas. Operators can size canvas capacity, memory and lifetime below; engine memory does not bound total RSS or temporary disk.
Getting started
Connect to the hosted instance, no install:
claude mcp add --transport http nasa-power-mcp-server https://nasa-power.caseyjhand.com/mcpOr run it locally:
claude mcp add nasa-power-mcp-server -- npx -y @cyanheads/nasa-power-mcp-serverFor other clients, add this to the MCP config file:
{
"mcpServers": {
"nasa-power-mcp-server": {
"command": "npx",
"args": ["-y", "@cyanheads/nasa-power-mcp-server"]
}
}
}npm and Docker installs stage large results in DuckDB for SQL by default; set CANVAS_PROVIDER_TYPE=none to keep every result inline. The Claude Desktop bundle is inline-only: send the calls an oversized request's canvas_required refusal lists, or use npm or Docker for analytics. No NASA account or API key is required. For Docker or a source build, see Running the server.
Configuration
Variable | Description | Default |
| Expose explicit staged-table removal. |
|
|
|
|
| Per-canvas engine memory, integer ≥64 MiB; not total RSS or temporary disk. |
|
| Positive tenant canvas cap; auth-none callers share one tenant. |
|
| Positive process canvas cap, including pending and failed cleanup reservations. |
|
| Positive sliding canvas lifetime in milliseconds. |
|
| Absolute canvas lifetime in milliseconds, at least the sliding TTL. |
|
|
|
|
| HTTP bind address and port. |
|
|
|
|
| Minimum log level. |
|
| Enable OpenTelemetry. |
|
Unset, blank and whole-value placeholder settings retain these defaults. Invalid sizing fails startup. Byte budgets, table limits and producer concurrency remain fixed independently of operator canvas sizing. See .env.example for optional transport, authentication, storage, logging and telemetry settings.
Running the server
Local development
Requires Bun v1.4.0 or higher (or Node.js v24+).
Clone and install:
git clone https://github.com/cyanheads/nasa-power-mcp-server.git cd nasa-power-mcp-server && bun install cp .env.example .env # optional: transport, logging or canvas settingsBuild and run the production version:
# One-time build bun run rebuild # Run the built server bun run start:http # or bun run start:stdioRun checks and tests:
bun run devcheck # Lints, formats, type-checks, and more bun run test # Runs the test suite
Docker
docker run --rm -p 127.0.0.1:3010:3010 ghcr.io/cyanheads/nasa-power-mcp-server:latestThe image defaults to HTTP on port 3010 in stateless session mode and logs to /var/log/nasa-power-mcp-server. To run it over stdio from an MCP client, use "command": "docker" with "args": ["run", "-i", "--rm", "-e", "MCP_TRANSPORT_TYPE=stdio", "ghcr.io/cyanheads/nasa-power-mcp-server:latest"]. To build locally, docker build -t nasa-power-mcp-server .; OpenTelemetry peer dependencies are installed by default — build with --build-arg OTEL_ENABLED=false to omit them. For a client outside loopback, configure authentication and TLS at the deployment boundary.
Project structure
Path | Purpose |
| Nine tool registrations, the published skill tree, bounded canvas setup and service shutdown |
| The |
| Workload limits and server-specific environment parsing |
| Tool contracts and comparison orchestration |
| Paced NASA client, normalization, presets and scientific summaries |
| Explicit-token staging, SQL, provenance and admission limits |
| Build, validation, packaging and release tooling |
| Offline contracts and native integration tests |
Development guide
See CLAUDE.md for development guidelines and architectural rules. The short version:
Handlers throw, framework catches — no
try/catchin tool logicUse
ctx.logfor logging andctx.signalfor cancellationRegister new tools in the
createApp()array insrc/index.tsWrap external API calls: validate raw → normalize to domain type → return output schema; never fabricate missing fields, and preserve source units and annual-period distinctions
content[]andstructuredContentcarry the same complete data
Contributing
Issues are welcome. Run checks and tests before submitting:
bun run devcheck
bun run testLicense
This project is licensed under the Apache 2.0 License. See the LICENSE file for details.
This server cannot be deployed
Maintenance
Related MCP Connectors
Query SEC EDGAR filings, XBRL financials, and company data via MCP. STDIO or Streamable HTTP.
Query, join, profile, clean and convert CSV/JSON/Parquet with server-side DuckDB over MCP.
EnergyPlus weather files (EPW, DDY, STAT) and design conditions for any site, OpenStudio-MCP ready.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceMCP server for NASA POWER climate data, offering a climatology tool to retrieve long-term monthly averages for any coordinate. Supports natural language queries through the Pipeworx gateway.475 npmMIT
- AlicenseNot gradedqualityBmaintenanceBrowse and query the U.S. Energy Information Administration API v2 — electricity, petroleum, natural gas, coal, forecasts, and more via MCP. STDIO or Streamable HTTP.603 npm3Apache 2.0
- AlicenseNot gradedqualityBmaintenanceGeocode places, fetch global weather forecasts, ERA5 historical climate, marine conditions, air quality, and terrain elevation via MCP. Provides 11 tools over STDIO or Streamable HTTP.362 npm13Apache 2.0
- AlicenseNot gradedqualityBmaintenanceQuery NOAA SWPC space weather data including geomagnetic storm scales, Kp index, aurora forecasts, solar wind, solar activity, and alerts via MCP. Supports STDIO and Streamable HTTP transports.233 npm4Apache 2.0