Skip to main content
Glama
README.md
# europizza-mcp

An MCP server that lets Claude order pizza from [Euro Pizza](https://www.euro-pizza.fr) (Clermont-Ferrand, France).

Not a mock. Not a demo. It talks to the real LivePepper API — live menu, live prices, real cart.

## How it works

The server reverse-engineers Euro Pizza's LivePepper ordering platform and exposes it as MCP tools:

| Tool | Description |
|------|-------------|
| `europizza_menu` | Full catalog (130+ products) with live prices, filterable by category |
| `europizza_pizza` | Product detail — description, sizes, prices, options, image |
| `europizza_search` | Search by name or ingredient |
| `europizza_view_basket` | Current basket with total |
| `europizza_add_to_basket` | Add a product to the basket (for real) |
| `europizza_remove_from_basket` | Remove an item |
| `europizza_clear_basket` | Clear the entire basket |

Everything goes through Euro Pizza's actual API. The menu, prices, and availability are always up to date.

## The API

LivePepper (the platform behind Euro Pizza) exposes a clean REST-ish API authenticated by a `_session_id` cookie:

| Endpoint | Method | Purpose |
|----------|--------|---------|
| `/api/menu` | GET | Full catalog with categories, products, SKUs, prices |
| `/api/basket` | GET | Current basket state |
| `/basket_items/create/{handle}` | POST | Add item (`item[sku]=moyenne&page=basket`) |
| `/basket_items/destroy/{item_key}` | GET | Remove item |
| `/basket_items/increase_quantity/{handle}` | POST | +1 quantity |
| `/basket_items/remove_one/{handle}` | POST | -1 quantity |
| `/basket/clear` | POST | Empty basket |

The checkout flow (`/orders/select_delivery` → `/orders/select_payment_method` → `/orders/create`) is **deliberately not implemented**. Euro Pizza supports "pay on delivery", which means a single GET request could trigger an actual pizza delivery. We keep our hands off that.

## Setup

### 1. Get a session

Go to [euro-pizza.fr](https://www.euro-pizza.fr), open DevTools → Application → Cookies, copy `_session_id`. It lasts ~30 days.

### 2. Run locally

```bash
pip install .
LIVEPEPPER_SESSION_ID=your_session_id python -m europizza_mcp.server
```

### 3. Or with Docker

```bash
docker build -t europizza-mcp .
docker run -e LIVEPEPPER_SESSION_ID=your_session_id -p 8000:8000 europizza-mcp
```

### 4. Connect to Claude

Add to your MCP config:

```json
{
  "mcpServers": {
    "europizza": {
      "type": "streamable-http",
      "url": "http://localhost:8000/mcp"
    }
  }
}
```

Then ask Claude what's on the menu.

## Origin story

[data.gouv.fr](https://github.com/datagouv) shipped their own MCP server. I got jealous. This is the result.

## License

MIT