Skip to main content
Glama

listonic-mcp

Unofficial MCP server for Listonic grocery lists, built on .NET 10 and ASP.NET Core.

Listonic API compatibility

GitHub Actions Workflow Status
Dynamic JSON Badge

Related MCP server: yazio-mcp

MCP tools

Tool

Description

get_lists

All shopping lists with their IDs

get_items

Items on a list — [x] already have, [ ] still to buy

add_items

Add one or many items in a single call

edit_items

Check/uncheck, rename, or change quantity (batched)

delete_items

Permanently remove items

rename_list

Rename a shopping list

delete_list

Move a list to trash (soft delete)

Running the MCP server

Docker (production / NAS)

The image is published to GHCR on every release as a multi-architecture image for linux/amd64 and linux/arm64 — no build or clone required. Docker automatically selects the matching architecture.

1. Create a docker-compose.yml:

services:
  listonic-mcp:
    container_name: listonic-mcp
    image: ghcr.io/kusnierz-maciej/listonic-mcp:latest   # or pin a version, e.g. :v1.3.2
    ports:
      - "9011:8080"
    env_file:
      - .env
    environment:
      - ASPNETCORE_ENVIRONMENT=Production
    restart: unless-stopped

2. Create a .env next to it:

# Required: gates access to the server. Any long random string works — a GUID is a good choice.
# Generate one with:  uuidgen   (macOS/Linux)   or   [guid]::NewGuid()  (PowerShell)
Security__ApiKey=00000000-0000-0000-0000-000000000000

# Optional: a default Listonic account, used only when a client does not send its
# own Authorization: Basic header. Omit both lines if every client passes credentials.
Listonic__Email=your@email.com
Listonic__Password=yourpassword

If your password contains $, escape each one as $$ (Docker Compose variable interpolation). Example: p@$w0rd! → p@$$w0rd!

3. Start it:

docker compose up -d
# Exposed on host port 9011

4. Connect Claude Code:

{
  "mcpServers": {
    "listonic": {
      "type": "http",
      "url": "http://your-host:9011/mcp",
      "headers": {
        "X-Api-Key": "your-api-key-from-.env",
        "Authorization": "Basic <base64(email:password)>"
      }
    }
  }
}

X-Api-Key must match Security__ApiKey in your .env file.

Authorization: Basic carries Listonic credentials encoded as base64(email:password). If omitted, the server falls back to Listonic__Email/Listonic__Password from .env. This means multiple users can share one server instance, each passing their own credentials — no server restart required to add a new account.

Synology NAS (Container Manager)

The published image supports linux/amd64 and linux/arm64, so it runs on both Intel/AMD and ARM-based Synology models.

1. Create a folder for the project, e.g. via File Station: /docker/listonic-mcp.

2. Put a docker-compose.yml in that folder:

services:
  listonic-mcp:
    container_name: listonic-mcp
    image: ghcr.io/kusnierz-maciej/listonic-mcp:latest   # or pin a version, e.g. :v1.3.2
    ports:
      - "9011:8080"
    env_file:
      - .env
    environment:
      - ASPNETCORE_ENVIRONMENT=Production
    restart: unless-stopped

3. Put a .env in the same folder:

# Required: gates access to the server. Any long random string works — a GUID is a good choice.
# Generate one with:  uuidgen   (macOS/Linux)   or   [guid]::NewGuid()  (PowerShell)
Security__ApiKey=00000000-0000-0000-0000-000000000000

# Optional: a default Listonic account, used only when a client does not send its
# own Authorization: Basic header. Omit both lines if every client passes credentials.
Listonic__Email=your@email.com
Listonic__Password=yourpassword

4. In Container Manager → Project → Create:

  • Project name: listonic-mcp

  • Path: select the /docker/listonic-mcp folder you created.

  • Source: Container Manager detects the existing docker-compose.yml in that folder — use it.

  • Click through to build/run. It pulls the image from GHCR and starts the container on host port 9011.

Connecting from claude.ai

  1. Go to claude.ai → Settings → Connectors → Add custom connector

  2. Enter your server URL: http://your-host:9011/mcp

  3. Under Authentication, select No sign-in

  4. Under Request headers, add:

    • X-Api-Key: your-api-key

    • Authorization: Basic <base64(email:password)>

  5. Click Add

The server must be publicly reachable from the internet. If it's on a local NAS, expose it via a tunnel such as Cloudflare Tunnel or ngrok.

After updating the server to a new version, go to Settings → Connectors → Listonic (Custom MCP) → Refresh tool list so Claude picks up any changed tool descriptions.

Local development

Credentials can be supplied either via user secrets (server-side fallback) or per-request headers. For local dev the simplest approach is user secrets:

dotnet user-secrets --project src/ListonicMcp set "Listonic:Email" "your@email.com"
dotnet user-secrets --project src/ListonicMcp set "Listonic:Password" "yourpassword"

dotnet run --project src/ListonicMcp
# Server starts at http://localhost:5100

No API key is required in development — Security:ApiKey is unset so the middleware lets all requests through.

Connect Claude Code by adding to your MCP config (.mcp.json in the project root or ~/.claude/mcp.json):

{
  "mcpServers": {
    "listonic": {
      "type": "http",
      "url": "http://localhost:5100/mcp"
    }
  }
}

Alternatively, skip user secrets entirely and pass credentials as a Basic auth header (useful when testing multi-account):

