Aivy Energy MCP Server
Read and control your own home solar + battery: Sungrow, Sigenergy, FoxESS, AlphaESS, SolaX.
Aivy Energy scores 68 (Good), licensed Apache-2.0 and written in Python. It installs as a local process. It declares 16 tools. Filed under Uncategorized. GitHub shows 2 stars. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
68 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: apache-2.0.
License, quality and maintenance
Quality: Grade B
75/100 for listing completeness. Lost points: 16 of 16 tools barely described, short summary.
How quality is graded
Where the 68 comes from
22 + 20 + 2 + 10 + 4 + 10 = 68. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 2 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 10 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "ivyenergy-aivy-mcp": { "command": "uvx", "args": [ "aivy-mcp" ], "env": { "AIVY_API_KEY": "YOUR_AIVY_API_KEY", "AIVY_API_URL": "https://bridge.ivyenergy.com.au/v1" } } }}
Environment variables
| Name | Required | Notes |
|---|---|---|
AIVY_API_KEYSecret | Optional | Personal Aivy API key (aivy_sk_...). Optional: without one, register_account or sign_in creates and stores a key from the chat. |
AIVY_API_URL | Optional | API base URL. Default https://bridge.ivyenergy.com.au/v1 |
Tools16Tool docs quality grade F
All capabilitiesconnect_sitetoolyes
disconnect_sitetoolyes
get_agent_guidetoolno
get_curvetoolno
get_earningstoolno
get_energy_modetoolno
get_operationstoolno
get_pricestoolno
get_statustoolno
get_strategytoolno
list_alertstoolno
list_sitestoolno
About
aivy-mcp
An MCP server that lets your own AI assistant (Claude Code, Claude Desktop, ChatGPT, Codex, Cursor, ...) read and control your own solar + battery system through the Aivy Developer API by Ivy Energy.
Works with every brand Aivy runs: Sungrow, Sigenergy, FoxESS, AlphaESS, SolaX and more. The same tools, whatever the inverter.
1. Get a key (or let the chat do it)
In the chat. Add the server without any key (step 2) and say "sign me up
to Aivy" or "sign in to my Aivy account". The assistant walks through the
terms, the emailed code and the permission level (read only, or read and
control), and the server stores the key on your computer
(~/.aivy/credentials.json, readable by you only). The key is never shown
in the chat.
On the web. Open bridge.ivyenergy.com.au/developer,
sign up or sign in, and create a key. Pick Read only to let an assistant
look, or Read and control to let it change the energy mode, Ai+ settings
and connect systems. Then pass it as AIVY_API_KEY (step 2). The key sees
exactly what your account sees, nothing more.
No hardware yet? Every key also lists demo sites (sandbox:..., replayed real
data); mode and Ai+ changes on them are kept for your account only and never
reach hardware, so you can try everything first. Accounts and keys can also
be created from the API itself; see the
Quickstart.
2. Add the server
Claude Desktop, no terminal: download aivy-mcp-<version>.mcpb from the
latest release and
open it; Claude Desktop installs it as an extension with the Aivy icon, and
fetches the server with its own uv. Then say "sign me up to Aivy".
(mcpb/build.py builds that file from the released package.)
One line (macOS, Linux; installs uv if missing, then writes the server
into every MCP client it finds: Codex, Claude Code, Claude Desktop, Cursor):
curl -fsSL https://raw.githubusercontent.com/IVYEnergy/aivy-mcp/main/install.sh | sh
Already have uv? uvx --from aivy-mcp@latest aivy-mcp-setup does the same, and
aivy-mcp setup --client codex --key aivy_sk_... targets one client or
stores an existing key. Files are backed up before they change. Restart the
client, then say "sign me up to Aivy". An assistant that can run shell
commands (Claude Code, Codex) can run the line for you.
Or by hand. Claude Code (drop -e AIVY_API_KEY=... to sign up or sign in from the chat instead):
claude mcp add aivy -e AIVY_API_KEY=aivy_sk_... -- uvx aivy-mcp@latest
Codex (~/.codex/config.toml):
[mcp_servers.aivy]
command = "uvx"
args = ["aivy-mcp@latest"]
# optional: [mcp_servers.aivy.env] AIVY_API_KEY = "aivy_sk_..."
Claude Desktop / Cursor / any MCP client (mcpServers block):
{
"mcpServers": {
"aivy": {
"command": "uvx",
"args": ["aivy-mcp@latest"],
"env": { "AIVY_API_KEY": "aivy_sk_..." }
}
}
}
No uv? pipx run aivy-mcp or pip install aivy-mcp && aivy-mcp work too.
Updating. aivy-mcp@latest makes uv check PyPI every time the client
starts the server, so restarting the client is the update. An entry written
before 0.11.3 ran plain uvx aivy-mcp, which uv keeps at the version it
first resolved: run the one-line installer again and it rewrites the entry
(key kept), or edit it by hand. The Claude Desktop extension pins its
version: open the new .mcpb from the latest release. The server checks
PyPI once per start and, when a newer release exists, the playbook
(get_agent_guide) ends with a short update note the assistant passes on;
AIVY_MCP_NO_UPDATE_CHECK=1 turns that off.
Assistants that cannot run local tools (ChatGPT in the browser) can use the HTTP API directly. Paste this into the chat:
Use the Aivy Developer API at https://bridge.ivyenergy.com.au/v1 with the header
Authorization: Bearer aivy_sk_.... Read https://bridge.ivyenergy.com.au/v1/llms.txt first, then GET /sites.
3. Ask
- "How's my battery doing?"
- "Why did it charge at 3am?"
- "What are prices doing tonight? Should I sell?"
- "Plan the best time to sell tonight, keep 20%, then apply it."
- "Charge at 5 kW to 90% for the next two hours." (control key)
- "Make Ai+ a bit more aggressive on exports." (control key)
- "Connect my Sungrow inverter, serial A2340000001, NMI 2001234567." (control key)
- "Email me when the battery drops below 20%."
- "I want to write my own strategy: sell above 40c, charge when import goes negative, hold overnight." (control key; the AI writes the rules, you approve)
For agents: the playbook
Tool descriptions say what each call does. The playbook says how to get a job done with them: which tools answer which questions, when to stop and confirm, how forced mode and its hand-back work, what each error means, and the step-by-step workflows (status, diagnosis, prices, earnings, selling tonight, keeping a reserve, charging now, connecting a system, Ai+ tuning). It is one text, delivered four ways:
| Where | How to use it |
|---|---|
MCP tool get_agent_guide | Any MCP client: the server's instructions ask the model to call it once per conversation. |
| Claude Code / Claude skill | Copy skills/aivy into ~/.claude/skills/ (or a project's .claude/skills/). |
| Codex, Cursor, other rule files | Paste src/aivy_mcp/playbook.md into AGENTS.md or your rules. |
| HTTP-only assistants (ChatGPT in the browser) | Tell it to read https://bridge.ivyenergy.com.au/v1/agent-guide.md first. |
Checking an agent against it
evals/cases.json holds conversation cases (the user's
words, the tools a good agent calls in order, the ones it must not call, and
whether the turn has to end in a question). evals/check.py
judges a transcript:
# Claude Code, headless, with the server configured as "aivy":
claude -p "Sell at the best prices tonight, keep 20%." --output-format stream-json > t.json
python evals/check.py sell-tonight-propose t.json
A transcript can also be a plain list: [{"name": "get_status", "args": {}}],
or {"calls": [...], "text": "final reply"}. Run the cases after changing
the playbook, the tool descriptions or the model.
Cards in chat
Hosts that render MCP Apps (and ChatGPT through its Apps SDK) show sixteen of the tools as cards instead of text, in the same style as the Aivy mobile app, light and dark:
| Tool | Card |
|---|---|
get_status | SOC ring and the four power flows (solar, home, grid, battery) |
get_prices | Buying / selling now, the next hours as bars, the best hours to sell highlighted |
plan_discharge | The sell plan (revenue headline, the chosen windows on a timeline) or the hold-a-reserve plan, with an Apply button; the click is the user's yes and calls set_energy_mode |
get_registration_terms | A sign-up / sign-in form: email, password, permission level and the terms are entered in the card and sent to Aivy by the card itself, never through the chat |
get_energy_mode | Control panel: today's windows on a 24-hour bar, the pending hand-back, mode buttons and a manual charge / discharge form; under Ai+, its levers as sliders and switches built from the engine's own ranges, with Save. A click is the user's yes |
list_vendors | Connect a system: pick the brand, enter what it needs (or sign in at the vendor), see the new site appear |
get_curve | Power history: solar, home, battery, grid lines with SOC |
get_earnings | A day's net, earned, cost, exported and imported, hour by hour |
get_operations | Timeline of what the platform did and why |
list_alerts | Alert rules with Delete, and a form to add one; called with the rule the person asked for, the form comes filled in and one click adds it |
create_alert, delete_alert | The same card, already showing the rule just added (marked new) or the remaining rules |
list_sites | Your sites with a Status button each |
start_strategy, get_strategy, end_strategy | Strategy mode: the rules the AI wrote in plain words, what they would do right now, the lease and the limits, with Start; then the running strategy with its last action, recent decisions and Stop |
Every card is one self-contained HTML document (no network, no assets), so
it works under the extension's default content security policy. Hosts
without the extension get the same data as JSON. To look at the cards
locally: node tests/ui/shoot.mjs (needs playwright).
Tools
| Tool | Changes anything? | What it does |
|---|---|---|
get_agent_guide | no | The playbook above |
get_registration_terms, register_account, verify_registration | account only | Create an Aivy account from the chat; the key is stored locally |
sign_in | account only | Create and store a key for an existing account (password used once) |
list_sites | no | Your sites (ids look like sungrow:1445844) and whose key this is, read or control; says when there is no key yet |
get_status | no | Live SOC and power flows, with the site's capacity, limits, timezone and mode |
get_curve | no | 5-minute or daily history |
get_earnings | no | A day's energy, priced at Amber's actual prices |
get_operations | no | What the platform did and why |
get_prices | no | Amber prices now and forecast |
list_alerts | no | Alert rules on a site and the 20 most recent firings |
create_alert, delete_alert | account only | Threshold alerts to inbox, push and email; never control the battery |
list_vendors | no | Supported brands and what connecting one needs |
connect_site | yes | Link the user's system (serial + NMI, system id, or an OAuth link to open) |
disconnect_site | yes | Remove a site from the account |
get_energy_mode | no | Mode, windows, pending hand-back; Ai+ variant, settings and tunable ranges |
set_energy_mode | yes | selfConsumption / amber_smart (Ai+) / au_forecast_export, au_negative_price, au_smart_energy, au_weather_season (AU-01..04 student strategies) / forced (time-boxed); without a mode, change Ai+ levers or variant |
plan_discharge | no | Propose a sell schedule from the forecast (goal: best_price) or a discharge that lands on a SOC at a time (goal: target_soc) |
get_strategy | no | Strategy mode: what is running |
start_strategy, end_strategy | yes | Preview the AI-written rules against the readings (a dry run), then run them or replace the running ones; stop them. Nothing starts without the previewed proposal_id; the server keeps the limits and hands the site back when it ends |
What the server enforces, whatever the assistant does
- A key sees only its owner's sites; writes need the control scope.
- A forced (manual) mode set through the API always reverts to the previous
mode after
duration_minutes(default 4 h, max 24 h). - A strategy written by the AI runs on a lease (default a day, max a week),
may change the action at most three times an hour, treats stale readings
as
auto, and hands the site back to its previous mode when it ends. - The SOC floor and grid export limits cannot be overridden.
- Every call is recorded with the key id and client; keys can be revoked in the app at any time and stop working immediately.
- Per-key rate limit (default 120/min). Readings refresh about once a minute.
Development
git clone https://github.com/IVYEnergy/aivy-mcp && cd aivy-mcp
uv run --with pytest pytest
uv run aivy-mcp # needs AIVY_API_KEY
The package also lives in Ivy Energy's main repository under sdk/aivy-mcp;
this public repository is where it is released from.
Point at another deployment with AIVY_API_URL=https://host/v1.
License
Apache License 2.0. See LICENSE.
Frequently asked questions
What is Aivy Energy MCP Server?
Read and control your own home solar + battery: Sungrow, Sigenergy, FoxESS, AlphaESS, SolaX.
How do I install Aivy Energy MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. Aivy Energy MCP Server runs locally from the PyPI package aivy-mcp with the command uvx aivy-mcp.
Is Aivy Energy MCP Server free and open source?
Yes. Aivy Energy MCP Server is released under the Apache-2.0 license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does Aivy Energy MCP Server support remote (HTTP) connections?
No remote endpoint is listed for Aivy Energy MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does Aivy Energy MCP Server provide?
Aivy Energy MCP Server provides 16 tools, including connect_site, disconnect_site, get_agent_guide, and get_curve. See the full tool list for descriptions and parameters.
How is Aivy Energy MCP Server's trust score calculated?
Aivy Energy MCP Server scores 68 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.