pvwatts-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
pvwatts-mcp
MCP server wrapping NLR PVWatts v8 for the Watts for Water project. Turns a parcel centroid + acreage into annual / monthly generation estimates suitable for revenue modeling and infographic headline numbers.
See spec.md for the design doc.
Tools
Tool | Purpose |
| Faithful wrapper around PVWatts v8. All parameters exposed; project defaults applied when omitted. |
| Convenience: acreage + centroid → MW DC → annual MWh, capacity factor, indicative revenue. |
Related MCP server: Solar Sathi MCP Server
Setup
npm installGet a free NLR API key at developer.nlr.gov/signup, then store it as a Worker secret:
npx wrangler secret put NLR_API_KEYFor local development with wrangler dev, put the same key in a .dev.vars file at the repo root (gitignored):
NLR_API_KEY=your-key-hereRunning locally
npm run devWorker listens at http://localhost:8787. Test endpoints:
GET /— plain-text usage hintPOST /mcp— streamable HTTP transport (recommended)GET /sse— legacy SSE transport
Inspect with the MCP Inspector:
npx @modelcontextprotocol/inspector@latest
# Then open the URL it prints and connect to http://localhost:8787/mcpDeploying
npx wrangler deployThen connect from Claude Desktop via mcp-remote:
{
"mcpServers": {
"pvwatts": {
"command": "npx",
"args": ["mcp-remote", "https://pvwatts-mcp.<your-account>.workers.dev/mcp"]
}
}
}Acceptance test
The MCP is ready to ship when this call returns sane numbers:
// Tool: solar_potential_for_acres
{
"lat": 41.72,
"lon": -111.83, // Cache Valley, Utah
"acres": 80,
"tracker": false
}Expected (per spec.md § Acceptance test, within ~10%):
system_capacity_mw_dc: 10.0annual.generation_mwh: 21,000 – 24,000annual.capacity_factor_pct: 24 – 26annual.indicative_revenue_usd: ~$735K – $840K at $35/MWhMonthly trough in Dec/Jan (~1,000 MWh), peak in Jun/Jul (~2,400 MWh)
Re-running with tracker=true should bump annual generation to 25,000–28,000 MWh and capacity factor to ~28–30%, validating the array-type plumbing.
Layout
src/
index.ts Worker entrypoint — routes /mcp and /sse
mcp.ts McpAgent subclass; tool registrations
pvwatts.ts NLR adapter — fetch, retry, cache, error mapping
defaults.ts Utah utility-scale assumption set + caveat stringsThis server cannot be deployed
Maintenance
Related MCP Connectors
Screen US sites for solar: sun, grid distance, FEMA flood risk. Save sites, create PDF reports.
US parcel records plus utilities, power, grid, environmental and logistics data by address or point.
161Rooftop solar potential, RGE installer search and quote requests. France only, no API key.
Flood, wildfire, soils, terrain, power grid, utilities and parcels for any US location, sourced.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP server that enables AI assistants to look up solar permitting authorities, estimate solar production via PVWatts, and retrieve irradiance data. It streamlines the creation of solar-aware workflows by integrating industry-standard APIs like NREL.MIT
- FlicenseNot gradedqualityDmaintenanceEnables solar energy feasibility analysis and ROI calculation for Indian users, including irradiance lookup, capacity estimation, subsidy calculation, and environmental impact assessment.-
- AlicenseNot gradedqualityBmaintenanceProvides free energy intelligence APIs for AI agents: solar production estimates, US clean-energy incentives by ZIP, home Energy Node Scores, contractor search, and consented installer routing.MIT
- AlicenseAqualityFmaintenanceEnables AI assistants to assess any parcel for micro-farm viability (climate, water, farmland context, access, flood risk) and dwelling feasibility, and to find real land for sale from free, keyless public data sources.51MIT