Skip to main content

MCP Server Setup

The MCP server lets AI assistants query Greek supermarket data directly using the Model Context Protocol.

Prerequisites​

cd mcp
pip install -r requirements.txt

Available Tools​

ToolDescription
get_all_productsGet all products (paginated)
get_number_of_productsGet the total number of available products
get_merchantsList all merchant names
get_categoriesList all product categories
get_products_by_merchantGet products sold by a specific merchant
get_products_by_categoryGet all products within a specific category

Client Configuration​

Claude Desktop​

~/.claude/claude_desktop_config.json

{
"mcpServers": {
"greek-supermarket": {
"command": "python3",
"args": ["/path/to/greek-supermarket/mcp/mcp_server.py"]
}
}
}

Claude Code (CLI)​

.claude/settings.json or ~/.claude/settings.json

{
"mcpServers": {
"greek-supermarket": {
"command": "python3",
"args": ["/path/to/greek-supermarket/mcp/mcp_server.py"]
}
}
}

Cursor​

.cursor/mcp.json

{
"mcpServers": {
"greek-supermarket": {
"command": "python3",
"args": ["/path/to/greek-supermarket/mcp/mcp_server.py"]
}
}
}

Windsurf (Codeium)​

~/.codeium/windsurf/mcp_config.json

{
"mcpServers": {
"greek-supermarket": {
"command": "python3",
"args": ["/path/to/greek-supermarket/mcp/mcp_server.py"]
}
}
}

VS Code (Copilot)​

.vscode/mcp.json

{
"servers": {
"greek-supermarket": {
"command": "python3",
"args": ["/path/to/greek-supermarket/mcp/mcp_server.py"]
}
}
}

Zed​

~/.config/zed/settings.json (or via Agent Panel → Settings → "Add Custom Server")

{
"context_servers": {
"greek-supermarket": {
"command": "python3",
"args": ["/path/to/greek-supermarket/mcp/mcp_server.py"]
}
}
}
tip

Replace /path/to/greek-supermarket/ with the actual path on your machine. If using a virtual environment, point to that Python binary instead.