Metadata-Version: 2.4
Name: kaufland-seller-mcp
Version: 0.1.0
Summary: Read-only, privacy-first MCP server for Kaufland Global Marketplace sellers (DE, AT, CZ, SK, PL, FR, IT, ES, NL): ask Claude about your orders, offers, buy box, returns and tickets
Author: ArvtekEarn
License: MIT
Project-URL: Homepage, https://github.com/ArvtekEarn/kaufland-seller-mcp
Project-URL: Issues, https://github.com/ArvtekEarn/kaufland-seller-mcp/issues
Keywords: mcp,kaufland,marketplace,seller,claude,model-context-protocol,ecommerce,kaufland-marketplace,seller-api
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Topic :: Office/Business
Classifier: Natural Language :: German
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

# kaufland-seller-mcp

Read-only, privacy-first [MCP](https://modelcontextprotocol.io) server for sellers on **Kaufland Global Marketplace**
(storefronts DE, AT, CZ, SK, PL, FR, IT, ES, NL). Ask Claude (or any MCP client) about your own account:

- "What still has to ship today, and which deadline is closest?"
- "Sales per country since 1 November, and my 10 best offers."
- "Am I winning the buy box on EAN 4006381333931? Who is cheaper?"
- "Which customer tickets are still open, and what do they say?"
- "Which returns arrived and are waiting for my decision?"
- "What commission does Kaufland take in the laptop category?"

**Read-only:** every tool is a GET on the official [Marketplace Seller API v2](https://sellerapi.kaufland.com/?page=endpoints).
Nothing here can ship, cancel, refund, reprice or change stock.
**Private:** runs on your machine; your keys never leave it. Buyer names, street addresses, postcodes, e-mails and phone
numbers are removed before anything reaches the AI (city and country are kept for sales-by-region questions).
Set `KAUFLAND_KEEP_PII=1` only if you really want them.

Unofficial; not affiliated with Kaufland.

## Install

```bash
pipx install kaufland-seller-mcp     # or: uvx kaufland-seller-mcp
```

Create your keys: Kaufland seller portal → Settings → API (Client Key, 32 characters; Secret Key, 64 characters).
Check them without any AI:

```bash
KAUFLAND_CLIENT_KEY=... KAUFLAND_SECRET_KEY=... kaufland-seller-mcp --check
```

### Claude Desktop / Claude Code

```json
{
  "mcpServers": {
    "kaufland": {
      "command": "uvx",
      "args": ["kaufland-seller-mcp"],
      "env": {
        "KAUFLAND_CLIENT_KEY": "your client key",
        "KAUFLAND_SECRET_KEY": "your secret key",
        "KAUFLAND_STOREFRONT": "de"
      }
    }
  }
}
```

| Variable | |
|---|---|
| `KAUFLAND_CLIENT_KEY`, `KAUFLAND_SECRET_KEY` | required, from the seller portal |
| `KAUFLAND_STOREFRONT` | optional default storefront (`de`, `at`, `cz`, `sk`, `pl`, `fr`, `it`, `es`, `nl`) |
| `KAUFLAND_USER_AGENT` | optional; defaults to `kaufland-seller-mcp/<version>` |
| `KAUFLAND_PARTNER_CLIENT_KEY`, `KAUFLAND_PARTNER_SECRET_KEY` | only for registered Kaufland technology partners: adds the partner headers |

## Tools (17)

| Tool | API |
|---|---|
| `list_storefronts` | `/info/storefront`, `/info/locale` |
| `list_orders`, `get_order` | `/orders` |
| `list_order_units`, `get_order_unit` | `/order-units` (one per item sold; `need_to_be_sent` = to ship) |
| `list_offers`, `get_offer` | `/units` (price, minimum price, stock, is_live) |
| `buybox_ranking` | `/buybox` (your offer vs competitors on a product) |
| `product_by_ean` | `/products/ean/{ean}` |
| `list_returns`, `list_return_units` | `/returns`, `/return-units` |
| `list_tickets`, `get_ticket`, `list_ticket_messages` | `/tickets` |
| `list_order_invoices` | `/order-invoices` |
| `category_fees` | `/categories` (commission % and fixed fee per category) |
| `sales_overview` | `/order-units`, paged: units and gross revenue per status, storefront, top offers |

Money from the API is in integer cents of the unit's currency (EUR, CZK, PLN…); `sales_overview` converts to units.

## Deutsch, kurz

Nur-Lese-MCP-Server für Kaufland-Marktplatz-Händler: Bestellungen, Angebote, Buy Box, Retouren, Tickets, Gebühren,
Umsatz je Land. Läuft lokal, Schlüssel bleiben auf Ihrem Rechner, Käuferdaten (Name, Adresse, E-Mail, Telefon)
werden vor der KI entfernt. Kann nichts versenden, stornieren, erstatten oder Preise ändern.

## Develop

```bash
pip install -e .[test] && pytest -q
```

Tests check the request signature against Kaufland's published example, every tool against the operations and query
names of Kaufland's `swagger.json`, and run the real server over stdio against a fake API that verifies each signature.

MIT licence. Not tested yet on a live seller account: please open an issue if a call fails.
