Logo di kronan-mcp

kronan-mcp

Community
sandsower

MCP server for the Krónan grocery store API (Iceland)

Autoresandsower
Repositorykronan-mcp
LinguaTypeScript
Fork
1
Stelle
15
Strumenti disponibili
33
Tipo di trasportostdio
Categorie
LicenzaMIT
Link
  • Collega gli strumenti ai flussi di lavoro IA

    kronan-mcp mette a disposizione funzionalità MCP utilizzabili da client e agenti IA compatibili.

  • 33 strumenti disponibili

    Esplora le azioni richiamabili qui sotto, con nomi e descrizioni quando forniti dal server.

  • Configurazione pronta da copiare

    Usa gli esempi di installazione per configurare questo server nel tuo client MCP preferito.

  • Indicatori di interesse open source

    15 stelle e 1 fork nel repository collegato.

kronan-mcp

MCP server for the Krónan grocery store API. Claude can browse products, manage shopping notes, handle checkout, and track orders from Krónan's Snjallverslun (smart store) in Iceland.

Tools

25 tools over the Model Context Protocol:

CategoryTools
Productssearch_products, get_product, get_category_products, list_categories
Checkoutget_checkout, add_checkout_lines
Orderslist_orders, get_order, delete_order_lines, set_order_substitution, lower_order_quantity
Shopping notesget_shopping_note, add_shopping_note_line, change_shopping_note_line, reorder_shopping_note_lines, delete_shopping_note_line, set_line_completion, clear_shopping_note, check_store_order_eligibility, apply_store_product_order, list_archived_lines, delete_archived_line
Product listslist_product_lists, create_product_list, get_product_list, update_product_list, delete_product_list, clear_product_list, sort_product_list, update_product_list_item
Purchase statslist_purchase_stats, set_purchase_stat_ignored
Accountget_me

Install

bash
npm install -g kronan-mcp

Or run directly with npx (no install needed):

bash
npx kronan-mcp

Getting a token

