Skip to content
SkilledDragonEngineering Intelligence
MinilabKeylessOctober 21, 2026

solarscope-mcp sizes a roof and computes solar payback only from prices you supply

An MCP server and CLI that turns Google Solar API roof data into system sizes, cost and payback from your tariff. The keyless run uses invented buildings; no real Solar API response was observed.

By David Discua

Measured in the lab

6
synthetic scenarios
6/6
MCP output equal to service
4
inputs labelled example
0
real Solar responses observed
  • No prices given returned the verdict needs-prices
  • Placeholder prices carried source example in every row
  • Google's 204.35 x monthly bill factor reproduced as 204.35
  • Flat roof at default HIGH quality returned google_NOT_FOUND
  • A 3-panel shed returned no-usable-layout

From reports/solarscope-mcp.json · run on October 21, 2026. Keyless run of the real MCP server over synthetic fixtures: invented buildings and invented API financial analyses in the documented response shape, not real roofs or prices

How it is wired

roof_potentialclosest buildingJSON + MarkdownAgentsolarscope-mcpyour prices onlyGoogle Solar APIfindClosestProposaloptions + verdict

01/03Your agent asks whether a roof is worth solar.

solarscope-mcp is an MCP server and CLI that geocodes an address, asks the Google Solar API what fits on the closest roof, and turns that into a few system sizes with yearly energy, cost, incentives and payback computed from your tariff and install cost. When the API returns its own financial analysis, the tool shows it in a separate column. Every number below comes from invented buildings in the documented response shape, since no real Solar API response was observed in this lab. Read the run as a test of the arithmetic and the labels.

The catch

The live Solar path was not run in this lab, so buildingInsights:findClosest is tested only against synthetic responses.

The tool has no hidden price defaults. Without a tariff and an install cost you get sizes, energy and the verdict needs-prices. The --example-inputs flag fills round placeholders the lab chose for demos (0.15 per kWh, 3.00 per W, no incentive), tags each with source: "example", and starts the verdict with "On EXAMPLE inputs (not real prices)". The math uses one flat tariff and one cost per watt, with no time-of-use rates, loans, taxes or inverter replacement, so it is not a quote. The API returns the building closest to the geocoded point, which can be the wrong one, so the output reports the distance and adds a note above 30 m.

What we ran (keyless)

bun install --frozen-lockfile
bun run src/cli.ts roof --address "100 Example Ave, Sampletown" --example-inputs --fixtures
bun run src/cli.ts roof --address "100 Example Ave, Sampletown" --tariff 0.25 --cost-per-watt 2.8 \
  --incentive-pct 10 --monthly-bill 120 --format json --fixtures
bun run report

From reports/solarscope-mcp.json, run on October 21, 2026 over synthetic fixtures:

ScenarioRecommendedYr-1 AC kWhNet costPayback (yrs)Verdict
sizes only36 panels / 14.4 kW14,680--needs-prices
example inputs9 panels / 3.6 kW4,20810,80015.2pays-back-late
typed prices (0.25/kWh, 2.80/W, 10%)36 panels / 14.4 kW14,68036,2889.2pays-back-early
typed prices + 6000 kWh/yr usage12 panels / 4.8 kW5,57212,0968.2pays-back-early
flat roof, MEDIUM imagery18 panels / 7.2 kW9,36021,60013.8pays-back-late
shed (3 panels fit)----no-usable-layout

The MCP tool's JSON and Markdown matched the service output in all six. Google's US method page says the 20-year cost without solar is 204.35 x monthlyBill, and src/finance.ts with the page's constants gives 204.35. The flat-roof address at the default HIGH imagery quality returned google_NOT_FOUND from a synthetic 404 and answered at MEDIUM. A budget of 3 calls allowed one address check and refused the second.

How it is wired

Layouts come from solarPanelConfigs: 25%, 50% and 75% of the largest, the largest, the largest whose first-year output stays within your usage, and the layout the API's own analysis picked. kW is panels times panelCapacityWatts over 1000, and year-1 AC energy is yearlyEnergyDcKwh x 0.85. Output declines by 0.995 a year, savings rise by 1.022 a year, and NPV discounts by 1.04, the constants Google lists for its own US analysis. Each is labelled google-us-method and can be overridden. The recommended option has the highest NPV. Every result carries "Source: Includes solar data from Google" and "Includes data from Google Maps".

Where Google's docs disagree, the lab sends LOW imagery quality as the reference enum lists, though a guide sample uses BASE, and it applies the DC to AC derate once where the US method page applies it twice.

Minilab (open source)

The upstream is Google's Solar API, so there is no repo to star. To go live, enable the Solar API and Geocoding API in your own Cloud project, set GOOGLE_MAPS_API_KEY, pass your real tariff and installer quote, and run bun run record to save one response for the shape check in tests/live.

Run it yourself

SkilledDragonCorp/solarscope-mcp

Clone, install and run the report with no API keys. The numbers above are what that run writes.

bun install --frozen-lockfile && bun run src/cli.ts roof --address "100 Example Ave, Sampletown" --example-inputs --fixtures

SkilledDragon is not affiliated with Google LLC. Google Maps Platform, Solar API and Geocoding API are trademarks of Google LLC. Numbers come from synthetic fixtures; this is not a quote or financial advice.

All labs