# SwitchAI MCP server

> Allows AI agents to analyze Italian energy bills, compare electricity and gas tariffs, and identify potential savings using live ARERA market data.

- Repository: https://github.com/US1929/switchai
- Page: https://hostedmcp.org/servers/us1929/switchai
- Transport: remote
- Stars: 0
- License: MIT
- Latest version: 1.0.2

## Install

### Claude Code

```sh
claude mcp add switchai -- npx -y @us1929/switchai-mcp
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "switchai": {
      "command": "npx",
      "args": [
        "-y",
        "@us1929/switchai-mcp"
      ]
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "switchai": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@us1929/switchai-mcp"
      ]
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"switchai","type":"stdio","command":"npx","args":["-y","@us1929/switchai-mcp"]}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "switchai": {
      "command": "npx",
      "args": [
        "-y",
        "@us1929/switchai-mcp"
      ]
    }
  }
}
```

### Codex

```sh
codex mcp add switchai -- npx -y @us1929/switchai-mcp
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.switchai]
command = "npx"
args = ["-y", "@us1929/switchai-mcp"]
```

### Gemini CLI

```sh
gemini mcp add -s user switchai npx -- -y @us1929/switchai-mcp
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "switchai": {
      "command": "npx",
      "args": [
        "-y",
        "@us1929/switchai-mcp"
      ]
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `SWITCHAI_API_URL` | no | no |  |

## FAQ

### What markets does SwitchAI cover?

SwitchAI is specifically designed for the Italian energy market, covering electricity and gas.

### How many energy offers are available in the system?

The engine provides access to over 5,600 live ARERA offers, including 3,196 electricity and 2,411 gas offers.

### Can the tool extract data from a bill automatically?

Yes, it includes a tool to extract structured consumption, spend, and zone data from raw Italian bill text.

### Does SwitchAI handle the actual energy contract activation?

No, SwitchAI provides activation links that direct the user to the supplier's website to complete the process.
