Skip to content
MCP server
Registry

Serbia Grocery Prices MCP Server

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

Serbia Grocery Prices scores 71 (Good), licensed MIT and written in Python. It installs as a local process. It declares 5 tools. Filed under Data and analytics. GitHub shows 1 stars. Package registries report about 70 downloads a week. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.

by moskrcMITPython1 stars
Trust score
71Good
Trust score 71 of 100, Good

Good trust

71 of 100 from six public signals. Nobody can buy a point.

  • Listed in the official MCP registry.
  • OSI-style license: mit.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 71 comes from

22 + 20 + 5 + 10 + 4 + 10 = 71. Each factor is capped, so no single signal can carry a listing.

Registry22 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 22 of 30 points.
Maintenance20 / 20

How recently the repository saw a commit or release.

Maintenance: 20 of 20 points.
Popularity5 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 5 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs10 / 10

A real summary, a README with depth, listed tools.

Docs: 10 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "moskrc-serbia-prices-mcp": {      "command": "uvx",      "args": [        "serbia-prices-mcp"      ],      "env": {        "SERBIA_PRICES_MCP_DATA_DIR": "~/.cache/serbia-prices-mcp"      }    }  }}

Environment variables

NameRequiredNotes
SERBIA_PRICES_MCP_DATA_DIROptionalDirectory for the downloaded prices database

Tools5Tool docs quality grade C

All capabilities
  • Monthly snapshots published by the chains plus today's price for one barcode.

  • Current 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.

  • Chains, store formats, date of the data and the 25 product categories.

  • Cost 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.

  • Search 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 %.

About

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

Frequently asked questions

What is Serbia Grocery Prices MCP Server?

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

How do I install Serbia Grocery Prices MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. Serbia Grocery Prices MCP Server runs locally from the PyPI package serbia-prices-mcp with the command uvx serbia-prices-mcp.

Is Serbia Grocery Prices MCP Server free and open source?

Yes. Serbia Grocery Prices MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does Serbia Grocery Prices MCP Server support remote (HTTP) connections?

No remote endpoint is listed for Serbia Grocery Prices MCP Server. It runs locally on your machine over stdio, started by your MCP client.

What tools does Serbia Grocery Prices MCP Server provide?

Serbia Grocery Prices MCP Server provides 5 tools, including get_price_history, get_top_discounts, list_retailers_and_categories, and optimize_basket. See the full tool list for descriptions and parameters.

How is Serbia Grocery Prices MCP Server's trust score calculated?

Serbia Grocery Prices MCP Server scores 71 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

—Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server