Back to Browse

Serbia Prices MCP Server

by Moskrc
Developer ToolsLow Risk10.0MCP RegistryLocal
Free

Server data from the Official MCP Registry

Grocery prices of Serbian retail chains from data.gov.rs open data.

About

Grocery prices of Serbian retail chains from data.gov.rs open data.

Security Report

10.0
Low Risk10.0Low Risk

Valid MCP server (0 strong, 3 medium validity signals). No known CVEs in dependencies. Imported from the Official MCP Registry. 1 finding(s) downgraded by scanner intelligence.

12 files analyzed · 1 issue found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Required

This plugin requests these system permissions. Most are normal for its category.

HTTP Network Access

Connects to external APIs or services over the internet.

file_system

Check that this permission is expected for this type of plugin.

What You'll Need

Set these up before or after installing:

Directory for the downloaded prices databaseOptional

Environment variable: SERBIA_PRICES_MCP_DATA_DIR

How to Install

Add this to your MCP configuration file:

{
  "mcpServers": {
    "serbia-prices-mcp": {
      "command": "uvx",
      "args": [
        "serbia-prices-mcp==0.1.6"
      ],
      "env": {
        "SERBIA_PRICES_MCP_DATA_DIR": "your-serbia-prices-mcp-data-dir-here"
      }
    }
  }
}

Some servers take additional arguments. See the repository for details.

Documentation

View on GitHub

From the project's GitHub README.

serbia-prices-mcp

An MCP server for grocery prices in Serbia. It downloads the daily price lists that retail chains publish on data.gov.rs, stores them in a local DuckDB file and lets an AI assistant search, compare and price a shopping list across chains.

Chains: Lidl, Maxi (also Mega Maxi, Shop&Go), Idea (also Mercator, Roda), Univerexport, Gomex, Aman, Metro, dm, Aroma, Svetofor and Veropoulos, the major chains in Belgrade and Novi Sad.

It runs on your computer. There is no account, API key or hosted service.

Why

The chains publish their prices as open data, but in a form that is hard to use directly: one CSV per chain, each with its own column names, unit spellings and encoding problems. The portal has no search and no way to compare chains. This server normalizes the files into one table.

Example questions

You can ask in any language. The assistant translates product names to Serbian before calling the tools.

  • "Price a weekly basket for two in every store: 2 l of milk, bread, 10 eggs, chicken breast, cheese, bananas, coffee. Which store is cheapest and how much do I save compared to the most expensive one?"
  • "I'm cooking carbonara for six. Price the ingredients in Maxi, Lidl and Idea."
  • "Show the 10 biggest discounts on meat and say which ones look inflated."
  • "Which Lidl and Maxi promotions end tomorrow?"
  • "Where is Coca-Cola 2 l cheapest, and is the two-pack promotion a better deal?"
  • "Find Lurpak butter 250 g and compare that exact product across all chains."
  • "How has the price of 2.8% milk changed since September in Maxi and Idea?"

Install

You need uv. The server uses the stdio transport, so it works in clients that start local MCP servers: Claude Code, Claude Desktop, Codex, Antigravity, Cursor, VS Code. It does not work in web-only clients such as ChatGPT or claude.ai in the browser.

Claude Code

claude mcp add --scope user serbia-prices -- uvx serbia-prices-mcp

Codex

codex mcp add serbia-prices -- uvx serbia-prices-mcp

or in ~/.codex/config.toml:

[mcp_servers.serbia-prices]
command = "uvx"
args = ["serbia-prices-mcp"]

Antigravity

agy mcp add serbia-prices uvx serbia-prices-mcp

Claude Desktop (claude_desktop_config.json), Cursor (~/.cursor/mcp.json)

{ "mcpServers": { "serbia-prices": { "command": "uvx", "args": ["serbia-prices-mcp"] } } }

VS Code (.vscode/mcp.json)

{ "servers": { "serbia-prices": { "type": "stdio", "command": "uvx", "args": ["serbia-prices-mcp"] } } }

On the first start the server downloads about 135 MB of price lists and builds the database, which takes about half a minute. Until then the tools return "retry in a minute". To download in advance:

uvx serbia-prices-mcp sync

Tools

ToolDescription
search_productsSearch by name: most relevant names first, then the cheapest package. With ean: one exact product in all chains and store formats, with the difference from the cheapest in RSD and %.
optimize_basketCost of a shopping list in each store. Items are given by name or by barcode, quantity in packages. Stores that have every item come first.
get_top_discountsCurrent promotions. Flags a regular price that is higher than in recent monthly snapshots, and discounts of 80% or more, which are usually clearance or data errors.
get_price_historyMonthly snapshots published by the chains plus today's price for one barcode.
list_retailers_and_categoriesChains, store formats, date of the data and the 25 product categories.

All tools are read-only. Lists are paged with limit and offset and return total.

How it works

  1. For each chain the server asks the data.gov.rs API for the chain's datasets and takes the newest price list CSV.
  2. It downloads all files in parallel.
  3. DuckDB reads each file with one SQL query: the header is mapped to one schema, prices and dates are validated, invalid rows are skipped and names are prepared for search without diacritics and Cyrillic.
  4. The rows go into a new DuckDB file, which then replaces the old one. If a chain fails to download or parse, its previous prices are kept.
  5. Each tool call is one SQL query over the file, opened read-only. Queries take 30–100 ms.
  6. While running, the server checks every hour and downloads again when the data is older than 20 hours.

No history is collected. The chains' files contain today's prices and monthly snapshots for recent months; price history and the discount check use those snapshots. The database takes about 50 MB in ~/.cache/serbia-prices-mcp.

Settings

VariableDefaultDescription
SERBIA_PRICES_MCP_DATA_DIR~/.cache/serbia-prices-mcpDirectory for prices.duckdb
SERBIA_PRICES_MCP_TRANSPORTstdiohttp serves Streamable HTTP at /mcp
SERBIA_PRICES_MCP_HOST, SERBIA_PRICES_MCP_PORT127.0.0.1, 8000HTTP address
SERBIA_PRICES_MCP_LOG_LEVELINFOLog level; logs go to stderr

Data

The price lists are published by the retail chains on data.gov.rs under the Serbian Open Data License. The server downloads them daily; every price carries price_date, the date of the chain's price list.

Changes to the data: columns are mapped to one schema, invalid rows are skipped, promotional prices not below the regular price are dropped, a promotion past its end date is shown at the regular price, text is cleaned and a search field without diacritics and Cyrillic is added. Units, unit prices, VAT rates and promotion start dates are not loaded.

Prices are shown as published and may differ in the store. This project is not affiliated with the chains or the portal.

Development

uv sync
uv run pytest
uv run mypy src tests

License

MIT

Reviews

No reviews yet

Be the first to review this server!