Tokens are created in the Krónan Snjallverslun user settings. You need an account with Audkenni (Iceland's electronic ID) login. Go to your user or customer group settings page and create an access token. Tokens are prefixed with act_.

Usage with Claude Code

Add to your project's .claude/settings.local.json or global ~/.claude/settings.json:

json
{
  "mcpServers": {
    "kronan": {
      "command": "npx",
      "args": ["kronan-mcp"],
      "env": {
        "KRONAN_ACCESS_TOKEN": "act_your_token_here"
      }
    }
  }
}

Then ask Claude things like:

  • "Search for milk on Krónan"
  • "What's in my shopping note?"
  • "Add 2x of SKU 02500188 to my checkout"
  • "Show my recent orders"

Architecture

src/
├── client.ts   HTTP client wrapping all Krónan API endpoints
├── index.ts    MCP server registering tools via @modelcontextprotocol/sdk
└── types.ts    TypeScript interfaces matching the OpenAPI schema

Auth is Authorization: AccessToken <token> on every request. Rate limit is 200 requests per 200 seconds per user. The client detects 429 responses and tells the caller to wait.

All prices are integers in ISK (no decimals). 230 means 230 kr.

Errors go through a typed KronanApiError with status codes. The token is scrubbed from error messages so it doesn't leak to the LLM. Auth failures and rate limits get their own user-facing messages.

set_order_substitution and set_line_completion use read-then-toggle patterns. They're not idempotent. Don't retry on timeout without checking current state first.

API reference

Full OpenAPI schema at openapi-schema.yaml.

Development

bash
npm install && npm run build   # Build from source
npm run dev                    # Watch mode (recompiles on change)
npm test                       # Run tests
npm run test:watch             # Watch mode tests

Tests

31 tests on the HTTP client: constructor validation, error paths (429, timeouts, JSON parse failures), token scrubbing, toggle method validation, eligibility endpoint edge cases.

bash
npm test

Installazione

TypingMind
{
  "mcpServers": {
    "kronan-mcp": {
      "command": "npx",
      "args": [
        "kronan-mcp"
      ],
      "env": {
        "KRONAN_ACCESS_TOKEN": "<KRONAN_ACCESS_TOKEN>"
      }
    }
  }
}

Strumenti disponibili

  • get_me

    Get the current authenticated identity (user or customer group)

  • list_categories

    Get the full 3-level category tree

  • get_category_products

    Get paginated product listing for a category (48 per page)

  • get_product

    Get full product details including price, discounts, tags, availability

  • search_products

    Search for products in the smart store selection. Returns products available for home delivery.

  • get_checkout

    Get the active smart checkout (auto-creates if none exists)

  • add_checkout_lines

    Add product lines to the active checkout. Set replace=true to replace all existing lines.

  • list_orders

    List orders, most recent first

  • get_order

    Get full order details including lines with product thumbnails

  • delete_order_lines

    Remove specific lines from an order by their IDs. Service lines and the last remaining line cannot be deleted.

  • set_order_substitution

    Set whether substitution is allowed for specific order lines. Uses a toggle endpoint: fetches current state and only toggles lines that differ. WARNING: Not idempotent due to toggle semantics. Do NOT retry on timeout — check current state first.

  • lower_order_quantity

    Reduce the quantity of specific order lines. Quantity can only be lowered. Set to 0 to remove.

  • list_product_lists

    List saved product lists

  • create_product_list

    Create a new product list

  • get_product_list

    Get a product list with all items including product details and pricing

  • update_product_list

    Update the name or description of a product list

  • delete_product_list

    Permanently delete a product list and all its items

  • clear_product_list

    Remove all items from a product list without deleting the list itself

  • sort_product_list

    Sort items in the product list by store departments

  • update_product_list_item

    Add a product by SKU or update its quantity in a product list. Set quantity to 0 to remove.

  • list_purchase_stats

    List previously purchased products with frequency data, ordered by most recent purchase

  • set_purchase_stat_ignored

    Hide or unhide a product from purchase history

  • get_shopping_note

    Get the shopping note (auto-creates if none exists)

  • add_shopping_note_line

    Add a line to the shopping note. Provide exactly one of text (freeform) or sku (linked product), not both.

  • change_shopping_note_line

    Update the text or quantity of an existing shopping note line

  • reorder_shopping_note_lines

    Reorder shopping note lines by passing their tokens in desired order

  • delete_shopping_note_line

    Remove a line from the shopping note

  • delete_archived_line

    Remove a specific archived shopping note line

  • clear_shopping_note

    Delete all lines from the shopping note (the note itself is preserved)

  • check_store_order_eligibility

    Check if the shopping note contains products that can be ordered from a store

  • list_archived_lines

    List previously completed and archived shopping note lines

  • apply_store_product_order

    Reorder shopping note lines to match the store's aisle layout for efficient in-store shopping

  • set_line_completion

    Mark a shopping note line as completed or uncompleted. Uses a toggle endpoint: fetches current state and only toggles if needed. WARNING: Not idempotent due to toggle semantics. Do NOT retry on timeout — check current state first.

Usa MCP kronan-mcp con più modelli IA

TypingMind collega gli strumenti MCP a livello di area di lavoro: una volta connesso kronan-mcp, puoi usarlo con diversi modelli IA in TypingMind, senza configurarlo separatamente per ogni modello. Questa integrazione MCP viene eseguita localmente sul tuo dispositivo tramite il connettore MCP di TypingMind.

Guida alla configurazione del connettore locale

Usa questo metodo quando il server MCP deve accedere a file locali, app o risorse private sul tuo computer.

1

Apri le impostazioni MCP

In TypingMind, vai su Impostazioni, Impostazioni avanzate, poi su Model Context Protocol e scegli Configura MCP.

  1. Apri TypingMind nel tuo browser.
  2. Fai clic sull'icona Impostazioni.
  3. Vai a Impostazioni avanzate.
  4. Apri la sezione Model Context Protocol.
  5. Fai clic su Configura MCP e scegli Questo dispositivo.
Schermata di configurazione del connettore MCP di TypingMind con Questo dispositivo selezionato
2

Esegui il comando del connettore

Scegli Questo dispositivo, copia il comando da TypingMind ed eseguilo nel terminale. Lascia il processo in esecuzione mentre usi MCP.

  1. Copia il comando di configurazione mostrato da TypingMind.
  2. Apri Terminale su macOS o Windows Terminal su Windows.
  3. Incolla ed esegui il comando.
  4. Conferma l'installazione del pacchetto se il terminale ti chiede di procedere.
  5. Tieni aperta la finestra del terminale con il processo in esecuzione mentre usi gli strumenti MCP.
3

Aggiungi kronan-mcp come server

Quando lo stato del connettore è Pronto, fai clic su Modifica server e incolla la configurazione del server MCP.

  1. Attendi che lo stato del connettore sia Pronto.
  2. Fai clic su Modifica server.
  3. Incolla la configurazione del server MCP di kronan-mcp.
  4. Salva l'elenco dei server.
  5. Aggiorna per verificare che il connettore sia ancora pronto.
Impostazioni MCP di TypingMind con un server attivo e il pulsante Modifica server
{
  "mcpServers": {
    "kronan-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "kronan-mcp"
      ]
    }
  }
}
4

