MCP ExplorerExplorer

Groceries Mcp

@o-b-oneon 10 months ago
3 MIT
FreeCommunity
AI Systems
An mcp server for groceries vendors

Overview

What is Groceries Mcp

groceries-mcp is an MCP server designed for groceries vendors, enabling functionalities such as searching for groceries and updating shopping carts through vendor APIs.

Use cases

Use cases include adding items to a shopping cart automatically, searching for specific grocery items, and managing grocery inventories for vendors.

How to use

To use groceries-mcp, set up the environment variables, update the necessary configuration files, and run the server using Docker. You can also integrate it with Claude Desktop by modifying the configuration file.

Key features

Key features include automatic cart creation based on a provided list and the ability to look up groceries using vendor APIs.

Where to use

groceries-mcp can be used in e-commerce platforms, grocery delivery services, and any application that requires integration with groceries vendor APIs.

Content

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
  1. 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,
});
  1. 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

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.

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers