Groceries MCP Server

by o-b-one

3 stars
231 downloads
Not rated
GitHub

About

It is an MCP server that interfaces with grocery vendor APIs (such as Rami Levy and Keshet), enabling users to search for groceries and manage cart updates automatically. It is intended for developers building AI‑powered grocery assistants.

Details

Author
o-b-one
GitHub stars
3
Downloads
231
Categories
Other

- Automatic cart creation: adds items to the cart from a provided list.
- Grocery lookup: searches for groceries via vendor APIs.
- Two MCP tools: add_items_to_cart and search.
- Supports multiple grocery vendors (e.g., Rami Levy, Keshet).

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Groceries MCP Server
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Obtain a vendor API key and account ID from the vendor’s website (e.g., from localStorage on the Rami Levy site). Set environment variables (VENDOR_API_KEY, VENDOR_ACCOUNT_ID) in a .env file or in the Claude Desktop configuration. Then run the server via uv run mcp-groceries-server --vendor <vendorName> or use the provided Docker image.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "groceries mcp server": {
            "groceries": {
                "command": "uv",
                "args": [
                    "run",
                    "mcp-groceries-server",
                    "--vendor",
                    "<vendorName # rami-levy, keshet e.g>"
                ],
                "env": {
                    "VENDOR_API_KEY": "<YOUR_API_TOKEN>",
                    "VENDOR_ACCOUNT_ID": "<VENDOR_ACCOUNT_ID>"
                }
            }
        }
    }
}

McpServers

{
    "groceries": {
        "command": "uv",
        "args": [
            "run",
            "mcp-groceries-server",
            "--vendor",
            "<vendorName # rami-levy, keshet e.g>"
        ],
        "env": {
            "VENDOR_API_KEY": "<YOUR_API_TOKEN>",
            "VENDOR_ACCOUNT_ID": "<VENDOR_ACCOUNT_ID>"
        }
    }
}

Groceries MCP Server

---

MCP Server for different Groceries vendor API, enabling searching groceries and cart update.

Features

- Automatic cart creation: add items to the cart based on a provided list
- Groceries lookup: lookup for groceries using vendor API

Tools

1. add_items_to_cart - Add groceries to the basket. - Inputs: - items(list[CartItemScheam]): items to add to the cart - Returns: Updated cart 2. search - Lookup for item in the vendor - Inputs: - item (string): Items to - Returns: list of items corresponding to search term

Setup

Extract Environment Variables

Rami Levy

1. log in to the Rami Levy site 2. In developer tools (click on F12) and execute:
const state = JSON.parse(localStorage.ramilevy);
console.log({
    "VENDOR_ACCOUNT_ID": state.authuser.user.id,
    "VENDOR_API_KEY": state.authuser.user.token,
});
3. Replace environment variables with the printed values

Local usage

1. Update the .env file using env.template (requires Gemini) 2. Update the grocery.txt 3. Run make compile start_agent

Usage with Claude Desktop

To use this with Claude Desktop, add the following to your claude_desktop_config.json:

UV

{
  "mcpServers": {
    "groceries": {
      "command": "uv",
      "args": [
        "run",
        "mcp-groceries-server",
        "--vendor",
        vendorName # rami-levy, keshet e.g
      ],
      "env":{
        "VENDOR_API_KEY": "<YOUR_API_TOKEN>",
        "VENDOR_ACCOUNT_ID": "<VENDOR_ACCOUNT_ID>"
      }
    }
  }
}

Build

Docker build:

docker build -t mcp-groceries-server .

License

This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.