Skip to main content
Glama
PriceAtlas MCP Server

PriceAtlas MCP Server

by musaceylan

PriceAtlas MCP Server

An MCP (Model Context Protocol) server that exposes the PriceAtlas food price tracking API as tools for AI assistants.

Query global food prices, search products by barcode or name, compare costs across 27 countries, and trigger real-time price scraping — all from Claude, Cursor, Windsurf, or any MCP-compatible client.

Tools

Tool

Description

lookup_product

Look up a product by barcode (EAN/UPC) via Open Food Facts

search_products

Search products by name

get_prices

Get price observations and min/avg stats, optionally filtered by country

submit_price

Submit a price observation for a product at a store

get_world_prices

Get aggregated global prices from Open Food Facts

list_stores

List available stores (68 across 27 countries)

list_countries

List all 27 supported countries with currencies

run_connectors

Scrape fresh prices from 6 sources (OFF, Kroger, Walmart, REWE, Migros, A101)

Related MCP server: Open Food Facts MCP Server

Prerequisites

The PriceAtlas API must be running. This MCP server is a thin wrapper that calls the API over HTTP.

# Clone and run PriceAtlas API (private repo)
cd PriceAtlas
pnpm install
pnpm db:migrate
pnpm db:seed
pnpm dev  # starts API on port 4000

Install

git clone https://github.com/musaceylan/priceatlas-mcp.git
cd priceatlas-mcp
npm install
npm run build

Usage with Claude Desktop

Add to your Claude Desktop config file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

  • Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "priceatlas": {
      "command": "node",
      "args": ["/absolute/path/to/priceatlas-mcp/dist/index.js"],
      "env": {
        "PRICEATLAS_API_URL": "http://localhost:4000"
      }
    }
  }
}

Restart Claude Desktop. You'll see PriceAtlas tools available in the tools menu (hammer icon).

Usage with Claude Code (CLI)

Add to ~/.claude/settings.json:

{
  "mcpServers": {
    "priceatlas": {
      "command": "node",
      "args": ["/absolute/path/to/priceatlas-mcp/dist/index.js"],
      "env": {
        "PRICEATLAS_API_URL": "http://localhost:4000"
      }
    }
  }
}

Restart Claude Code to pick up the new server.

Usage with Cursor

Open Settings > MCP Servers > Add Server and configure:

{
  "priceatlas": {
    "command": "node",
    "args": ["/absolute/path/to/priceatlas-mcp/dist/index.js"],
    "env": {
      "PRICEATLAS_API_URL": "http://localhost:4000"
    }
  }
}

Usage with Windsurf

Add to your Windsurf MCP config (~/.windsurf/mcp.json):

{
  "mcpServers": {
    "priceatlas": {
      "command": "node",
      "args": ["/absolute/path/to/priceatlas-mcp/dist/index.js"],
      "env": {
        "PRICEATLAS_API_URL": "http://localhost:4000"
      }
    }
  }
}

Configuration

Env Variable

Default

Description

PRICEATLAS_API_URL

http://localhost:4000

Base URL of the PriceAtlas API

Example Prompts

Once connected, you can ask your AI assistant:

  • "Look up barcode 8690637050602"

  • "What's the cheapest milk in Germany?"

  • "Compare Nutella prices between Turkey and the US"

  • "Search for 'olive oil' and get prices for the first result"

  • "Run all connectors for barcode 4005808262151 in DE"

  • "List all stores in Turkey"

  • "Which countries have the cheapest pasta?"

Data Sources

The server aggregates data from:

  • Open Food Facts — Global product database + crowdsourced prices

  • Kroger — US grocery chain (requires API keys)

  • Walmart — US retail (requires API key)

  • REWE — German supermarket

  • Migros — Turkish supermarket

  • A101 — Turkish discount store

Architecture

Claude / Cursor / Any MCP Client
        |
        | stdio (JSON-RPC)
        v
  PriceAtlas MCP Server
        |
        | HTTP (fetch)
        v
  PriceAtlas Fastify API (:4000)
        |
        v
  PostgreSQL + Open Food Facts + 6 Connectors

License

MIT

Available Tools

8 tools
get_pricesA

Get price observations and stats for a product. Optionally filter by country. Returns individual observations and min/avg/count stats per country.

Inputs: barcode (required), country.

get_world_pricesA

Get aggregated world prices for a product from Open Food Facts global database. Shows price ranges across countries.

Inputs: barcode (required).

list_countriesA

List all 27 supported countries with their default currencies and regions.

Inputs: no named parameters.

list_storesB

List available stores. Optionally filter by country.

Inputs: country.

lookup_productA

Look up a product by barcode (EAN/UPC). Returns product name, brand, quantity, and image from Open Food Facts.

Inputs: barcode (required).

run_connectorsA

Run all price data connectors (Open Food Facts, Kroger, Walmart, REWE, Migros, A101) to fetch fresh prices for a product in a specific country. Saves results to the database.

Inputs: barcode (required), country_code (required).

search_productsA

Search for products by name. Returns matching products from Open Food Facts.

Inputs: query (required), limit.

submit_priceC

Submit a price observation for a product at a specific store.

Inputs: barcode (required), country_code (required), store_id (required), observed_price (required), +5 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 8 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose: get_prices focuses on detailed price observations per country, get_world_prices provides aggregated global price ranges, list_countries and list_stores handle metadata listing, lookup_product and search_products address product discovery, run_connectors manages data fetching, and submit_price handles price submission. There is no overlap or ambiguity between these functions.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern using snake_case, such as get_prices, list_countries, lookup_product, run_connectors, search_products, and submit_price. This uniformity makes the tool set predictable and easy to understand.

    Tool Count5/5

    With 8 tools, the server is well-scoped for its purpose of price and product data management. Each tool serves a specific role in the workflow, from data retrieval and submission to metadata listing and data updating, without being overly sparse or bloated.

    Completeness4/5

    The tool set covers core operations like retrieving prices, listing metadata, product lookup, data fetching, and price submission, providing good lifecycle coverage. A minor gap is the lack of tools for updating or deleting price data, but agents can work around this by re-submitting or ignoring outdated entries.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Enables AI assistants to access the Open Food Facts database to query detailed food product information, nutritional data, and environmental scores. Supports product lookup by barcode, smart search with filtering, nutritional analysis, product comparison, and dietary recommendations to help users make informed food choices.
      5
      1
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI agents to search and compare Norwegian grocery prices across multiple chains, retrieve price history, and access product details through the kassal.app API.
      MIT