MenuClose
Docs

The OpenGrape API

Range, price and stock per store, as JSON over HTTPS. The tools Claude uses, for your own code.

https://opengrape.org/api/mcp
MCP 2025-06-18 · JSON-RPC 2.013 tools, 10 without a keyData built 4 Dec 15:32

How it works

OpenGrape reads the shelves of the wine monopolies and a few shops, and serves what it read from one endpoint. Klase, Claude and your code read the same data.

Reads

Range, price, stock per store and opening hours from 4 sources: Vinmonopolet, Systembolaget, Alko, Border shops. 1,195 stores and 41,123 wines.

Serves

Static files built from what was read, answered by a small server at the edge. The server never calls the shops. Every answer says when its data was read.

Never

Sells alcohol, takes payment for a place in an answer, stores who asked or says which wine to buy. It stores what is searched, never who asked. It shows, it does not recommend.

Coverage

Which shelves does the API answer for?

SourceStoresWith stock readWinesIn stockRange readStock read
VinmonopoletNorway35418516,89515,2214 Dec 05:494 Dec 05:46
SystembolagetSweden45445414,8464,3564 Dec 03:004 Dec 09:00
AlkoFinland3593597,3045,57229 Nov 04:494 Dec 06:39
Border shopsGermany28282,0782,04930 Nov 04:1230 Nov 04:12
See the data
01Send a POST with a JSON-RPC 2.0 message to the endpoint. No key, no session, no headers beyond Content-Type.
02Call tools/list for the tools and their input schemas, or tools/call with a tool name and its arguments.
03The answer is in result.content[0].text, as a JSON string. Parse it.
Request

Which Barolo under 400 SEK is in stock at Hansa, Malmö?

curl https://opengrape.org/api/mcp \
  -H 'Content-Type: application/json' \
  -d '{
  "jsonrpc": "2.0",
  "id": 2,
  "method": "tools/call",
  "params": {
    "name": "wine_search",
    "arguments": {
      "land": "se",
      "query": "barolo",
      "max_pris": 400,
      "butik": "1208",
      "limit": 2
    }
  }
}'
Answer

The parsed text, as the server answered when this page was built

{
  "land": "se",
  "kalla": "Systembolaget",
  "valuta": "SEK",
  "traffar": 14,
  "visas": 2,
  "nasta_offset": 2,
  "sortering": "viner i lager först, sedan namn",
  "viner": [
    {
      "nr": "239801",
      "kort": "2398",
      "namn": "Barolo Albe G.D. Vajra",
      "producent": "G.D. Vajra",
      "typ": "Rött vin",
      "ursprungsland": "Italien",
      "pris": 309,
      "ml": 750,
      "argang": "2022",
      "antal": 19,
      "hylla": "05-06-03",
      "hamtad": "2026-12-04T09:00:05"
    },
    {
      "nr": "7022701",
      "kort": "70227",
      "namn": "Barolo Fontanafredda",
      "producent": "Fontanafredda",
      "typ": "Rött vin",
      "ursprungsland": "Italien",
      "pris": 229,
      "ml": 750,
      "argang": "2022",
      "antal": 13,
      "hylla": "05-04-01",
      "hamtad": "2026-12-04T09:00:05"
    }
  ],
  "butik": {
    "id": "1208",
    "namn": "Hansa",
    "adress": "Malmborgsgatan 6",
    "stad": "Malmö",
    "provningsbutik": true
  },
  "not": "Lagret hämtas från Systembolaget en gång per dygn. Antalet gäller när det hämtades (hamtad), inte just nu."
}
Request

How many bottles of Tegernseerhof Bergdistel Riesling Smaragd are at Hansa?

curl https://opengrape.org/api/mcp \
  -H 'Content-Type: application/json' \
  -d '{
  "jsonrpc": "2.0",
  "id": 3,
  "method": "tools/call",
  "params": {
    "name": "wine_availability",
    "arguments": {
      "land": "se",
      "nr": "9363901",
      "butik": "1208"
    }
  }
}'
Answer

Stock and shelf in one store, with the time it was read

