aivy-mcp
OfficialThis 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.
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
In the Aivy app (web or mobile) open the user menu, API keys, and create a key. Pick Read only to let an assistant look, or Read and control to let it change the energy mode and Ai+ settings. The key sees exactly what your account sees, nothing more.
Related MCP server: victron-tcp
2. Add the server
Claude Code:
claude mcp add aivy -e AIVY_API_KEY=aivy_sk_... -- uvx aivy-mcpClaude Desktop / Cursor / any MCP client (mcpServers block):
{
"mcpServers": {
"aivy": {
"command": "uvx",
"args": ["aivy-mcp"],
"env": { "AIVY_API_KEY": "aivy_sk_..." }
}
}
}No uv? pipx run aivy-mcp or pip install aivy-mcp && aivy-mcp work too.
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)
Tools
Tool | Changes anything? | What it does |
| no | Who the key is, read or control |
| no | Your sites; ids look like |
| no | Capacity, limits, timezone, mode, live SOC |
| no | Live SOC and power flows |
| no | 5-minute or daily history |
| no | A day's energy, priced at Amber's actual prices |
| no | What the platform did and why |
| no | Amber prices now and forecast |
| no | Mode, windows, pending hand-back |
| yes | selfConsumption / amber_smart (Ai+) / forced (time-boxed) |
| no | Ai+ variant, settings and tunable ranges |
| yes | Change Ai+ levers or variant |
| no | Propose a sell schedule from the forecast |
| no | Propose a discharge that lands on a SOC at a time |
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).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_KEYThe 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.
This server cannot be deployed
Maintenance
Related MCP Connectors
Home energy for AI assistants: live Power flow, Energy history, solar forecast, and device control.
Control your Tesla from your AI assistant - climate, charging, access, and security.
Solar, weatherization, EV charging, battery and heat-pump decision tools for AI agents.
Real-time electricity price signals for AI agents. Spot prices, cheapest hours, and contract recommendations. 31 countries across Europe and Oceania. No authentication required.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI assistants to control and monitor Tesla vehicles via natural language through the Tessie API, supporting battery, climate, security, charging, and more.611MIT
- AlicenseAqualityAmaintenanceConnect AI assistants to Victron Energy systems to read real-time solar, battery, grid, and inverter data from your local network via Modbus TCP or MQTT.3223 npm7MIT
- AlicenseBqualityDmaintenanceEnables AI assistants to monitor and control Tesla Powerwall 2 systems via local gateway API.18MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to monitor and control neoom BEAAM energy management systems, including solar production, battery, grid power, and device control via natural language.1ISC