by hung-ngm
An experimental Model Context Protocol (MCP) server implementation that allows AI assistants to search for product information from Australia's major supermarkets: Coles and Woolworths. This server exposes product search functionality through the MCP protocol, making it easy for AI assistants to retrieve product pricing and details.
https://github.com/user-attachments/assets/0af3b07a-578a-4112-acfe-e7a7eee31161
git clone https://github.com/hung-ngm/coles-woolworths-mcp-server.git
cd coles-woolies-mcp
Install the prerequisites
Configure your MCP client to use this server (see Integrating with MCP Clients)
uv
package manageruv is a fast Python package installer and resolver. To install:
curl -LsSf https://astral.sh/uv/install.sh | sh
powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
uv
to install dependencies:# Install dependencies uv pip install fastmcp requests python-dotenv
The server uses the following environment variables:
COLES_API_KEY
: API key for accessing the Coles API (required for Coles product searches)You can set these variables in a .env
file in the project directory.
To run the Coles and Woolworths MCP server directly using uv
:
uv run main.py
By default, the server runs with stdio transport for MCP client integration.
To use the Coles and Woolworths MCP server with Claude Desktop:
claude_desktop_config.json
)mcpServers
section:*Configuration content*
Replace /full/path/to/coles-woolies-mcp/main.py
with the absolute path to your main.py file.
To integrate with Cursor IDE:
mcpServers
section:*Configuration content*
The Coles and Woolworths MCP server exposes the following tools:
get_coles_products
: Search for products at Coles supermarkets with optional store selectionget_woolworths_products
: Search for products at Woolworths supermarketsYou can use the tools in Claude like this:
Could you check the price of Cadbury chocolate at both Coles and Woolworths?
Claude will then use the appropriate tools to search for the products and return the results.
No version information available
0 contributors