Skip to content
EN | DE

MCP-Server

With the Model Context Protocol (MCP for short), it is possible to give LLMs like Claude, Gemini, and ChatGPT structured access to external systems, such as evcc.

MCP server is enabled on boot if experimental is activated.

This example shows how you can use evcc with Claude Code via CLI. MCPs via HTTP are currently only available with the paid version. Of course, you can also use other LLMs like Gemini or ChatGPT.

  1. Install Claude Code according to the official guide.

  2. Create an empty folder for your test and navigate to this folder:

    Terminal window
    mkdir evcc-mcp-test
    cd evcc-mcp-test
  3. Add evcc as an MCP server to your workspace:

    Terminal window
    claude mcp add --transport http evcc http://localhost:7070/mcp
  4. Make sure your evcc instance is running with the MCP server by checking MCP card in the UI configuration.

  5. Start Claude Code and enter a query.

    Terminal window
    claude
    โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
    โ”‚ > Will I be able to fill my car with solar energy today? โ”‚
    โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ
  6. By default, you will be asked before the system makes a request to evcc. You must confirm these requests.

Now you can watch Claude Code work and should ultimately receive a proper answer to your question. However, the above query will only work if you have configured a PV forecast.

Here you can see an example query where Claude creates a charging plan for the white Model 3. The Sonnet 4 model is used.

MCP is enabled on the demo server at demo.evcc.io. So you can also test directly with it:

Terminal window
claude mcp add --transport http evcc-demo https://demo.evcc.io/mcp

Since this instance is used by many people, the results may be unreliable.