
The idea of the project is to create a command line utility that can automate certain tasks on the Kroger's website.
At this moment the application can:
The script works on kroger.com and other Kroger-owned grocery stores (Ralphs, Fry's, Fred Meyer, Dillons, Food 4 Less, etc).
You can download the latest version from the GitHub's releases tab.
git clone git@github.com:Shmakov/kroger-cli.git && cd ./kroger-clipython3.8 -m venv ./venv (you might need to install sudo apt-get install python3.8-venv)source venv/bin/activatepip install -r requirements.txtpython -m kroger_cliThe application support non-interactive mode by passing a name of a command. An example on how to complete Kroger's Survey: kroger-cli survey.
Please use kroger-cli --help to see list of all available commands. Alternatively you can run the application without any command to launch the interactive mode (you can see the screenshot of it below).




The initial plan was to use plain HTTP (and requests package), however I couldn't sign in to the Kroger's website using it. Possibly had to do with csrf token validation and/or JavaScript-based protection. Because of that I had to use pyppeteer, which is a python's port of Puppeteer (Headless Chrome).
$ claude mcp add kroger-cli \
-- python -m otcore.mcp_server <graph>