Supports environment variable configuration for API keys and other settings through .env files
Provides repository access for cloning and installing the MCP server
Coles and Woolworths MCP Server
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.
Demo
Use with Claude Desktop
https://github.com/user-attachments/assets/0af3b07a-578a-4112-acfe-e7a7eee31161
Features
- Product Search: Search for products at both Coles and Woolworths supermarkets
- Price Comparison: Get pricing information from both retailers in a consistent format
- Store Selection: Search specific Coles stores using store IDs
- Result Limiting: Control how many products are returned in search results
Quick Start for Claude Desktop, Cursor, and other clients
- Clone this repository
- Navigate to the project directory
- Install the prerequisites
- Configure your MCP client to use this server (see Integrating with MCP Clients)
Installation
Prerequisites
- Python 3.8 or higher
- The
uv
package manager
Installing uv
uv is a fast Python package installer and resolver. To install:
macOS/Linux:
Windows:
Setup
- Clone the repository and navigate to the project directory
- Use
uv
to install dependencies:
Configuration
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.
Running the Server
To run the Coles and Woolworths MCP server directly using uv
:
By default, the server runs with stdio transport for MCP client integration.
Integrating with MCP Clients
Claude Desktop Configuration
To use the Coles and Woolworths MCP server with Claude Desktop:
- Locate your Claude Desktop configuration file (usually
claude_desktop_config.json
) - Add the following configuration to the
mcpServers
section:
Replace /full/path/to/coles-woolies-mcp/main.py
with the absolute path to your main.py file.
- Restart Claude Desktop for the changes to take effect
Cursor IDE Configuration
To integrate with Cursor IDE:
- Open your Cursor configuration file
- Add the following to the
mcpServers
section:
Available Tools
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 supermarkets
Example Usage in Claude
You can use the tools in Claude like this:
Claude will then use the appropriate tools to search for the products and return the results.
Requirements
- Python 3.8 or higher
- fastmcp package
- requests package
- python-dotenv package
- MCP-compatible client (Claude Desktop, Cursor, etc.)
Exposes api data
Related MCP Servers
- -securityAlicense-qualityInteracting with Perplexity API.Last updated -144PythonMIT License
- -securityFlicense-qualityFacilitates retrieval of National Park Services data using the NPS API, allowing users to list national parks by state and access detailed information about specific parks.Last updated -35,3231TypeScript
- -securityFlicense-qualityFetch Pokémon data from PokéAPILast updated -Python
- -securityAlicense-qualityReal-time access to cryptocurrency data from the CoinMarketCap API.Last updated -241TypeScriptMIT License