How frederoover/ah-be-mcp works
ah-be-mcp is a local stdio MCP server that exposes Albert Heijn Belgium tools to AI clients. The principal workflow is an assistant request, MCP tool dispatch, and a domain operation through appie-go to AH, followed by a result returned to the assistant. Its capabilities cover product search and details, bonus offers, cart/list management, account actions, orders and receipts, and update checks. The sampled implementation is concentrated in main.go; unsampled tool handlers are included only at the documented capability level, so their internal calls are not expanded.
Main entry points: main.go Tool dispatch and access
Components 14
MCP interface
- stdio MCP server
main.go - Tool dispatch and access
main.go
Shopping tools
- Product search and details
main.go - Bonus offers and periods
main.go - Winkelmandje tools
main.go
Account tools
- Login and member profile
main.go - Orders and receipts
main.go
Local operations
- Update check
main.go
Other components
- AI assistant
- appie-go client
- AH private API
- Local token file
- Web browser
- GitHub releases API
Connections 17
- AI assistant → stdio MCP server: sends tool requests
README.md - stdio MCP server → Tool dispatch and access: dispatches tools
main.go - Tool dispatch and access → Product search and details: routes requests
main.go - Tool dispatch and access → Bonus offers and periods: routes requests
main.go - Tool dispatch and access → Winkelmandje tools: routes requests
main.go - Tool dispatch and access → Login and member profile: routes requests
main.go - Tool dispatch and access → Orders and receipts: routes requests
README.md - Tool dispatch and access → Update check: routes requests
main.go - Login and member profile → Web browser: opens login
main.go - Login and member profile → appie-go client: logs in and reads member
main.go - Login and member profile → Local token file: saves credentials
README.md - Product search and details → appie-go client: searches and reads products
main.go - Bonus offers and periods → appie-go client: reads bonus data
main.go - Winkelmandje tools → appie-go client: reads and patches list
main.go - Orders and receipts → appie-go client: reads orders and receipts
README.md - appie-go client → AH private API: calls AH
README.md - Update check → GitHub releases API: checks latest release
main.go