Usa la connessione con diversi modelli

Salva l'elenco dei server, apri Plugin, abilita gli strumenti MCP di kronan-mcp, poi seleziona un modello IA supportato in TypingMind e usa gli strumenti in chat o assegnali a un agente IA.

  1. Apri la pagina Plugin in TypingMind.
  2. Abilita gli strumenti MCP di kronan-mcp.
  3. Avvia una chat e scegli il modello IA che vuoi usare.
  4. Usa gli strumenti MCP in chat o assegnali a un agente IA.
  5. Passa a un altro modello IA quando serve, senza riconnettere MCP.
Chat di TypingMind che usa gli strumenti MCP abilitati con un modello IA selezionato
Puoi usare kronan-mcp per aiutarmi con questa attività?
kronan-mcp
Certo. Ho letto.
Ecco cosa ho trovato con kronan-mcp.

Domande frequenti

A cosa serve il server MCP kronan-mcp?

kronan-mcp è un server MCP che consente ai client IA compatibili di accedere a strumenti e informazioni di contesto esterni. In TypingMind puoi aggiungere questo server MCP una sola volta e rendere disponibili i suoi strumenti nella tua area di lavoro IA.

Posso usare kronan-mcp MCP con più modelli IA in TypingMind?

Sì. TypingMind collega gli strumenti MCP a livello di area di lavoro, quindi puoi usare kronan-mcp con diversi modelli IA come Claude, ChatGPT, Gemini o altri modelli che hai configurato in TypingMind, senza dover configurare il server MCP separatamente per ogni modello.

Perché usare il connettore MCP kronan-mcp con TypingMind?

TypingMind è una delle migliori interfacce per chattare con gli LLM perché riunisce più modelli IA, prompt, plugin, agenti IA, chiavi API e strumenti MCP in un'unica area di lavoro. Collegando kronan-mcp, puoi usare i suoi strumenti MCP con i tuoi modelli preferiti e mantenere organizzato il tuo flusso di lavoro in chat su TypingMind.

Come collego kronan-mcp MCP a TypingMind?

kronan-mcp funziona tramite il connettore MCP locale di TypingMind. È la soluzione ideale quando il server MCP deve accedere a file locali, app desktop, strumenti da riga di comando o risorse private sul tuo computer.

Quali strumenti offre kronan-mcp MCP in TypingMind?

kronan-mcp mette a disposizione 33 strumenti MCP che puoi attivare dalla pagina Plugin di TypingMind e usare in chat o assegnare agli agenti IA.

Devo condividere le mie chiavi API con TypingMind per usare kronan-mcp MCP?

No. TypingMind privilegia il funzionamento in locale e ti permette di mantenere il controllo su fornitori di modelli, chiavi API, prompt e configurazione MCP. Se kronan-mcp richiede l'autenticazione, aggiungi le intestazioni, le impostazioni OAuth o la configurazione locale necessarie per quel server MCP quando crei la connessione.

Server MCP correlati

Vedi tutti

Crea subito la tua area di lavoro IA

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