Metadata-Version: 2.4
Name: mirakl-seller-mcp
Version: 0.1.1
Summary: Read-only, privacy-first MCP server for Mirakl marketplace sellers (Decathlon, Carrefour, Leroy Merlin, Fnac Darty...): ask Claude about your orders, offers, returns, messages and payouts
Author: ArvtekEarn
License: MIT
Project-URL: Homepage, https://github.com/ArvtekEarn/mirakl-seller-mcp
Project-URL: Issues, https://github.com/ArvtekEarn/mirakl-seller-mcp/issues
Keywords: mcp,mirakl,marketplace,seller,claude,model-context-protocol,ecommerce,decathlon,carrefour,leroy-merlin,fnac
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Topic :: Office/Business
Classifier: Natural Language :: French
Classifier: Natural Language :: English
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: mcp>=1.2
Requires-Dist: httpx>=0.27
Provides-Extra: test
Requires-Dist: pytest; extra == "test"
Requires-Dist: respx; extra == "test"
Dynamic: license-file

# mirakl-seller-mcp

<!-- mcp-name: io.github.ArvtekEarn/mirakl-seller-mcp -->

**Ask Claude about your seller shop on any Mirakl-powered marketplace**: Decathlon, Carrefour,
Leroy Merlin, Fnac / Darty, Conforama, Castorama, Maisons du Monde, La Redoute and hundreds more.
One local connector for all of them, **read-only**, and **buyer personal data is removed before
anything reaches the AI**.

> "Which orders are still waiting to ship on Decathlon and Leroy Merlin?"
> "Compare my price on EAN 3608439000000 with the other sellers on Carrefour."
> "Which customer messages have I not answered since Monday?"
> "How much did I sell this month on each marketplace, and how much is still unpaid?"

French below. / Version française plus bas.

## Why this one

- **All your Mirakl marketplaces at once.** Configure 1 or 10; `orders_overview` sums them up.
- **Read-only by design.** Only GET calls. It cannot accept, ship, refund, reprice or change stock.
- **Privacy first.** Names, street addresses, postcodes, e-mails, phones and buyer company details
  are stripped inside the process (city and country are kept). Your API key stays on your machine;
  nothing goes through a third-party server.
- **Free and open source** (MIT). Official Mirakl seller (shop) API only.

## Tools (13)

| Tool | Mirakl API |
|---|---|
| `list_marketplaces` | your configuration |
| `shop_info` | A01 shop information, grade, state |
| `list_orders`, `get_orders` | OR11 orders (states, dates, incidents) |
| `orders_overview` | OR11 on every marketplace: count and value per state |
| `list_offers`, `get_offer` | OF21 / OF22 your offers |
| `competing_offers` | P11 all offers on a product (price comparison) |
| `list_returns` | RT11 returns |
| `list_message_threads`, `get_message_thread` | M11 / M10 customer & operator messages |
| `list_accounting_documents`, `list_billing_cycles` | IV01 / SBC11 invoices, payouts |

## Install

You need [uv](https://docs.astral.sh/uv/) (or pip) and, for each marketplace, its **Mirakl URL**
and your **shop API key**: in the marketplace's seller back office, open *My user settings*
(top right) > *API key*. The URL is the address of that back office without the path,
e.g. `https://xxxx.mirakl.net`.

Test the connection first:

```bash
MIRAKL_URL=https://xxxx.mirakl.net MIRAKL_API_KEY=your-key uvx mirakl-seller-mcp --check
```

### Claude Desktop (one marketplace)

```json
{
  "mcpServers": {
    "mirakl": {
      "command": "uvx",
      "args": ["mirakl-seller-mcp"],
      "env": {"MIRAKL_URL": "https://xxxx.mirakl.net", "MIRAKL_API_KEY": "your-key"}
    }
  }
}
```

### Several marketplaces

```json
"env": {
  "MIRAKL_MARKETPLACES": "decathlon,leroy-merlin",
  "MIRAKL_DECATHLON_URL": "https://...", "MIRAKL_DECATHLON_API_KEY": "...",
  "MIRAKL_LEROY_MERLIN_URL": "https://...", "MIRAKL_LEROY_MERLIN_API_KEY": "..."
}
```

Names are free; `-` and spaces become `_` in the variable names. Optional: `MIRAKL_<NAME>_SHOP_ID`
if your user manages several shops. `MIRAKL_KEEP_PII=1` turns the privacy filter off (not advised).

Claude Code: `claude mcp add mirakl -e MIRAKL_URL=... -e MIRAKL_API_KEY=... -- uvx mirakl-seller-mcp`

## Status

v0.1. Built and tested against Mirakl's published seller API reference (every tool is checked
against the spec's GET operations and query names, plus an end-to-end test over stdio against two
fake marketplaces). **Not yet tested on a live shop**: if something fails on yours, please open an
issue with the marketplace name and the error (never paste your key).

Some operators turn off parts of the API (e.g. messages, or IV01 when they use Enhanced Seller
Invoicing): the tool then returns the operator's error or an empty result.

Unofficial; not affiliated with Mirakl or any marketplace. Provided as is (MIT).

---

## En français

Un connecteur MCP **gratuit, local et en lecture seule** pour interroger Claude sur votre boutique
vendeur sur les marketplaces Mirakl (Decathlon, Carrefour, Leroy Merlin, Fnac / Darty, Conforama,
Castorama, Maisons du Monde, La Redoute…). Les **données personnelles des acheteurs** (nom, adresse,
code postal, e-mail, téléphone) sont **supprimées avant d'arriver à l'IA**, la ville et le pays sont
gardés. Votre clé API reste sur votre ordinateur.

**Clé API** : dans le back-office vendeur de la marketplace, *Paramètres utilisateur* (en haut à
droite) > *Clé API*. **URL** : l'adresse du back-office sans le chemin (`https://xxxx.mirakl.net`).

Tester : `MIRAKL_URL=https://xxxx.mirakl.net MIRAKL_API_KEY=votre-cle uvx mirakl-seller-mcp --check`

Plusieurs marketplaces : `MIRAKL_MARKETPLACES=decathlon,leroy-merlin` puis
`MIRAKL_DECATHLON_URL`, `MIRAKL_DECATHLON_API_KEY`, etc. L'outil `orders_overview` donne le nombre
et le montant des commandes par état sur toutes vos marketplaces.

Exemples : « Quelles commandes restent à expédier sur Decathlon ? », « Compare mon prix sur
l'EAN … avec les autres vendeurs de Carrefour », « Quels messages clients sont sans réponse ? ».

Non officiel, sans lien avec Mirakl ni les marketplaces. Fourni tel quel (licence MIT).
