unofficialzaptecMCP
This unofficial MCP server lets an AI assistant query Zaptec EV charger and installation data and perform guarded charging control actions.
Get current charger status, including operating mode, charging power, session energy, per-phase current/voltage, cable rating, diagnostics, and available current.
Get installation details such as address, timezone, max/available current, load balancing, authentication, features, circuits, and chargers.
Get completed charge history for today, yesterday, week, month, year, or a custom date range, with session summaries and optional cost if a price per kWh is configured.
Pause a running charging session when the charger is actively charging.
Resume a paused charging session when the charger is in the paused/finished state.
Set the installation's available charging current in amps, reset it to the maximum, or set
0to stop charging for the whole installation; changes are guarded to at most once per 15 minutes unless forced.
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., "@unofficialzaptecMCP Is my car charging right now?"
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.
unofficialzaptecMCP
Unofficial community project. This is not a Zaptec product. It is not affiliated with, endorsed by, sponsored by or supported by Zaptec AS. Please do not contact Zaptec support about this software; open an issue here instead. The server talks to the public Zaptec cloud API with your own Zaptec account. Zaptec may change that API at any time. Three tools change the state of your installation. Use at your own risk.
An MCP (Model Context Protocol) server that connects a Zaptec EV charger (Zaptec Go, Go 2, Pro) to AI assistants like Claude. Ask for the charging status, energy and cost of the last month, pause or resume a session, or lower the available current, all through natural conversation.
Features
Tool | Changes state | What it does |
| no | Operating mode, charging power, session energy, per-phase current and voltage, cable rating, diagnostics, available current |
| no | Address, timezone, max current, available current and mode, load balancing, authentication, features, circuits and chargers |
| no | Completed sessions for |
| yes | Pause the running session (Zaptec command 506). Refused with an explanation unless the charger is actually charging |
| yes | Resume a paused session (command 507). Refused with an explanation unless the session is paused |
| yes | Set the installation's available current in amps or reset it to the maximum. Guarded: at most one change per 15 minutes unless forced. |
Not included on purpose: restarting the charger, firmware upgrades,
deauthorizing sessions, the undocumented authorizecharge call, local
settings and OCPP.
Related MCP server: OCHP MCP Server
Prerequisites
A Zaptec account with owner rights on the charger (the same login as the Zaptec app).
Python 3.11 or newer (tested on 3.11 β 3.14) for the development install. With
uvxor the extension bundle,uvprovides it.Claude Desktop or any other MCP-compatible client.
Installation
Pick one of three routes.
1. Without installing (uvx). Needs uv. The client starts the server directly from GitHub:
uvx --from git+https://github.com/holger1411/unofficialzaptecMCP unofficial-zaptec-mcp2. Claude Desktop extension bundle. See Claude Desktop extension below.
3. Clone and virtualenv (development).
git clone https://github.com/holger1411/unofficialzaptecMCP.git
cd unofficialzaptecMCP
python3 -m venv .venv
source .venv/bin/activate
pip install -e .Do not keep the virtualenv in a folder synced by iCloud Drive or OneDrive. Evicted files make the server start very slowly, and clients may time out.
Configuration
Settings are read from environment variables and from an env file. Create the file from the template and restrict its permissions:
cp .env.example .env
chmod 600 .env
# edit .env and set ZAPTEC_USERNAME and ZAPTEC_PASSWORDVariables that are already set in the environment win over the file.
Variable | Default | Description |
| required | Zaptec account email |
| required | Zaptec account password |
| unset | Electricity price; when set, |
|
| Currency label for the cost fields |
| unset | Only needed when the account can see more than one charger |
|
| Seconds between two available-current changes; |
|
| Disable for debugging |
|
| DEBUG / INFO / WARNING / ERROR / CRITICAL |
|
| API base URL. Must be |
| unset | Explicit path to the env file. If unset, |
A missing credential, a malformed number, an invalid base URL or an invalid
ZAPTEC_LOG_LEVEL makes the server print one line to stderr and exit with
code 2. The password is used exactly as written; surrounding whitespace is
not stripped. In an env file, put a password that starts or ends with a
space in quotes.
The charger PIN printed on the device is not needed. It is only used by the Zaptec app for activation and local Bluetooth setup.
Claude Desktop
Add to your claude_desktop_config.json (see
claude_desktop_config_snippet.json for a template). This example starts the
server with uvx and keeps the credentials in a private env file:
{
"mcpServers": {
"unofficial-zaptec-mcp": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/holger1411/unofficialzaptecMCP",
"unofficial-zaptec-mcp"
],
"env": {
"ZAPTEC_ENV_FILE": "/absolute/path/to/zaptec.env"
}
}
}
}Claude Desktop does not always find uvx on its PATH. If the server does
not start, use the absolute path from which uvx as command. For the
clone route, use "command": ".../unofficialzaptecMCP/.venv/bin/python" with
"args": ["-m", "zaptec_mcp_server"].
Credentials in the config file are stored in plain text. You can put
ZAPTEC_USERNAME and ZAPTEC_PASSWORD into the env block, but then anyone
who can read claude_desktop_config.json can read your password. Prefer a
separate env file with chmod 600 and point ZAPTEC_ENV_FILE at it, as
above. The extension bundle below stores the password in the operating
system keychain instead.
Restart Claude Desktop afterwards. Example prompts: "Is my car charging?", "How much did charging cost in September?", "Pause charging", "Limit the wallbox to 10 amps until I say otherwise".
Claude Desktop extension bundle
manifest.json describes the server as an
MCPB extension (server.type is
uv). Claude Desktop asks for the Zaptec email and password when you install
it, and keeps the password in the operating system keychain. The bundle
needs uv on the machine; uv installs the
dependencies on first start.
npx @anthropic-ai/mcpb validate manifest.json
npx @anthropic-ai/mcpb pack . unofficial-zaptec-mcp.mcpbOpen the resulting .mcpb file with Claude Desktop to install it. .mcpbignore
keeps .env, tests and local state out of the bundle. The bundle asks only
for the two credentials. Optional settings such as ZAPTEC_PRICE_PER_KWH
need one of the other routes. The packing and the uv launch were tested; an
install through the Claude Desktop UI was not.
Behaviour and limits
Authentication: OAuth2 password grant against
api.zaptec.com. The token is cached until shortly before it expires. After a 401 the server logs in again once, even when several requests fail at the same time. Zaptec allows one token request per second per IP, so the server never logs in per request.Rate limits: Zaptec allows 10 requests per second per user. Every request carries a descriptive
User-Agentas required by Zaptec's fair-use policy. Transient errors (timeouts, 5xx, 429) are retried three times with backoff, honouringRetry-After.Caching: status 15 s, installation 5 min, history 5 min. Concurrent identical requests share one API call. Expired entries are pruned and the cache has a fixed maximum size. Control tools are never cached and invalidate the status cache. Failures are never cached.
zaptec_get_statusfetches the charger state and the installation concurrently.Ids: charger and installation ids must be canonical UUIDs. Anything else is rejected before a URL is built, so an id cannot redirect a request to another endpoint.
Guards: pause and resume check the live charger state first and refuse with a plain-language reason when the command would be rejected.
zaptec_set_available_currentvalidates against the installation maximum, rejects non-finite values, and refuses the call when the installation reports no numeric maximum. It enforces the 15-minute spacing Zaptec recommends (per server process, safe against concurrent calls).0stops charging for the whole installation; use it deliberately.History uses
/api/sessions/archived, converted to the installation's timezone. Cost isenergy_kwh Γ ZAPTEC_PRICE_PER_KWH, nothing more. At most 2000 sessions are fetched and at most 500 are listed;truncatedistruewhen either limit cuts the result, andtruncated_bynames which (api_page_limitmeans the totals are incomplete,display_limitonly the list). A custom range needsend_date >= start_dateand may span at most 366 days.Logging goes to stderr through a redactor that scrubs credentials, bearer tokens, UUIDs and device serials. Exception tracebacks pass through the same redactor.
Data from the API (charger and installation names, addresses) reaches the model as text. Treat it as untrusted; see
SECURITY.md.
Security
See SECURITY.md. Never commit .env. Report security
issues via GitHub Private Vulnerability Reporting, not as public issues.
Development
pip install -e '.[dev]'
pytest # unit tests, offline; live tests are skipped by default
ruff check .
mypy
pytest -m integration # live read-only tests, needs credentials
python scripts/probe.py # prints the live status; --dump DIR writes raw responsesFixtures under tests/fixtures/ are sanitized live responses. Capture new
ones with scripts/probe.py --dump local-tmp/raw and run them through
scripts/sanitize_fixture.py before committing; see
CONTRIBUTING.md.
Credits
Zaptec for the public API and its documentation at docs.zaptec.com. The OpenAPI spec is available at api.zaptec.com/swagger/v1/swagger.json; it is not redistributed in this repository.
custom-components/zaptec and pyzaptec (MIT), whose observation and command handling served as reference.
holger1411/unofficialMCP4Vaillant and holger1411/polestar-mcp, the pattern references for the client, cache and test layout.
License
MIT. The license covers this project's code only. This project is not affiliated with, endorsed by or sponsored by Zaptec AS. "Zaptec" and related names and logos are trademarks of Zaptec AS; they are used here only to describe what the server connects to. The software is provided "as is", without warranty of any kind. You use it at your own risk, including any effect on your charger, installation or electricity bill.
Available Tools
6 toolszaptec_get_charge_historyGet charging historyARead-only
Completed charging sessions in a time range (installation-local time) with start, end, duration and energy in kWh, plus a summary. Cost fields appear only when ZAPTEC_PRICE_PER_KWH is configured. Read-only.
Inputs: end_date, charger_id, start_date, time_range. Returns: end, start, summary, sessions, +3 more
zaptec_get_installationGet installation detailsBRead-only
Installation details: address, timezone, main fuse / max current, available current and mode, load balancing, authentication, enabled features, circuits and chargers. Read-only.
Inputs: installation_id. Returns: id, name, address, circuits, +10 more
zaptec_get_statusGet charger statusARead-only
Current snapshot of the Zaptec charger: operating mode (disconnected / connected_requesting / connected_charging / connected_finished), charging power, session energy, per-phase current and voltage, cable, diagnostics, and the installation's available current. Read-only.
Inputs: charger_id. Returns: charger, charging, diagnostics, observed_at, +3 more
zaptec_pause_chargingPause chargingAIdempotent
CHANGES STATE: pause the running charging session (Zaptec command 506). Only valid while the charger is in connected_charging; otherwise returns an explanation.
Inputs: charger_id. Returns: ok, note, charger, command, +1 more
zaptec_resume_chargingResume chargingAIdempotent
CHANGES STATE: resume a session that was paused via the app or this server (Zaptec command 507). Only valid when the charger is connected_finished with final_stop_active; otherwise returns an explanation.
Inputs: charger_id. Returns: ok, note, charger, command, +1 more
zaptec_set_available_currentSet available currentADestructiveIdempotent
CHANGES STATE: set the installation's available charging current in amps (all phases), or null to reset to the installation maximum. Zaptec recommends at most one change per 15 minutes; the server refuses faster changes unless force=true.
Inputs: amps (required), force, installation_id. Returns: ok, note, installation, max_current_a, +3 more
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 6 tools
get_status and get_installation both expose available current and installation mode, creating minor overlap. However, each tool otherwise targets a distinct aspect (real-time charging state, installation configuration, historical sessions), and pause/resume are clearly opposite actions with explicit validity conditions.
All tools use the zaptec_ prefix followed by a consistent verb_noun pattern in snake_case (get_status, get_installation, get_charge_history, pause_charging, resume_charging, set_available_current). No deviations or mixed conventions.
6 tools cover the core read and control operations for an EV charger, and each tool earns its place with a distinct purpose. The count is well within the ideal 3-15 range for this scope.
Core monitoring (status, installation, history) and control (pause/resume, set available current) are covered. However, there is no explicit start/stop charging command and no way to set installation-wide mode or phase configuration, representing minor gaps that agents can likely work around.
Maintenance
Related MCP Connectors
Control your Tesla from your AI assistant - climate, charging, access, and security.
Unofficial integration! ## β¨ Key Features ### π° Financial Intelligence - **Smart Charging Cost Anβ¦
Home energy for AI assistants: live Power flow, Energy history, solar forecast, and device control.
Tesla data for your AI: battery, range, charging, tires, alerts, history. Controls off by default.
Related MCP Servers
- FlicenseBqualityNot gradedmaintenanceEnables interaction with Homey smart home devices through natural language, allowing users to control devices, manage zones, and trigger automation flows.64-
- AlicenseNot gradedqualityFmaintenanceEnables AI assistants to interact with EV charging infrastructure through OCHP (Open Clearing House Protocol) services.Apache 2.0
- AlicenseAqualityBmaintenanceEnables querying Tibber electricity prices, forecasts, consumption data, cheapest hours, and live Pulse measurements through natural language.7MIT
- AlicenseAqualityAmaintenanceA comprehensive MCP server that enables AI assistants to interact with Home Assistant, control smart home devices, query states, execute services, and manage automations via natural language.7798,673 PyPI8,137MIT