mon-marche-mcp
Enables an AI assistant to search the mon-marche.fr grocery catalog and build a basket, stopping at the cart without automating payment.
README
mon-marche-mcp
An MCP server that lets an AI assistant search the mon-marché catalog and build a grocery basket from a few instructions. It is a thin, pure-HTTP client over mon-marché's internal API (the Keplr commerce platform) and Constructor.io search — no browser automation.
It deliberately stops at the cart: there is no checkout or payment tool. You review the basket and pay yourself on the website.
Tools
| Tool | Purpose | Auth |
|---|---|---|
search_products |
Search the catalog (name, slug, price, bio/anti-gaspi) | none |
get_product |
Resolve a slug to its article id + SKU | none |
add_to_cart |
Set the quantity of one product (by slug) | sign-in |
add_many_to_cart |
Build a whole basket in one call | sign-in |
view_cart |
Show lines and total | sign-in |
remove_from_cart |
Remove a line by article id | sign-in |
clear_cart |
Empty the cart (does not delete it) | sign-in |
my_usual_products |
List most frequently ordered products | sign-in |
list_delivery_slots |
List bookable delivery slots for the saved address | sign-in |
set_delivery_slot |
Attach a slot — creates the cart | sign-in |
Order flow
A cart can only hold products once a delivery slot is attached. Authentication is automatic from the env credentials (it uses a bearer token and a session cookie). Follow this sequence:
- Find products —
my_usual_products(frequently ordered) and/orsearch_products. - Pick a slot —
list_delivery_slots, choose aslotId. - Create the cart —
set_delivery_slot(slotId). This creates the cart (or updates the slot on an existing one) and is required before adding products. Skipping it makesadd_to_cart/add_many_to_cartfail with404 "Le panier est introuvable". - Add products —
add_to_cart/add_many_to_cart(by slug). - Confirm —
view_cart.
Checkout and payment are intentionally not automated — review and pay on the website.
Setup
npm install
cp .env.example .env # fill in MM_EMAIL / MM_PASSWORD
npm run build
The account in .env must already have a delivery zone/address configured on the website —
the cart is tied to that.
Run
npm run dev # tsx, reads .env
# or
npm run build && npm start
Register with an MCP client
{
"mcpServers": {
"mon-marche": {
"command": "node",
"args": ["/absolute/path/to/mon-marche-mcp/dist/server.js"],
"env": {
"MM_EMAIL": "you@example.com",
"MM_PASSWORD": "your-password"
}
}
}
}
Configuration
| Var | Required | Default |
|---|---|---|
MM_EMAIL |
for cart ops | — |
MM_PASSWORD |
for cart ops | — |
MM_BASE_URL |
no | https://www.mon-marche.fr |
MM_CONSTRUCTOR_KEY |
no | public key from the site bundle |
Notes & caveats
- No payment. By design. The assistant fills the cart; you check out manually.
- Unofficial API. mon-marché has no public API; this calls the same endpoints the website uses. It may change without notice — keep usage personal, single-account, and low-rate, and review your basket before paying. This may run against the site's terms of service; use at your own discretion.
- Cart shape. The authenticated cart is normalized in
src/client.ts(normalizeCart). The upstream API uses cents; tools expose euros. Line quantity comes fromquotation.count, unit price fromitemPrice, cart total fromprice.quotation.preauthorization(includes shipping + prep fee). clear_cartonly empties. There is no endpoint to fully delete a cart —DELETE /api/cartclears the contents but the cart shell and its delivery slot persist for the period. So theGET /api/cart→ 404 ("no cart") state cannot be reproduced once a cart exists;set_delivery_slotthen just updates the slot instead of creating a new cart.
Verified API contract
Reverse-engineered from the site's JS bundle and confirmed live. Base
https://www.mon-marche.fr.
| Operation | Call |
|---|---|
| Sign in | POST /api/auth/signin {email, password} → bearer token in body + Set-Cookie. Send both Authorization: Bearer <t> and Cookie on later calls. |
| Search | GET ac.cnstrc.com/search/{q}?key=<MM_CONSTRUCTOR_KEY>&c=ciojs-client-2.45.0&... (no auth) |
| Resolve product | GET /api/articleDetailBySlug/{slug} → { id, sku, name } |
| Usual products | GET /api/account/top-products → { items: [...] } |
| Saved addresses | GET /api/account/addresses → { items: [...] } |
| Delivery slots | POST /api/addresses/deliverySlots2 { postalCode, countryCode, location } → { deliveryZones: [{ name, deliverySlots: [{ id, from, to, orderUntil, isExpired, isFull }] }] } |
| Create/set delivery | PATCH /api/cart/delivery2 { timeSlot, delivery: { note, address, deliveryZone }, reasonForChange } — creates the cart |
| Add one | PATCH /api/cart/product { product: { id, quantity } } |
| Add many | PATCH /api/cart/products { products: [{ id, quantity }] } |
| View cart | GET /api/cart |
| Empty cart | DELETE /api/cart (empties only) |
| Payment | PUT /api/cart/createPaymentIntent — never call; out of scope |
License
MIT. Note: this license covers only this project's code. It grants no rights to mon-marché's API, data, or trademarks, and does not override the site's terms of service.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。