
skunkobi/mcp-leclerc-drive
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
E.Leclerc Drive용 MCP 서버
개요
첫 번째 오픈 소스 — Claude Search 제품을 관리하고, 카트를 관리하고, 웹 사이트를 통해 클릭 대신 grocery 명령을 기본적으로 준비하십시오. All 모든 8 가지 도구는 유효 기간을 종료합니다. 요청은 내부에서 실행, 그래서 그들은 DataDome의 봇 보호를 통과 (헤드리스 클라이언트와 쿠키 재생 차단). 열린 창에서 한 번 Leclerc Drive로 로그인합니다. 세션 persists. docs/api-capture.md는 역설계 API를 참고한다. E.Leclerc 드라이브에는 공개 API가 없습니다. 오늘 자동화하는 유일한 방법은 브라우저 자동화입니다 — 느린 (~3–5 항목 당 s) 과 fragile (blind clicks). 이 프로젝트는 적절한 MCP 도구로 통합 작업을 노출하므로 MCP 클라이언트 (Claude Desktop, Claude Code)는 직접 구동 할 수 있습니다. - [x] 역설계자 Leclerc 드라이브 엔드포인트 (검색 / 카트 / 매장 찾기 - docs/api-capture를 참조하십시오.
개요(AI 번역)
E.Leclerc Drive의 첫 번째 오픈 소스 ** MCP 서버 ** - Claude 검색 제품을 관리하고, 카트를 관리하고, 웹 사이트를 통해 클릭 대신 grocery 명령을 기본적으로 준비하십시오.
v0.3 - 작업 및 DataDome-proof. 모든 8 가지 도구는 유효 기간에 대한 종료됩니다. 요청은 CDP**를 통해 구동되는 **real Chrome 내부에서 실행되므로 DataDome의 봇 보호(헤드리스 클라이언트 및 쿠키 재생 차단)를 통과합니다. 열린 창에서 한 번 Leclerc Drive로 로그인합니다. 세션 persists.
docs/api-capture.md] 역설계 API를 참고하세요.
왜
E.Leclerc 드라이브에는 공개 API가 없습니다. 오늘 자동화하는 유일한 방법은 브라우저 자동화입니다 — 느린 (~3–5 항목 당 s) 과 fragile (blind clicks). 이 프로젝트는 적절한 MCP 도구로 통합 작업을 노출하므로 MCP 클라이언트 (Claude Desktop, Claude Code)는 직접 구동 할 수 있습니다.
도구
| 도구 | 설명 |
인포메이션
| find_stores(query) | 우편번호나 도시 근처 드라이브 찾기 → 이름, 아이디, 서비스 유형, 거리, 호스트. |
| set_store(store_id) | 선택・이동 점포를 기억해 주십시오. ·
| [T3] | 엄선된 점포를 소개합니다. |
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
mcp-leclerc-drive
The first open-source MCP server for E.Leclerc Drive — let Claude search products, manage a cart, and prepare grocery orders natively, instead of clicking through the website.
🟢 v0.3 — working & DataDome-proof. All eight tools are validated end-to-end against the live site. Requests run inside a real Chrome driven over CDP, so they pass DataDome’s bot protection (which blocks headless clients and cookie-replay). You log into Leclerc Drive once in the window that opens; the session persists. See
docs/api-capture.mdfor the reverse-engineered API.
Why
E.Leclerc Drive has no public API. Today the only way to automate it is browser automation — slow (~3–5 s per item) and fragile (blind clicks). This project exposes the underlying operations as proper MCP tools so any MCP client (Claude Desktop, Claude Code) can drive it directly.
Tools
| Tool | Description |
|---|---|
find_stores(query) |
Find drives near a postal code or city → name, id, service type, distance, host. |
set_store(store_id) |
Select & remember the active store (resolves the right host automatically). |
get_store() |
Show the currently selected store. |
search_product(query) |
Search the catalogue → products with price, price/kg, Nutri-Score, availability, and an id. |
add_to_cart(product_id, quantity?) |
Add a product to the cart. |
remove_from_cart(product_id) |
Remove a line from the cart. |
update_quantity(product_id, quantity) |
Set a line’s quantity (0 removes it). |
get_cart() |
Read the full cart with total. |
Status
- [x] Reverse-engineer Leclerc Drive endpoints (search / cart / store locator — see
docs/api-capture.md) - [x] All 8 tools validated end-to-end against the live store
- [x] Runtime store selection with persistence (
find_stores/set_store) - [x] v0.3: DataDome-proof via real-Chrome CDP driving (beats active bot-challenge that killed cookie-replay) ✅
- [x] Published to npm + MCP registry
- [ ] Checkout / delivery-slot booking
Requirements
- Node.js ≥ 22 (uses the built-in
WebSocket) - Google Chrome installed (the server drives it via CDP)
Install (development)
git clone https://github.com/skunkobi/mcp-leclerc-drive.git
cd mcp-leclerc-drive
npm install
npm run build
How auth works (real Chrome via CDP)
Leclerc Drive is protected by DataDome, which blocks non-browser traffic (headless clients, cookie-replay) with HTTP 403 once it escalates to active challenge mode. The only thing that reliably passes is a real browser that executes the challenge. So that’s what the server uses:
- On first request it launches your installed Google Chrome with a
dedicated, persistent profile (
~/.mcp-leclerc-drive/chrome) and a debug port — no automation flags, sonavigator.webdriverstaysfalse.
설치
npx -y mcp-leclerc-drive설정
{
"mcpServers": {
"leclerc-drive": {
"command": "npx",
"args": ["-y", "mcp-leclerc-drive"]
}
}
}