关于 La Carotte — Produits Locaux & Circuits Courts
La Carotte MCP Server 将 La Carotte 的本地农产品目录提供给 AI Agent,涵盖水果、蔬菜、奶酪等商品。它支持实时库存和配送区域查询,并提供持久化购物篮操作。
主要功能
- 01搜索本地产品目录
- 02实时查询库存
- 03检查配送区域
- 04获取结账信息
- 05创建和管理持久化购物篮
适用场景
- 01查找当地农场产品
- 02下单前核对库存和配送范围
- 03通过 Agent 添加或移除购物篮商品
MCP 相关
该 MCP 服务向 AI Agent 暴露产品搜索、库存、配送区域、结账信息和购物篮工具,并通过 SSE 提供 MCP 连接。
配置
远程服务无需本地安装。选择你使用的客户端,复制配置或使用一键安装。
服务地址
https://mcp.la-carotte.fr/mcp一键复制安装命令
Claude CodeTerminal
claude mcp add --transport http lacarotte-mcp-public https://mcp.la-carotte.fr/mcpCursor.cursor/mcp.json
{"mcpServers":{"lacarotte-mcp-public":{"type":"http","url":"https://mcp.la-carotte.fr/mcp"}}}在 Cursor 中打开VS Code.vscode/mcp.json
{"servers":{"lacarotte-mcp-public":{"type":"http","url":"https://mcp.la-carotte.fr/mcp"}}}在 VS Code 中打开Claude Desktopclaude_desktop_config.json
{"mcpServers":{"lacarotte-mcp-public":{"type":"http","url":"https://mcp.la-carotte.fr/mcp"}}}Windsurf~/.codeium/windsurf/mcp_config.json
{"mcpServers":{"lacarotte-mcp-public":{"serverUrl":"https://mcp.la-carotte.fr/mcp"}}}命令在终端中运行;JSON 粘贴到对应客户端的 MCP 配置后重启。需要授权的服务会在首次连接时提示登录。
工具
11| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| query | string | 否 | 自由搜索关键词 |
| category | string | 否 | 产品类别 |
| producer | string | 否 | 生产者名称 |
| label | string | 否 | 质量认证标签:bio、AOP、Label Rouge 等 |
| price_max_eur | number | 否 | 最高价格(欧元) |
| sort_by | enum | 否 | 排序条件pertinence | prix_asc | prix_desc | distance | fraicheur |
| page | integer | 否 | 页码 |
| per_page | integer | 否 | 每页结果数 |
| tenant_id | string | 否 | 地区标识符 |
详细介绍
LaCarotte MCP 服务
LaCarotte 的 MCP(Model Context Protocol)服务 — 向 AI Agent 提供本地短供应链商品目录。
快速开始
# Installation
npm install
# Copier la config
cp .env.example .env
# Éditer .env avec vos valeurs
# Développement
npm run dev
# Build
npm run build
# Production
npm start
架构
src/
├── server.ts # Point d'entrée — serveur MCP + Express SSE
├── config/ # Configuration centralisée
├── tools/
│ ├── catalog/ # Phase 1 — Recherche, stock, zones
│ ├── cart/ # Phase 2 — Panier persistant
│ ├── checkout/ # Checkout info
│ ├── sharing/ # Phase 2 — Partage multicanal
│ ├── loyalty/ # Phase 3 — Abonnements, alertes, surprise
│ └── analytics/ # Phase 3-4 — Dashboard
├── resources/ # Resource MCP (store-context)
├── middleware/ # Pré-lancement, rate limiting, analytics
├── services/ # Client HTTP LaCarotte, email, SMS
├── db/ # Client MongoDB + collections
├── schemas/ # Schemas Zod
└── types/ # Types TypeScript
可用的 MCP 工具
阶段 1 — 商品目录基础功能
search_products— 在目录中进行增强搜索check_stock— 实时库存检查check_delivery_zone— 配送区域检查get_checkout_info— 购物车摘要
阶段 2 — 交易
create_basket— 创建持久化购物车add_to_basket— 添加到购物车get_basket— 查看购物车remove_from_basket— 从购物车中移除
端点
GET /health— 健康检查GET /sse— MCP SSE 连接POST /messages— MCP 消息
环境
完整变量列表请参阅 .env.example。
测试
npm test
评论
支持 Markdown
一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。