pypi solar-data-mcpstdioMITupdated 1mo ago
One MCP server that brings US open solar data to Claude, ChatGPT, and anything else that speaks MCP.
What can you do with Solar Data?
โ๏ธ solar-data-mcp
US solar data, agent-accessible.
One MCP server that brings US open solar data to Claude, ChatGPT, and anything else that speaks MCP.
Install one server โ uvx solar-data-mcp โ and your agent gets all 18 tools, 11
skills that teach it how to use them, and 4 ready-made report prompts, across four
data domains: production modeling, economics, market data, and forecasts. Every tool
returns the same envelope โ data + units + source + assumptions + warnings โ
so the agent always knows what a number means, where it came from, and which defaults
were injected on its behalf.
What can you ask it?
- Thinking about solar at home โ "Would a 6 kW system pay off at my house?" ยท "Is this $21,000 quote fair?" ยท "What will my array generate tomorrow?"
- Selling or installing solar โ "Build a proposal for this customer" ยท "How long does permitting take in Phoenix?" ยท "Where should we expand next?"
- Studying the market โ "Brief me on the Texas solar market" ยท "How have installed prices trended in Colorado?" ยท "Which big plants have batteries?"
Behind each question the agent picks the right tools (or a skill routes it), and every number comes back with units, a source, and the assumptions made on your behalf.
Quickstart
-
Get a free NREL API key โ https://developer.nlr.gov/signup/ (or use
DEMO_KEYto try it out โ 10 requests/hour). -
Add the server to your agent โ snippets for every major agent below; for Claude Desktop, merge this into
claude_desktop_config.json(full example inexamples/):{ "mcpServers": { "solar-data": { "command": "uvx", "args": ["solar-data-mcp"], "env": { "NREL_API_KEY": "YOUR_KEY_HERE", "OPENEI_API_KEY": "YOUR_KEY_HERE", "EIA_API_KEY": "YOUR_KEY_HERE" } } } }Only
NREL_API_KEYis needed to start: the server runs with any subset of keys, and a tool missing its key returns setup instructions instead of failing silently. -
Restart your client and ask โ try "Compare annual production for an 8 kW system in Mesa, AZ at 10ยฐ vs 25ยฐ tilt."
Verify keys and connectivity anytime:
$ uvx solar-data-mcp doctor
Add it to your agent
Claude Code
$ claude mcp add solar-data \
--env NREL_API_KEY=YOUR_KEY --env OPENEI_API_KEY=YOUR_KEY --env EIA_API_KEY=YOUR_KEY \
-- uvx solar-data-mcp
(or commit the quickstart JSON to your project's .mcp.json)
Codex CLI โ ~/.codex/config.toml:
[mcp_servers.solar-data]
command = "uvx"
args = ["solar-data-mcp"]
[mcp_servers.solar-data.env]
NREL_API_KEY = "YOUR_KEY_HERE"
OPENEI_API_KEY = "YOUR_KEY_HERE"
EIA_API_KEY = "YOUR_KEY_HERE"
(or codex mcp add solar-data --env NREL_API_KEY=YOUR_KEY -- uvx solar-data-mcp;
use env_vars = ["NREL_API_KEY"] to forward keys from your shell instead of
hardcoding them)
OpenCode โ opencode.json in your project (or ~/.config/opencode/opencode.json):
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"solar-data": {
"type": "local",
"command": ["uvx", "solar-data-mcp"],
"enabled": true,
"environment": {
"NREL_API_KEY": "YOUR_KEY_HERE",
"OPENEI_API_KEY": "YOUR_KEY_HERE",
"EIA_API_KEY": "YOUR_KEY_HERE"
}
}
}
}
Hermes โ ~/.hermes/config.yaml, then /reload-mcp:
mcp_servers:
solar-data:
command: "uvx"
args: ["solar-data-mcp"]
env:
NREL_API_KEY: "YOUR_KEY_HERE"
OPENEI_API_KEY: "YOUR_KEY_HERE"
EIA_API_KEY: "YOUR_KEY_HERE"
Claude Desktop โ the quickstart JSON above.
Anything else that speaks MCP (stdio) โ command uvx, args ["solar-data-mcp"],
keys in the env block.
API keys
All free, and every one optional โ the server starts with none set.
| Env var | Unlocks | Get one |
|---|---|---|
NREL_API_KEY |
estimate_production, get_solar_resource, compare_orientations, size_system_for_target, estimate_roi, compare_forecast_to_model | https://developer.nlr.gov/signup/ |
OPENEI_API_KEY |
lookup_tariffs | https://openei.org/services/api/signup/ |
EIA_API_KEY |
get_electricity_prices | https://www.eia.gov/opendata/register.php |
AHJ_REGISTRY_TOKEN (optional) |
identify_ahj | email support@sunspec.org |
Market tools (USPVDB, Tracking the Sun, SolarTRACE) and forecasts need no key.
Full forecast output additionally needs the Quartz model installed into a persistent
environment (see packages/solar-forecast/);
without it the forecast tools return install instructions.
Servers
uvx solar-data-mcp โ the install above โ serves all four domains on one stdio entry.
Each domain also ships as a standalone server:
| Domain | Data | Standalone server |
|---|---|---|
| Production | PVWatts v8 modeling, NSRDB irradiance | uvx --from solar-data-mcp-nrel nrel-solar-mcp |
| Economics | URDB tariffs, EIA prices, federal ITC + DSIRE | uvx --from solar-data-mcp-economics solar-economics-mcp |
| Market | SolarTRACE, Tracking the Sun, USPVDB, AHJ lookup | uvx --from solar-data-mcp-market solar-market-mcp |
| Forecast | Quartz open-source forecasts (OCF) | uvx --from solar-data-mcp-forecast solar-forecast-mcp |
Per-server config:
examples/claude_desktop_config.per-server.json.
โ ๏ธ Run the combined
solar-dataserver or the per-domain servers, not both โ and neversolar-economicsandsolar-marketside by side. Both open the same local DuckDB bulk store, which allows only one process at a time.
Tools
Eighteen tools across four domains; parameter details live in each tool's docstring and each domain package's README.
| Domain | Ask it about | Tools |
|---|---|---|
| Production | output, sunniness, sizing, roof orientation | estimate_production, get_solar_resource, compare_orientations, size_system_for_target |
| Economics | tariffs, electricity prices, incentives, payback | lookup_tariffs, get_electricity_prices, get_incentives, estimate_roi, sync_incentives |
| Market | installed $/W, permitting times, utility-scale plants | query_installed_systems, get_permitting_timelines, find_utility_scale_projects, identify_ahj, market_snapshot, sync_* |
| Forecast | tomorrow's output, "is today unusual?" | forecast_generation, compare_forecast_to_model |
Skills & reports
Skills are procedures shipped inside the combined server that teach an agent to chain
the tools correctly โ ordering, sync prerequisites, honest reporting. They're MCP
resources: skill://solar/index routes by question shape, skill://solar/<name> is
the procedure. Grouped by who's asking:
- Homeowners โ site assessment, quote review, performance check
- Installers โ proposal builder, territory expansion
- Analysts โ market brief, pricing analysis, utility-scale scout, incentive scan
- Cross-cutting โ data sync (bulk snapshots), data conventions (envelope literacy)
Four of these render reports with a fixed document shape and are also exposed as
MCP prompts your host surfaces natively โ market_brief, site_assessment,
quote_review, proposal_builder (in Claude Code: /mcp__solar-data__market_brief).
Full catalog, routing design, and report templates: docs/skills.md.
Development
$ git clone https://github.com/hoodsy/solar-data-mcp && cd solar-data-mcp
$ uv sync # install the workspace
$ uv run pytest # fixture replay only, no network
Layout: packages/core (shared HTTP client, cache, envelope), one package per domain
server, and packages/solar-data-mcp (the umbrella that mounts all four on one stdio
entry). Smallest possible client:
examples/example_client.py.
License
MIT. Per-source data licensing/attribution is exposed as MCP resources
(source://<name>/license).
Install
Add Solar Data to your client. Pick the one you use.
claude mcp add solar-data-mcp -- uvx solar-data-mcpcodex mcp add solar-data-mcp -- uvx solar-data-mcpamp mcp add solar-data-mcp -- uvx solar-data-mcp{
"mcpServers": {
"solar-data-mcp": {
"command": "uvx",
"args": [
"solar-data-mcp"
]
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"solar-data-mcp": {
"command": "uvx",
"args": [
"solar-data-mcp"
]
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
code --add-mcp '{"name":"solar-data-mcp","command":"uvx","args":["solar-data-mcp"]}'Or add the block manually to `.vscode/mcp.json` under `servers`.
{
"mcpServers": {
"solar-data-mcp": {
"command": "uvx",
"args": [
"solar-data-mcp"
]
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
{
"mcpServers": {
"solar-data-mcp": {
"command": "uvx",
"args": [
"solar-data-mcp"
]
}
}
}Add to `cline_mcp_settings.json` via the MCP Servers panel.
{
"mcpServers": {
"solar-data-mcp": {
"command": "uvx",
"args": [
"solar-data-mcp"
]
}
}
}Add to `~/.gemini/settings.json`.
{
"mcpServers": {
"solar-data-mcp": {
"type": "local",
"command": "uvx",
"args": [
"solar-data-mcp"
],
"tools": [
"*"
]
}
}
}Add to `~/.copilot/mcp-config.json`, or run `/mcp add` inside the CLI.
{
"context_servers": {
"solar-data-mcp": {
"command": {
"path": "uvx",
"args": [
"solar-data-mcp"
]
}
}
}
}Add to your Zed `settings.json`.
uvx solar-data-mcpRun `goose configure`, choose **Add Extension โ Command-line Extension**, and paste this command.
Score
39 / 100
Incomplete
- Documentation25/25
- Maintenance16/25
- Trust13/20
- Capability0/15
- Install experience12/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 36 days ago
- Has a release history
- Repository is not archived
- Licensed MIT
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 0 tool(s) documented
- Provides prompt templates
- Provides resources
- 12 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint โ no local install
Version history
| Versions | Published |
|---|---|
| 0.1.1Latest | Jul 6, 2026 |