kronan-mcp logo

kronan-mcp

Community
sandsower

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

Publishersandsower
Repositorykronan-mcp
LanguageTypeScript
Forks
1
Stars
15
Available tools
33
Transport typestdio
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    kronan-mcp exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 33 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    15 stars and 1 forks from the linked repository.

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

Installation

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

Available Tools

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

Use kronan-mcp MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once kronan-mcp is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add kronan-mcp as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the kronan-mcp MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "kronan-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "kronan-mcp"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the kronan-mcp MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the kronan-mcp MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use kronan-mcp to help me with this task?
kronan-mcp
Sure. I read it.
Here is what I found using kronan-mcp.

Frequently asked questions

What is the kronan-mcp MCP server used for?

kronan-mcp is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use kronan-mcp MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use kronan-mcp with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use kronan-mcp MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With kronan-mcp connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect kronan-mcp MCP to TypingMind?

kronan-mcp runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does kronan-mcp MCP provide in TypingMind?

kronan-mcp exposes 33 MCP tools that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use kronan-mcp MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If kronan-mcp requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