Willys MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Willys MCP Serverwhat's in my cart?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Willys MCP Server
An MCP (Model Context Protocol) server for Willys — Sweden's largest grocery chain. Control your shopping cart, browse orders, search products, and get AI-powered recommendations directly from Claude Code or any MCP client.
Features
19 MCP Tools — Cart, orders, search, delivery slots, promotions, and more
Smart Matching — AI-powered product recommendations using your purchase history (OpenAI embeddings + sqlite-vec)
Web Interface — Next.js app for browsing orders and testing features
Persistent Sessions — SQLite-backed with 24h expiration
Order Caching — Reduces API calls by 80-90%
Quick Start
git clone https://github.com/yourusername/willys-checklist.git
cd willys-checklist
npm installCreate .credentials in the project root:
your-email@example.com
your-passwordClaude Code Integration
Add to ~/.claude.json:
{
"mcpServers": {
"willys-checklist": {
"type": "stdio",
"command": "npx",
"args": ["tsx", "/absolute/path/to/willys-checklist/mcp-server.ts"]
}
}
}Restart Claude Code. Then just ask:
"Log in to Willys and show me my cart" "Search for havremjölk" "What did I order last week?" "Add Oatly Barista to my cart"
Web Interface
npm run devMCP Tools
Auth
Tool | Description |
| Login, returns session ID |
| Clear session |
| Check auth status |
Cart
Tool | Description |
| Get cart contents |
| Add product (e.g., |
| Remove product |
| Start checkout |
Orders
Tool | Description |
| Order history |
| Full order with items |
Search
Tool | Description |
| Product search |
| Autocomplete |
| Product info |
| Your frequent items |
| AI-powered matching |
Delivery
Tool | Description |
| Delivery times |
| Pickup times |
| Book slot |
Other
Tool | Description |
| Current promotions |
| Profile & bonus |
Smart Product Matching
Enable AI-powered recommendations by setting:
export OPENAI_API_KEY=sk-...The system uses your purchase history + semantic search to find products you're likely to want.
Project Structure
├── mcp-server.ts # Stdio MCP server
├── app/ # Next.js web UI
├── lib/
│ ├── database.ts # SQLite layer
│ ├── mcp-auth.ts # Puppeteer login
│ ├── mcp-orders.ts # API operations
│ ├── mcp-session-store.ts
│ ├── embeddings.ts # OpenAI embeddings
│ └── types.ts
├── actions/ # Server actions
└── components/ # React componentsDevelopment
npm run dev # Dev server (port 3000)
npm run lint # Biome check
npm run format # Biome formatNotes
Product codes:
101175556_STformatFull Swedish character support (ö, ä, å)
Sessions expire after 24 hours
CSRF handling built-in
Troubleshooting
MCP not connecting?
Check the path in ~/.claude.json is absolute. Verify npx tsx works.
Login fails?
Check .credentials file. Puppeteer may need deps on Linux.
Smart matching empty?
Set OPENAI_API_KEY. First run indexes history.
License
MIT License
Copyright (c) 2025
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Disclaimer: Not affiliated with Willys or Axfood. Use responsibly.
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/jimmystridh/willys-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server