{
  "land": "se",
  "kalla": "Systembolaget",
  "valuta": "SEK",
  "vin": [
    {
      "nr": "9363901",
      "kort": "93639",
      "namn": "Tegernseerhof Bergdistel Riesling Smaragd",
      "producent": "Weingut Tegernseerhof",
      "typ": "Vitt vin",
      "ursprungsland": "Österrike",
      "pris": 249,
      "ml": 750,
      "argang": "2024"
    }
  ],
  "butik": {
    "id": "1208",
    "namn": "Hansa",
    "adress": "Malmborgsgatan 6",
    "stad": "Malmö",
    "provningsbutik": true,
    "oppet_nu": true,
    "stanger": "19:00"
  },
  "lager": [
    {
      "nr": "9363901",
      "ml": 750,
      "antal": 9,
      "hylla": "41-04-00",
      "hamtad": "2026-12-04T09:00:05"
    }
  ],
  "not": "Lagret hämtas från Systembolaget en gång per dygn. Antalet gäller när det hämtades (hamtad), inte just nu."
}

Addresses and limits

Log in for a personal address
OpenNo keyhttps://opengrape.org/api/mcp. 10 tools, no ratings from others, stores nothing about you.5,000 calls a day, shared
PersonalFreehttps://opengrape.org/api/mcp/p-<key>. 13 tools, remembers your home store. Created on your account.200 calls a day
PersonalHigher plansThe same address with a higher plan. Plans are Coming soon.2,000 or 20,000 a day

The key is the path

Claude's custom connectors cannot send headers, so a personal address carries its key in the path. Treat it like a password. OpenGrape keeps only a hash of it.

What counts

Only tools/call counts. initialize, tools/list and ping always answer. Days are UTC. A batch takes up to 20 messages.

Over the limit

The call answers with a tool error that says so, not with HTTP 429, so an AI reads the reason to its user. The next UTC day starts over.

Names and arguments as the server lists them. Arguments are in Swedish, as are the answers: land is the country, butik the store, stad the city. A country can be a code (se), a name in most languages (Sweden, Norge, Suomi) or a city.

wine_countries

OpenPersonal

The countries with data: the chain, currency, number of wines and stores, and when range and stock were read. Start here when you do not know which country has data.

No arguments.

wine_get

OpenPersonal

Everything about one wine in a country, by number or EAN: name, producer, origin, grapes, price, vintage, alcohol, the seller's tasting note and food pairing, and in Sweden the taste clocks, sugar and serving temperature, and the link. In Sweden a short number gives every size.

ArgumentTypeRequiredMeans
landstringYesCountry where the wine is bought: se, no, fi, a country name or a city.
nrstring or integerArticle number. Sweden: short (93639) or long (9363901).
eanstringEAN barcode, where the country's data has it (Germany today).

wine_availability

OpenPersonal

Bottles per store, and the shelf in Sweden, with the time the stock was read and whether the store is open now. For one store, the stores in a city, the stores nearest a latitude and longitude, or else the stores with the most bottles.

ArgumentTypeRequiredMeans
landstringYesCountry where the wine is bought: se, no, fi, a country name or a city.
nrstring or integerArticle number. Sweden: short (93639) or long (9363901).
eanstringEAN barcode, where the country's data has it (Germany today).
butikstring or integerStore id (1208) or name, alias or address (Hansa).
stadstringCity, for example Malmö.
latnumberLatitude in decimal degrees.
lonnumberLongitude in decimal degrees.
limitinteger, 1–25, default 5Most results.

wine_stores

OpenPersonal

The stores in a country: id, name, address, city, whether it is open now and when it closes, and in Sweden whether it is a tasting store. Filter by city or a search term.

ArgumentTypeRequiredMeans
landstringYesCountry where the wine is bought: se, no, fi, a country name or a city.
stadstringCity, for example Malmö.
querystringSearch term: name, producer, grape or region. Tolerates å, ä, ö and accents.

wine_what_to_buy

Personal

Wines in stock in a store, a city or a country within a budget, by Vivino rating, and the same list by rating per price. Filter by type and by food. It is a ranking, not a recommendation.

ArgumentTypeRequiredMeans
landstringYesCountry where the wine is bought: se, no, fi, a country name or a city.
butikstring or integerStore id (1208) or name, alias or address (Hansa).
stadstringCity, for example Malmö.
budgetnumberHighest price per bottle, in the country's currency.
matstringFood, matched against the seller's own pairing text: lamm, pizza, cheese.
typstringRed, white, rosé, sparkling or fortified, in most languages.
antalinteger, 1–15, default 5Wines per list.

wine_store_hours

OpenPersonal

A store's opening hours today and the next few days, whether it is open now, and when it closes or opens.

ArgumentTypeRequiredMeans
landstringYesCountry where the wine is bought: se, no, fi, a country name or a city.
butikstring or integerYesStore id (1208) or name, alias or address (Hansa).

wine_sync_status

OpenPersonal

When range, ratings and stock were last read, per country. Without a country: all of them.

