Rami Levy 在线杂货购物
STDIO在线超市API集成的MCP服务器
在线超市API集成的MCP服务器
MCP Server for the Rami Levy Online Grocery Store API. This is a proof of concept implementation that demonstrates how to integrate Rami Levy's e-commerce platform with MCP-enabled LLMs.
search_items
q
(string): Search querystore
(string, optional): Store identifier (default: "331")aggs
(number, optional): Aggregation flag (default: 1)add_to_cart
store
(string): Store identifier (e.g., "331")items
(array): List of items to add, each containing:
id
(number): Product identifierquantity
(number): Quantity to add (minimum: 1)remove_from_cart
store
(string): Store identifieritems
(array): Updated list of items to keep in cartupdate_quantity
store
(string): Store identifierid
(number): Product identifiernewQuantity
(number): New quantity for the product (minimum: 1)rami-levy://checkout
This MCP server requires authentication tokens from an active Rami Levy session. To obtain these:
RAMI_LEVY_API_KEY
: The token after "Bearer" in the Authorization headerECOM_TOKEN
: The full ecomtoken header valueCOOKIE
: The complete cookie header valueCreate a .env
file with the following variables:
RAMI_LEVY_API_KEY=your_api_key_here ECOM_TOKEN=your_ecom_token_here COOKIE=your_cookie_string_here
Add the following to your claude_desktop_config.json
:
{ "mcpServers": { "rami-levy": { "command": "npx", "args": [ "-y", "@modelcontextprotocol/server-rami-levy" ], "env": { "RAMI_LEVY_API_KEY": "<YOUR_API_KEY>", "ECOM_TOKEN": "<YOUR_ECOM_TOKEN>", "COOKIE": "<YOUR_COOKIE>" } } } }
npm install
npm run build
npm start
⚠️ Important: This is a proof of concept implementation. Please note:
Issues and pull requests are welcome! Please ensure you don't commit any sensitive information like authentication tokens.
This project is licensed under the MIT License. See the LICENSE file for details.
This is an unofficial project and is not affiliated with or endorsed by Rami Levy Chain Stores Ltd. All product names, logos, and brands are property of their respective owners.