{
  "mcpServers": {
    "listonic": {
      "type": "http",
      "url": "http://localhost:5100/mcp",
      "headers": {
        "Authorization": "Basic <base64(email:password)>"
      }
    }
  }
}

Stdio mode

For MCP clients that launch the server as a subprocess, run it with --stdio. The server then talks MCP over stdin/stdout instead of HTTP, and logs go to stderr. There is no HTTP endpoint, so Security__ApiKey is not used. The Listonic account is read from environment variables:

Listonic__Email=your@email.com Listonic__Password=yourpassword \
  dotnet run --project src/ListonicMcp -- --stdio

Example client configuration:

{
  "mcpServers": {
    "listonic": {
      "command": "dotnet",
      "args": ["run", "--project", "src/ListonicMcp", "--", "--stdio"],
      "env": {
        "Listonic__Email": "your@email.com",
        "Listonic__Password": "yourpassword"
      }
    }
  }
}

Running tests

The tests run against the live Listonic API to detect whether the unofficial API has changed in a way that would break this server. They hit the real API, so credentials are required. They are never stored in the repo.

dotnet user-secrets --project src/ListonicApiClient.Tests set "Listonic:Email" "your@email.com"
dotnet user-secrets --project src/ListonicApiClient.Tests set "Listonic:Password" "yourpassword"

dotnet test src/ListonicMcp.slnx

Tests create lists prefixed with [test] and clean them up automatically after each run.

Available Tools

7 tools
add_itemsA

Add one or more items to a list in a single call; new items start unchecked. Put only the product in name (in the user's language, e.g. "mleko"), the number in amount and the unit in unit - never the quantity inside the name. Before adding, call get_items and check whether the item already exists. If it's checked, untick it and set the amount the user gave. If it's unchecked, ask whether to add to its amount or replace it. Don't create a duplicate row. Returns the added items in get_items format.

Inputs: items (required), listId (required), listName (required).

delete_itemsA

Permanently delete items from a list; this can't be undone. To mark something as bought, tick it off with edit_items instead. Use this when the user wants an item gone (added by mistake, no longer needed) or asks to clear bought items - then delete only the checked ones. Before deleting more than a few items or emptying a whole list, confirm with the user. Get itemIds from get_items. Always pass confirmName alongside each itemId. Returns the deleted items in get_items format.

Inputs: items (required), listId (required), listName (required).

delete_listA

Move a whole shopping list to the Listonic trash; it can be restored from the trash in the app. On a shared list this removes it for everyone who shares it - get_lists shows whether a list is shared. Always confirm with the user, naming the list, before calling. To delete items but keep the list, use delete_items instead.

Inputs: listId (required), listName (required).

edit_itemsA

Change items already on a list: tick them off when bought (isChecked: true), untick (false), rename, or change amount/unit. "I bought X" = tick it off, do not delete. Send only the fields to change; omitted or null fields stay as they are; send amount 0 and unit "" to clear the quantity. Get itemIds from get_items. Items can't be moved between lists - add to target list and delete from source. Batch: send all items to change in one call. Returns the updated items in get_items format.

Inputs: items (required), listId (required), listName (required).

get_itemsA

Get every item on one list. Unchecked items (still to buy) come first, then checked ones (bought / ticked off), each as "[ ] [itemId] name (amount unit)" or "[x] …". When the user asks what to buy, report only unchecked items; mention checked ones only if asked. Call this before edit_items or delete_items to get itemIds, and before add_items to avoid duplicates. Several rows can share a name. When the user names such an item, tick or untick every row the change applies to (only unchecked rows when ticking off). Before deleting it or changing its amount, consider only unchecked rows unless the user means a checked one: if one row matches, act on it; if several match, ask which one.

Inputs: listId (required), listName (required).

get_listsA

List every shopping list the user can access (own and shared). Returns one line per list as "[listId] name (private|shared) - N unchecked". Call this first - every other tool needs a listId from here. Match the user's wording to a list name; if more than one list could fit, ask which one. This server has no categories or item notes and can't create lists or move items between lists - say so instead of looking for another tool.

Inputs: no named parameters.

rename_listA

Rename an existing shopping list. On a shared list the new name is visible to everyone who shares it. This server can't create lists - tell the user to do that in the Listonic app.

Inputs: name (required), listId (required), listName (required).

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A4.4/5.0

    Scored across 7 tools

    Disambiguation5/5

    Each tool targets a distinct resource and action: lists versus items, and get/add/edit/delete/rename operations. The descriptions explicitly clarify the main potential confusion points, such as edit_items ticking off an item versus delete_items removing it, and delete_items versus delete_list. An agent should reliably select the correct tool.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern using snake_case: get_lists, get_items, add_items, edit_items, delete_items, rename_list, delete_list. Plural versus singular nouns are used predictably according to whether the operation acts on one list or multiple items.

    Tool Count5/5

    Seven tools are well scoped for a shopping-list management server. Each tool covers a distinct operation without redundancy, and the set is small enough to remain easy to navigate while covering the core list and item workflows.

    Completeness4/5

    Item operations are essentially complete: get, add, edit, tick/untick, and delete are all covered. The main gaps are the inability to create lists and to move items between lists, but the descriptions explicitly acknowledge these limitations and point users to the Listonic app, so agents can work around them.

    Maintenance

    ActivityMaintained
    ResponsivenessLimited data

    Related MCP Connectors

    Related MCP Servers