Skip to main content
Glama
musaceylan

PriceAtlas MCP Server

by musaceylan

get_world_prices

Retrieve global price ranges for products across 27 countries using barcode data to compare international food costs.

Instructions

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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
barcodeYesProduct barcode (8-14 digits)

Implementation Reference

  • The implementation of the get_world_prices MCP tool, which queries the Open Food Facts API for world prices based on a barcode.
    server.tool(
      'get_world_prices',
      'Get aggregated world prices for a product from Open Food Facts global database. Shows price ranges across countries.',
      { barcode: z.string().describe('Product barcode (8-14 digits)') },
      async ({ barcode }) => {
        try {
          const result = await api(`/api/world-prices?barcode=${barcode}`);
          return text(result);
        } catch (e) {
          return errorResult(`World prices failed: ${(e as Error).message}`);
        }
      },
    );

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/musaceylan/priceatlas-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server