ArgumentTypeRequiredMeans
landstringCountry where the wine is bought: se, no, fi, a country name or a city.

wine_nearest_stores

OpenPersonal

Stores by distance as the crow flies from a latitude and longitude, in one country or all. The position is used for the answer and never stored.

ArgumentTypeRequiredMeans
latnumberYesLatitude in decimal degrees.
lonnumberYesLongitude in decimal degrees.
landstringCountry where the wine is bought: se, no, fi, a country name or a city.
limitinteger, 1–25, default 5Most results.

wine_upcoming_releases

OpenPersonal

Systembolaget's upcoming and latest releases, kept apart: the temporary range, which reaches the stores, and the web releases, sold only on systembolaget.se in small lots from the sales start. Earlier releases with sedan or antal_slapp. Sweden only.

ArgumentTypeRequiredMeans
landstringYesCountry where the wine is bought: se, no, fi, a country name or a city.
sortimentstring: alla, tillfalligt, webb, default allatillfalligt (temporary range), webb (web releases) or alla (both, kept apart).
limitinteger, 1–100, default 30Most results.
min_fyndinteger: 1, 2Personal addresses: 1 Good buy or better, 2 Great find only. Not on the open address.
antal_slappinteger, 1–10, default 1How many of the latest releases per range, 1-10.
sedanstringFrom this date, YYYY-MM-DD.

wine_changes

OpenPersonal

What changed in a country's range since a date: new wines, wines leaving the range, new prices, sold out in every store and back in stock. Sweden has all five, Finland new, leaving and prices, Germany prices per chain; a country without history says so.

ArgumentTypeRequiredMeans
landstringYesCountry where the wine is bought: se, no, fi, a country name or a city.
sedanstringFrom this date, YYYY-MM-DD.
andringstring: alla, ny, utgatt, pris, slut, ater, default allaKind of change: ny, utgatt, pris, slut, ater or alla.
typstringRed, white, rosé, sparkling or fortified, in most languages.
limitinteger, 1–200, default 50Most results.
offsetinteger, default 0Skip this many results, for the next page (nasta_offset in the answer).

wine_set_home

PersonalWrites

Saves the store, city or country you shop in. Calls that leave them out then use it. The only tool that writes.

ArgumentTypeRequiredMeans
butikstring or integerStore id (1208) or name, alias or address (Hansa).
stadstringCity, for example Malmö.
landstringCountry where the wine is bought: se, no, fi, a country name or a city.
namnstringA nickname for the address.
rensabooleantrue removes the saved home.

wine_whoami

Personal

Whether the address is personal, the saved home, the plan and today's calls against the limit.

No arguments.

Errors

AnswerWhenWhat to do
result.isError: trueThe tool ran but could not answer: unknown country, store or wine, or the daily limit is reached.Show the text. It says what was wrong and, for a store or a wine, the closest matches.
-32602Unknown tool, or a tool that is not on this address.Call tools/list for the tools on the address.
-32601Unknown method.Use initialize, ping, tools/list or tools/call.
-32600, -32700Not a JSON-RPC 2.0 message, an empty batch, or not JSON. HTTP 400, or 413 over 64 kB.Check the body.
HTTP 404, no bodyUnknown or removed personal address.Create a new one on your account.
HTTP 405A GET. There is no event stream.POST. OPTIONS answers for CORS from any origin.
HTTP 202, no bodyOnly notifications were sent.Nothing.
HTTP 503The server or its store is down.Try again later.

Fields in the answers

FieldMeans
land, kalla, valutaCountry code, the chain the data comes from, and the currency of every price.
nrArticle number, the key. In Sweden the long number: one size of one wine.
kortSweden: the short number, the same wine across sizes.
namn, producent, typ, ursprungslandName, producer, type and the country the wine comes from, as the seller writes them.
pris, ml, argangShelf price in the currency, volume in millilitres, vintage.
butikThe store: id, namn, adress, stad.
lager, antal, hyllaStock in a store: bottles when it was read, and in Sweden the shelf (section-shelf-place).
hamtadWhen the stock was read, ISO 8601. Say it with the number.
i_lagerfalse: out of stock in every store.
not, forvalA note to pass on, and on a personal address which home default was used.
vivinoPersonal addresses: Vivino rating, number of ratings and link.
kritiker, proffspoangPersonal addresses: critics' scores (score, scale, vintage, link) and the share of critics' reviews that like the wine.

Ratings from others (Vivino, critics) are only on personal addresses. Questions about the API: [email protected].

Klase ↗OpenGrape does not sell alcohol.