概要
What is Mon Marché MCP Server?
Mon Marché MCP Server is a Model Context Protocol (MCP) server that connects LLMs to the Mon Marché French grocery store. It enables AI assistants to search for products, manage a shopping cart, and interact with the Mon Marché platform.
How to use Mon Marché MCP Server?
Install the server by cloning the repository, running npm install, and configuring a .env file with your Mon Marché email and password. Authenticate with npm run login, then start the server with node dist/index.js. You can also use CLI tools like npm run searchProducts "pomme" or test interactively with the MCP Inspector via npx @modelcontextprotocol/inspector node dist/index.js.
Key features of Mon Marché MCP Server
- Product search by name.
- Add items to cart with quantity.
- View current cart contents.
- Clear entire cart.
- Automated login and session persistence.
- CLI tools for quick testing.
Use cases of Mon Marché MCP Server
- An AI assistant helps a user find a product and add it to their cart.
- Automating a weekly grocery shopping list from a recipe.
- Integrating with a meal planner to directly add missing ingredients.
- Testing cart operations via command-line scripts.
FAQ from Mon Marché MCP Server
What prerequisites are needed?
You need Node.js v16 or higher, npm or yarn, and a valid Mon Marché account.
How do I authenticate?
Run npm run login after configuring your credentials in .env. This saves session cookies to session-cookie.json. Re-run the command if your session expires.
What if I get session errors?
Run npm run login to refresh your session cookies. Also ensure your email and password in .env are correct.
How can I test the server without an MCP client?
Use the provided CLI tools: npm run searchProducts, npm run addProduct, npm run getCartList, and npm run clearCart for direct testing.
Can I use the server without a Mon Marché account?
No, a valid Mon Marché account is required for authentication and cart operations.