Skip to main content
Glama

wikinggruppen-mcp

An MCP server and knowledge base for the Wikinggruppen webshop API (JSON-RPC 2.0, used by Swedish building-materials and other webshops on the Wikinggruppen platform).

Two parts:

  1. Knowledge that works without any credentials: every method with parameters and answer fields (built from Wikinggruppen's public docs), a list of behaviour the docs leave out, and step-by-step recipes. An agent reads this before it plans an API task.

  2. Live access to one shop, optional: read calls, and write calls that stay off unless you switch them on.

Tools

Tool

What it does

wgr_overview

What the API is, request rules, method classes, and whether live access and writes are on

wgr_list_methods

All 33 methods, optionally for one class

wgr_describe_method

Parameters, answer fields and notes for one method (Article.set)

wgr_find_field

Which methods take or return a field (h1, campaign, weight)

wgr_gotchas

Behaviour the docs do not state (see src/wikinggruppen_mcp/data/gotchas.md). The same notes also show up in wgr_describe_method per method (data/notes.json)

wgr_workflow

Recipes: backup, product text, prices, stock, new articles, category tree, the import file

wgr_read

Run one *.get call against the shop

wgr_write

Run set / create commands (up to 50 per request). Needs WGR_ALLOW_WRITE=1. Never deletes

The same text is plain Markdown in src/wikinggruppen_mcp/data/, so you can read it without running anything.

Related MCP server: shopify-multistore-mcp

Install

Python 3.11 or later.

python3.12 -m venv .venv && .venv/bin/pip install -e .

Claude Code:

claude mcp add wikinggruppen -- /path/to/.venv/bin/wikinggruppen-mcp

The knowledge tools work now. For live access, set the shop's own credentials in the environment or in a .env file (see .env.example). Wikinggruppen gives out the user name and password per shop. Nothing in this repo holds a key.

Security

  • Live access is per shop and uses that shop's own credentials. Never commit them.

  • Writes are off by default. WGR_ALLOW_WRITE=1 turns on Article.set, Category.set, Stock.set and the other set/create methods. Deletes, Order.cancel and Order.restore are never allowed through this server.

  • Shop text (titles, descriptions, order messages, customer names) comes from outsiders. The server tells the agent to treat it as data.

  • The terms of use say the API is used at your own risk. Take a backup before bulk writes (see wgr_workflow).

Source and status

reference.json is built from Wikinggruppen's public API documentation (https://api.wikinggruppen.se/docs/). The text of the method descriptions belongs to Wikinggruppen and is not covered by the license. The code, gotchas and recipes are MIT licensed (see LICENSE) and come without a warranty. This is an unofficial project and is not affiliated with Wikinggruppen.

Refresh the reference

python3 scripts/build_reference.py --version 8.4.0

Fetches the public docs and rebuilds reference.json. Check the diff after a new docs version.

Tests

pip install -e ".[dev]" && pytest

Tests use no network and no credentials.

Available Tools

8 tools
wgr_describe_method
Read-only

Parameters, answer fields and notes for one method, e.g. 'Article.set'. Includes what the docs leave out (answer shape, URL effects). 'Same as X' parameters are filled in.

Inputs: method (required).

wgr_find_field
Read-only

Find which methods take or return a field, e.g. 'h1', 'campaign', 'weight', 'isHidden'. Matches names and descriptions.

Inputs: query (required). Returns: result

wgr_gotchas
Read-only

Behaviour the docs do not state: ids from 1, per-command results, title changes move URLs (use h1), Cloudflare 403, missing fields, safe writing.

Inputs: no named parameters. Returns: result

wgr_list_methods
Read-only

All API methods (33), optionally for one class (Article, Category, Customer, Front, NewsletterRecipient, Order, OrderStatus, PriceList, ProductImage, ShippingMethod, Stock).

Inputs: class_name. Returns: result

wgr_overview
Read-only

What the API is, the request rules, the method classes, and whether live access and writes are switched on.

Inputs: no named parameters.

wgr_read
Read-only

Run one *.get call against the configured shop (WGR_API_URL, WGR_API_USER, WGR_API_PASSWORD). Large reads: filter with categoryId, articleNumber or updatedFrom.

Inputs: method (required), params. Returns: result

wgr_workflow
Read-only

Recipes: backup, update product text, prices, stock, create articles, category tree, the import file. Pass part of a title, or nothing for all.

Inputs: name. Returns: result

wgr_write
Destructive

Run set/create commands in one request. Each command is {"method": "Article.set", "params": {...}}, at most 50. Needs WGR_ALLOW_WRITE=1. Returns one {ok, result|error} per command: check each, a failed command does not stop the others. Never deletes.

Inputs: commands (required). Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI agents to interact with live Shopify stores through Admin and Storefront APIs for tasks like GraphQL execution, bulk operations, and file uploads. It includes built-in rate limiting and operation logging to manage store data and schema discovery securely.
      18 npm
      3
      ISC
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables AI agents to retrieve customer, order, ticket, policy, and agreement information, and to prepare or execute state-changing support actions like escalations and follow-ups with confirmation and access control.
      -
    • A
      license
      Not graded
      quality
      C
      maintenance
      Exposes read-only knowledge base articles on returns, warranty and shipping policies alongside tools that search, retrieve and create real support tickets. This lets an LLM agent ground its answers in store policy without inventing information, and act on actual ticket data rather than simulated records.
      MIT