evcc
evcc copied to clipboard
Add MCP option exposing the rest api
Refs https://github.com/evcc-io/evcc/issues/21921
Run evcc with --mcp to expose the /mcp endpoint that Claude Code, Gemini CLI and (in future) Claude Desktop can connect to.
For testing, using claude (Claude Code):
claude mcp add --transport http http://localhost:7070/mcp
Logfile will show the MCP endpoint:
[mcp ] INFO 2025/06/29 17:30:54 MCP listening at http://evcc.local:7070/mcp
If default URL doesn't work, modify config or environment:
EVCC_NETWORK_HOST=localhost evcc --mcp --demo --log info,mcp:trace
advertises as localhost:
[mcp ] INFO 2025/06/29 17:30:54 MCP listening at http://localhost:7070/mcp
TODO
- [ ] demo deployment (
EVCC_NETWORK_HOST=demo.evcc.io,--mcp)