What you need
- Node.js 20 or newer.
- A Samsung Food account. Any login method works: Google, Apple or e-mail.
- A desktop browser for the one-time login.
Unofficial. Not affiliated with Samsung or Whisk. It uses a private, undocumented API that can change at any time, and using it may violate Samsung Food’s Terms of Service. Write tools change your real account, including shared lists and meal plans. Read the FAQ before you use it on an account you care about.
Run the setup
npx unofficial-samsung-food-mcp setup
- It checks Node and whether you are logged in. If not, a login page opens in your browser and the terminal shows Connected as <your name>.
- It lists the MCP clients it finds (Claude Code, Claude Desktop, Cursor, VS Code) and asks which to configure; Enter takes all. Config files are backed up first, and only the
samsung-foodentry is touched. For VS Code it prints the snippet. - Restart the client and ask: “What’s on my meal plan this week?”
--dry-run shows what would happen without writing anything, --yes skips the question (for scripts), --remove takes the entries out again.
How the login works
Samsung Food has no OAuth and no API keys, and it signs users in on a separate domain with a captcha and social logins. So the tool takes over the session of your browser instead, which works with every login method.
- A small page opens on your own computer (
http://127.0.0.1:<random port>, only for this login). Drag its button Send to sf login to your bookmarks bar. - Open app.samsungfood.com in the same browser and log in.
- Click the bookmark there. The page checks the session with Samsung Food and shows “Connected as <your name>”.
The button carries a one-time code that expires after 10 minutes and reads only the whisk.USER_TOKEN cookie. The session is stored in ~/.samsung-food/auth.json with mode 600.
Treat the session like a password. Anyone who has it can read and change everything in your Samsung Food account until it expires. Do not paste it into issues, shared documents or chats you do not control.
Sessions last 14 days and renew themselves while you use the tools. After a longer break, run the login again. Without a browser on the machine (SSH, containers), paste the session in the terminal:
sf login --paste # paste, then Ctrl-D
sf status # token, expiry, days left
Pick your client
The setup covers the common clients. These guides show the manual way and the details per client.
Any other MCP client: run npx -y unofficial-samsung-food-mcp and speak MCP over stdio. The server reports itself as samsung-food and offers tools only. Details in docs/mcp-clients.md.
First commands in the terminal
The same package has a CLI, sf. After npm link in a checkout (or a global install) it is on your path:
sf whoami # check the account
sf plan --days 7 # meal plan for the next week
sf list # shopping list
sf pantry # pantry by storage location
sf search "pumpkin soup" # your own saved recipes
sf discover --limit 10 # suggestions from the catalog
Commands that delete or overwrite data ask for confirmation first. All commands are in the CLI reference; when something fails, see troubleshooting.