evcc icon indicating copy to clipboard operation
evcc copied to clipboard

Add MCP option exposing the rest api

Open andig opened this issue 5 months ago • 0 comments

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)

andig avatar Jun 29 '25 10:06 andig