Sunsynk Solar MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Sunsynk Solar MCP Server How much did my battery charge overnight?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Sunsynk Solar MCP Server
A read-only Model Context Protocol server that gives Claude (or any MCP client) access to your Sunsynk inverter, battery and solar data through the Sunsynk Connect cloud API (api.sunsynk.net).
Ask Claude things like "How much did the battery charge overnight?" or "Review my time-of-use settings against my tariff". It pulls live data, settings and history, and answers from them.
Unofficial project. This is not affiliated with, endorsed by or supported by Sunsynk. It uses the undocumented API behind the Sunsynk Connect app, which may change or break without notice. Use at your own risk.
Contents
Related MCP server: fronius-mcp
What it can and can't do
Can:
List your plants (sites) and inverters
Show a real-time snapshot: PV, battery SOC/power/temperature, grid import/export and house load
Show the power-flow diagram data from the app
Pull energy history by day, month, year or lifetime
Read inverter configuration: work mode, time-of-use slots, SOC targets, grid charge and battery limits
Make raw read-only GET calls to other
api/v1/endpoints
Can't:
Change any setting. There are no write tools, by design. Claude can recommend settings, but you apply them in the Sunsynk app or portal.
Log in when the account has MFA / verification codes enabled (see Troubleshooting)
Talk to the inverter locally. Everything goes through the Sunsynk cloud, so data is only as fresh as the dongle's uploads (typically every few minutes).
Requirements
Claude Desktop (or another MCP client that supports stdio servers)
Node.js 18+ (only needed if you run from source; the
.mcpbbundle includes its runtime needs)A Sunsynk Connect account (the same login as the Sunsynk app) with the inverter registered to it
Installation
Option A: Claude Desktop extension (easiest)
Download
sunsynk.mcpbfrom the Releases page.Double-click it, or in Claude Desktop go to Settings → Extensions and install from file.
Enter your Sunsynk Connect email and password when prompted. They're stored in Claude Desktop's secure credential store, not in a file.
Restart Claude Desktop if the tools don't appear straight away.
Option B: Run from source
git clone https://github.com/hpguru123/sunsynk-mcp.git
cd sunsynk-mcp
npm installAdd it to your MCP client config, for example claude_desktop_config.json:
{
"mcpServers": {
"sunsynk": {
"command": "node",
"args": ["/path/to/sunsynk-mcp/server/index.js"],
"env": {
"SUNSYNK_USERNAME": "you@example.com",
"SUNSYNK_PASSWORD": "your-password"
}
}
}
}Building the extension yourself
npm install
npm run pack # produces sunsynk.mcpb using @anthropic-ai/mcpbConfiguration
Setting / env var | Required | Description |
| Yes | Your Sunsynk Connect login email |
| Yes | Your Sunsynk Connect password |
| No | Time zone used for "today" defaults (the extension sets |
| No | Override the API host (default |
When installed as an extension, Claude Desktop prompts for the username and password and passes them in as these variables.
A read-only viewer account is a good idea if your installer can set one up. That limits the damage if the credentials ever leak.
Command reference
Most tools default to the first plant or inverter on the account, so on a single-inverter system you can usually omit IDs. If you have several, run sunsynk_list_inverters / sunsynk_list_plants first and pass the sn or plant_id.
Tip: some setups need the serial passed explicitly. If a call returns nothing, get the
snfromsunsynk_list_invertersand pass it.
sunsynk_list_plants
Lists the sites on your account.
Parameter | Type | Required | Notes |
none |
Returns: plant id, name, current PV power (pac, W), today's and lifetime generation (kWh), status.
sunsynk_list_inverters
Lists inverters on the account. Start here to get the serial number (sn) the other tools use.
Parameter | Type | Required | Notes |
none |
Returns: sn, model, firmware, status, current power, today's generation.
sunsynk_live_status
Real-time snapshot of one inverter.
Parameter | Type | Required | Notes |
| string | No | Inverter serial; defaults to the first inverter |
| boolean | No | Also return the full raw API payloads, useful for debugging or odd fields |
Returns: PV input, battery (SOC %, power, temperature), grid (import/export power and today's totals), household load and inverter output.
sunsynk_power_flow
The data behind the animated flow diagram in the app.
Parameter | Type | Required | Notes |
| integer | No | Defaults to the first plant |
Returns: PV, battery, grid and load power, battery SOC and flow directions.
sunsynk_energy_history
Historical energy data.
Parameter | Type | Required | Notes |
|
| Yes | Granularity |
| string | No |
|
| integer | No | Defaults to the first plant |
| What you get |
| Intraday power curves (PV, battery, grid, load, SOC) for that date, ideal for checking overnight charging |
| Daily kWh totals for the month |
| Monthly kWh totals for the year |
| Yearly totals since install |
sunsynk_inverter_settings
Reads (never writes) the inverter configuration.
Parameter | Type | Required | Notes |
| string | No | Defaults to the first inverter |
Returns: system work mode, the six time-of-use slots (start time, power, SOC target, grid-charge flag), grid charge settings, battery charge/discharge limits, export limits and related fields.
sunsynk_api_get
Escape hatch for endpoints the other tools don't cover. GET only. The path is validated, so it can't reach anything outside api/v1/.
Parameter | Type | Required | Notes |
| string | Yes | Relative path starting |
Returns: the data field of the API response.
Example prompts
You don't need to name the tools. Just ask in plain English:
You ask | Tools Claude will typically use |
"What's my solar and battery doing right now?" |
|
"Did the battery fill up in the cheap window last night?" |
|
"Show my time-of-use slots" |
|
"Review my settings against my tariff: cheap rate 23:00–06:00 at 5.5p, peak 22p, export 5.6p" |
|
"How much did I generate, import and export this month?" |
|
"Compare this summer with last summer" |
|
"What firmware is the inverter on?" |
|
Tip: give Claude your tariff (rates and cheap-window times) in the prompt, or it can't judge whether the settings are cost-optimal.
Reading the data
Sign conventions follow Sunsynk's API and can vary by field. Typically:
Battery power + = discharging, − = charging
Grid power + = importing, − = exporting
If something looks backwards, re-run
sunsynk_live_statuswithinclude_raw: trueand check the raw field.Units: power in W, energy in kWh, SOC in %.
Time-of-use slots: each slot runs from its start time until the next slot's start time. Slots should be in chronological order; out-of-order times are a common misconfiguration.
AC-coupled generation (e.g. a separate micro-inverter) may show up in load or grid figures rather than PV, depending on how it's wired and whether it's metered by the Sunsynk.
Freshness: cloud data lags the inverter by a few minutes.
Troubleshooting
Symptom | Cause | Fix |
| MFA / verification code is enabled on the Sunsynk Connect account. This isn't a wrong password. | Turn off MFA in the Sunsynk app/portal, or use a separate viewer account without MFA. MFA login isn't supported yet (PRs welcome). |
Login fails with a credentials error | Wrong email or password | Re-enter them in Settings → Extensions → Sunsynk → Configure (or fix the env vars) and restart |
Tools don't appear in Claude | Extension not loaded | Check it's enabled in Settings → Extensions and restart Claude Desktop |
Empty result from settings or live status | Default inverter not picked up | Pass |
Data looks stale | Dongle offline or uploads delayed | Check the dongle's Wi-Fi; compare with the Sunsynk app |
Sudden errors after working fine | Sunsynk changed its API | Check Issues; the unofficial API can change without notice |
Security
Read-only by design. No tool can change inverter settings, and
sunsynk_api_getis restricted to GET underapi/v1/. Battery, grid and export limits are safety- and G99-compliance settings, and an AI shouldn't be able to write them unsupervised.Credentials are only sent to
api.sunsynk.net. The password is RSA-encrypted before sending, matching Sunsynk's own login flow. Auth tokens are cached in memory only.Never commit credentials. Keep them in the extension's credential prompt or environment variables, not in config files in the repo.
Your inverter serial and plant IDs identify your site. Leave them out of issues and logs you post publicly.
How it works
Node.js MCP server over stdio
Authenticates against Sunsynk Connect with RSA PKCS#1-encrypted login, caches the bearer token and refreshes automatically when it expires
Endpoint structure informed by James Ridgway's open-source Python library sunsynk-api-client (MIT). This project is an independent Node.js implementation and contains no code from it.
Packaged as a Claude Desktop extension (
.mcpb) with a manifest, icon and secure credential prompts
Contributing
Issues and pull requests are welcome. The most useful addition would be support for Sunsynk's login verification code (MFA). Please keep the server read-only: PRs that add write access to inverter settings won't be merged.
Licence
MIT. See LICENSE.
"Sunsynk" is a trademark of its owner and is used here only to describe compatibility. This project is not affiliated with Sunsynk.
Available Tools
7 toolssunsynk_api_getRaw Sunsynk GETARead-only
Escape hatch: perform a read-only GET against any Sunsynk Connect endpoint under api/v1/ (e.g. 'api/v1/plant/123/realtime?id=123'). Returns the 'data' field of the response.
Inputs: path (required).
sunsynk_energy_historyEnergy historyARead-only
Energy history for a plant. period='day' returns intraday power curves (PV, battery, grid, load, SOC) for the given date (YYYY-MM-DD); 'month' returns daily kWh totals for a month (YYYY-MM); 'year' returns monthly totals for a year (YYYY); 'total' returns yearly totals.
Inputs: period (required), date, plant_id.
sunsynk_inverter_settingsRead inverter settingsARead-only
Read (not change) the inverter's configuration: work mode, time-of-use slots and SOC targets, grid charge settings, battery limits, export limits etc.
Inputs: sn.
sunsynk_list_invertersList Sunsynk invertersARead-only
List inverters on the account with serial number (sn), model, firmware, status, current power and today's generation. Use the sn with other tools.
Inputs: no named parameters.
sunsynk_list_plantsList Sunsynk plantsARead-only
List the solar plants (sites) on the Sunsynk Connect account, with id, name, current PV power (pac, W), today's and lifetime generation (kWh) and status.
Inputs: no named parameters.
sunsynk_live_statusLive inverter statusARead-only
Real-time snapshot of the inverter: solar PV input, battery (state of charge, power, temperature), grid (import/export power and today's totals), household load and inverter output. Sign conventions follow Sunsynk's API (typically battery power + = discharging, − = charging; grid power + = importing, − = exporting) — check the raw fields if unsure. Defaults to the first inverter on the account.
Inputs: sn, include_raw.
sunsynk_power_flowPlant power flowARead-only
Current power-flow view for a plant (the 'animated diagram' data in the app): PV, battery, grid, load power and battery SOC, with flow directions.
Inputs: plant_id.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Each tool targets a distinct aspect of the solar domain: listing plants vs. inverters, live inverter status vs. plant-level power flow, historical energy data, read-only settings, and a generic API escape hatch. Even the two status tools (live_status and power_flow) are clearly differentiated by scope (inverter vs. plant) and the descriptions explicitly note the difference.
All tools share the consistent 'sunsynk_' prefix, but the action part mixes verb-noun (list_plants, list_inverters, api_get) with noun phrases (live_status, power_flow, energy_history, inverter_settings). This is still predictable and readable, but not as uniform as a pure verb_noun scheme.
Seven tools is a well-scoped set for a solar monitoring server. Each tool covers a core need (listing, status, history, settings) without unnecessary bloat, and the escape hatch prevents the need for many niche tools.
The server provides comprehensive read-only coverage: listing resources, real-time status at both inverter and plant levels, historical energy data across multiple time periods, configuration settings, and a generic GET endpoint for any missing API calls. No obvious gaps for a monitoring use case.
Maintenance
Related MCP Connectors
Read-only access to your own crypto portfolio across 11+ exchanges and 20+ chains: holdings, full history, FIFO cost basis and P&L, fees and income. Ask Claude or ChatGPT about your portfolio; the connector can never trade, move funds or act as a login.
Read-only solar inverter monitoring (SolarEdge, Enphase, Huawei, Fronius): plants, energy, alarms.
Read-only Google Ads, GA4 and Search Console data for Claude, with no Google Cloud setup.
Read and write Sage Intacct from Claude or ChatGPT. Write tools are flagged for approval.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceConnects Claude Desktop to the Enphase Developer API v4 for read-only access to solar production, consumption, battery, and EV charger data, with optional write tools for battery settings and EV charging.1MIT
- AlicenseAqualityDmaintenanceEnables real-time solar data from Fronius inverters via Claude, allowing natural language queries about solar production, battery, and grid exchange.51Apache 2.0
- AlicenseAqualityDmaintenanceEnables access to Fronius solar inverter data via the MCP protocol, allowing real-time monitoring of energy production, consumption, and battery storage through natural language.1410 npm4MIT
- AlicenseAqualityDmaintenanceProvides real-time access to solar inverter data from the SolaX Cloud API, enabling queries of power output, energy yields, battery status, and grid import/export data.2MIT