Skip to main content
Glama
Rijksmuseum Iconclass MCP

Rijksmuseum Iconclass MCP

README.md
# rijksmuseum-iconclass-mcp

[![MCP Protocol](https://img.shields.io/badge/MCP_Protocol-2026--07--28-blue?logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0id2hpdGUiPjxjaXJjbGUgY3g9IjEyIiBjeT0iMTIiIHI9IjEwIiBmaWxsPSJub25lIiBzdHJva2U9IndoaXRlIiBzdHJva2Utd2lkdGg9IjIiLz48Y2lyY2xlIGN4PSIxMiIgY3k9IjEyIiByPSIzIi8+PC9zdmc+)](https://modelcontextprotocol.io/specification/2026-07-28) [![MCP SDK](https://img.shields.io/badge/MCP_SDK-2.4.0-blue?logo=npm&logoColor=white)](https://www.npmjs.com/package/@modelcontextprotocol/server)

**rijksmuseum-iconclass-mcp** is an MCP server for searching and exploring [Iconclass](https://iconclass.org) notations in natural language with an AI assistant. It was designed as a companion service for [rijksmuseum-mcp+](https://github.com/kintopp/rijksmuseum-mcp-plus), an analogous resource for the [Rijksmuseum's](https://www.rijksmuseum.nl/en) art collections.

The server provides access to over 1.3 million open-access [Iconclass notations](https://github.com/iconclass/data) — all of the c. 39,000 base concepts and c. 1.3 million key-expanded variants that add modifiers like posture, context, or symbolism. Beside simple keyword matching, rijksmuseum-iconclass-mcp supports semantic search in natural language, so that you can discover iconclass notations related to concepts like "homesickness and exile" -> `94I2111 — "Ulysses longs for home"` even when your exact search term doesn't appear in the notation text. You can also, for example, use the AI assistant to explore the Iconclass hierarchy, visualise its structure, or to request cataloguing advice. A separate [CLI tool](docs/technical-guide.md#cli) allows you to perform the same queries from the command-line.

It includes data from the [Rijksmuseum](https://www.rijksmuseum.nl/en/collection) showing how many artworks are tagged with a particular notation and is able (if [rijksmuseum-mcp+](https://github.com/kintopp/rijksmuseum-mcp-plus) has also been installed) to seamlessly pass you back to that service to e.g. view an artwork with that notation. In addition, it returns a ready-made link to [ArtResearch](https://artresearch.net) to let you view more artworks sharing this notation from the twelve member institutions in the PHAROS consortium. 

This tool was developed as a technology demo by the [Research and Infrastructure Support](https://rise.unibas.ch/en/) (RISE) group at the University of Basel. We are particularly interested in exploring the research opportunities, methodological risks, and technical challenges posed by retrieving and analysing data with LLMs. If you are interested in collaborating with us in this area, please [get in touch](mailto:rise@unibas.ch).

## Research Scenarios

The system is designed to let you search, explore and ask questions about the Iconclass in natural language. For examples of the kinds of queries it can answer, please see these [example prompts](docs/example-prompts.md). The links following each prompt demonstrate how each query was previously answered by an AI assistant using Claude Desktop. For further examples, please see the related discussion in the [IconClass Forum](https://forum.iconclass.org/t/working-with-the-elephant/339/2).

## Installation

### Hosted

The easiest way to start is to install the Rijksmuseum Iconclass plugin. It adds the hosted version of the server as a connector (shown as "Iconclass"), together with the [research skill](#research-skill) that tells the AI assistant how to use it. The server needs no account or sign-in information. Note: If you are on a free subscription plan, the use of any MCP server will consume your free usage quickly.

**Claude** ([claude.ai](https://claude.ai), or the Claude [desktop app](https://claude.com/download)): *// recommended*

1. Download [`rijksmuseum-iconclass-claude.zip`](https://github.com/kintopp/rijksmuseum-iconclass-mcp/raw/refs/heads/main/plugin/rijksmuseum-iconclass-claude.zip).
2. In Claude, go to _Settings_ → _Plugins_ → _Browse plugins_ (scroll down to the bottom) → _Add_ → _Upload plugin_ and choose the file.
3. Open the plugin, go to its _Connectors_ tab, and add the "Iconclass" connector.
4. If you like, set the permissions for its tools in _Customize_ → _Connectors_, for example to "Always allow".

**N.B.** A free Claude account allows only one custom connector. To make room for it, you will need to remove (not just disable) any existing custom connector in _Customize_ → _Connectors_ first. Anthropic's [plugin instructions](https://claude.com/docs/plugins/overview#install-a-plugin) provide more details.

**ChatGPT** ([desktop app](https://chatgpt.com/download/) – not chatgpt.com):

1. Download [`rijksmuseum-iconclass-chatgpt.zip`](https://github.com/kintopp/rijksmuseum-iconclass-mcp/raw/refs/heads/main/plugin/rijksmuseum-iconclass-chatgpt.zip).
2. In the ChatGPT desktop app, go to _Settings_ → _Plugins_ → _Add_ and _Upload plugin archive_. Select and _Add_ the plugin.
3. Next select _Install plugin_. After this the plugin is available.
4. To use it, create a new chat, switch to 'Work' mode in ChatGPT or to Codex, and select the plugin via the + symbol. Else, type "@Rijksmuseum Iconclass" at the start of the prompt. 

**Other AI clients:** add the hosted server as a remote MCP server (often called a "custom connector") with this URL, and leave the authentication settings empty:

```
https://rijksmuseum-iconclass-mcp-production.up.railway.app/mcp
```

For example, the free version of [Mistral's Vibe](https://chat.mistral.ai) has excellent support for MCP servers, including components like interactive image viewers. The use of an MCP server will consume your free usage quickly. A connector added this way (i.e. without the use of a plugin) has no skill file; install the skill file separately (see [below](#research-skill)).

### Rijksmuseum MCP+

**Recommended:** Afterwards, if your subscription plan allows it, follow the same procedure to install rijksmuseum-iconclass-mcp's sibling resource, [rijksmuseum-mcp+](https://github.com/kintopp/rijksmuseum-mcp-plus), which has its own [plugin](https://github.com/kintopp/rijksmuseum-mcp-plus/tree/main/plugin). This allows you to explore over 830,000 artworks and metadata records from the Rijksmuseum with semantic search, provenance analysis, similarity comparisons, and spatial reasoning, and to pass the Iconclass notations you find here straight to its artwork search.

### Local

Alternatively, you can install the Iconclass MCP server _locally_ on your own computer; please consult the [technical guide](docs/technical-guide.md). A local install also gives you `icmcp`, a [command-line interface](docs/technical-guide.md#cli) that runs the same tools from the terminal, with JSONL output for piping into tools such as `jq`.

## Research skill

A skill gives an AI assistant detailed guidance in natural language on how to use a resource such as an MCP server effectively: which tool (see [How it works](#how-it-works)) to choose for a given question type, how to combine searches, important metadata distinctions (e.g. `subject` terms vs `iconclass` notations), and known limitations. Skills were [originally developed by Anthropic](https://claude.com/resources/tutorials/teach-claude-your-way-of-working-using-skills) for their Claude products but have since become a widely-supported [open standard](https://agentskills.io/home). 

The plugin (see [Installation](#installation) above) already includes the skill. You only need the Iconclass skill file if you add the server as a custom connector, install it locally, or use a client without plugin support. To access the skill file, download and unzip: [`iconclass.zip`](https://github.com/kintopp/rijksmuseum-iconclass-mcp/releases/latest/download/iconclass.zip). If you use [Mistral Vibe](https://mistral.ai/products/vibe/), install the skill via the 'folder' option. 

To add your own instructions, such as how to cite results, don't edit the installed copy. Instead, put them in a separate skill or in your project's instructions, so that an update of the plugin doesn't overwrite them.

## How it works

When you ask a question, your AI assistant sends it to the rijksmuseum-iconclass-mcp server using the Model Context Protocol (MCP) standard. The server holds a SQLite database of c. 1.3M Iconclass notations. Depending on the query, the server can search this database in two complementary ways: a fast full-text search that matches keywords, or a semantic search that uses vector embeddings (numerical representations of meaning) to find notations by concept rather than exact wording. A separate, small database records how many artworks in the Rijksmuseum collection are tagged with each notation, letting the server report back to a user not just what a code means but how many artworks exist for it. The server exposes six tools — search, browse, resolve, expand_keys, search_prefix, and find_artworks – which are described in more details below. 

### `search` — keyword or semantic search

Find notations by text or concept.

```
query: "crucifixion"          → 816 FTS matches across labels and keywords
semanticQuery: "domestic animals" → top matches by embedding similarity
```

| Parameter | Description |
|-----------|-------------|
| `query` | FTS keyword search (13 languages, multi-word fallback) |
| `semanticQuery` | Semantic concept search (finds by meaning, not exact words) |
| `parentNotation` | Restrict results to a subtree (e.g. `"11F"` for Virgin Mary) |
| `onlyWithArtworks` | Filter to notations with artworks in any loaded collection |
| `collectionId` | Filter to a specific collection (e.g. `"rijksmuseum"`) |
| `lang` | Preferred language for labels (default: `en`) |
| `maxResults` | 1–50 (default 25) |

Provide exactly one of `query` or `semanticQuery`.

### `browse` — navigate the hierarchy

Explore a notation's place in the tree: path, children (expandable to depth 1–3), cross-references, key variants.

```
notation: "73D", depth: 2  → Passion of Christ, children + grandchildren
notation: "25F23", includeKeys: true  → 204 key-expanded variants
```

### `resolve` — batch notation lookup

Look up one or more notations by code. Accepts a single string or an array of up to 25.

```
notation: ["73D6", "31A33", "25F23"]  → full metadata for each
```

### `expand_keys` — key variant exploration

Given a base notation, return all its key-expanded variants with texts and collection data.

```
notation: "25F23"  → 204 variants (swimming, sleeping, fighting, etc.)
```

### `search_prefix` — hierarchical subtree search

Find all notations under a hierarchy prefix. Leverages Iconclass's left-to-right encoding.

```
notation: "73D8"  → 8 notations under "instruments of the Passion"
notation: "25F"   → all animal notations
```

### `find_artworks` — how many artworks use this subject?

Given one or more notations, check which collections have artworks tagged with those notations. Returns per-collection artwork counts and link-out URLs where available. An empty `collections` array means no loaded collection has artworks for that notation — try a parent or sibling notation instead.

```
notation: "73B57"  → Rijksmuseum: 24 artworks
notation: ["73D6", "92D192134"]  → batch lookup with counts
```

This currently only provides data from the Rijksmuseum in Amsterdam. 

## Technical Notes

For local setup (stdio or HTTP), deployment, architecture, data sources, and configuration, please see the [technical guide](docs/technical-guide.md).

```mermaid
graph TB
    Client["LLM Client<br/>(Claude, Mistral, etc.)"] --> HTTP["HTTP Server<br/>POST /mcp | GET /health"]

    HTTP --> MCP["MCP Server<br/>rijksmuseum-iconclass-mcp"]

    MCP --> T1["search"]
    MCP --> T2["browse"]
    MCP --> T3["resolve"]
    MCP --> T4["expand_keys"]
    MCP --> T5["search_prefix"]
    MCP --> T6["find_artworks"]

    T1 -->|"FTS keyword search"| DB["Iconclass DB"]
    T1 -->|"semantic query"| EMB["EmbeddingModel<br/>(EmbeddingGemma 2, 768d)"]
    EMB -->|"query vector"| DB

    T2 & T3 & T4 & T5 & T6 --> DB

    DB -->|"SQL queries"| MAIN["iconclass.db<br/>(1.3M notations, 13 languages,<br/>FTS5, KNN embeddings)"]
    DB -->|"ATTACH + JOIN"| COUNTS["iconclass-counts.db<br/>(artwork counts:<br/>Rijksmuseum)"]

    style Client fill:#e8f4f8,stroke:#2196F3
    style HTTP fill:#fff3e0,stroke:#FF9800
    style MCP fill:#f3e5f5,stroke:#9C27B0
    style T1 fill:#e8f5e9,stroke:#4CAF50
    style T2 fill:#e8f5e9,stroke:#4CAF50
    style T3 fill:#e8f5e9,stroke:#4CAF50
    style T4 fill:#e8f5e9,stroke:#4CAF50
    style T5 fill:#e8f5e9,stroke:#4CAF50
    style T6 fill:#e8f5e9,stroke:#4CAF50
    style DB fill:#fce4ec,stroke:#E91E63
    style EMB fill:#fce4ec,stroke:#E91E63
    style MAIN fill:#fff9c4,stroke:#FFC107
    style COUNTS fill:#fff9c4,stroke:#FFC107
```

## Authors

[Arno Bosse](https://orcid.org/0000-0003-3681-1289) — [RISE](https://rise.unibas.ch/), University of Basel with [Claude Code](https://claude.com/product/claude-code), Anthropic.

## Citation

If you use rijksmuseum-iconclass-mcp in your research, please cite it as follows:

**APA (7th ed.)**

> Bosse, A. (2026). *rijksmuseum-iconclass-mcp* (Version 0.8.0) [Software]. Research and Infrastructure Support (RISE), University of Basel. https://github.com/kintopp/rijksmuseum-iconclass-mcp

**BibTeX**
```bibtex
@software{bosse_2026_rijksmuseum_iconclass_mcp,
  author    = {Bosse, Arno},
  title     = {{rijksmuseum-iconclass-mcp}},
  year      = {2026},
  version   = {0.8.0},
  publisher = {Research and Infrastructure Support (RISE), University of Basel},
  url       = {https://github.com/kintopp/rijksmuseum-iconclass-mcp},
  orcid     = {0000-0003-3681-1289},
  note      = {Developed with Claude Code (Anthropic, \url{https://www.anthropic.com})}
}
```

## License

MIT

## Acknowledgements

The [Iconclass](https://iconclass.org) classification system was created by Henri van de Waal and is maintained by the Iconclass Foundation. The [data](https://github.com/iconclass/data) used in this server is published under a Creative Commons CC0 license.

TDQS

A4.1/5.0

Scored across 6 tools

Disambiguation4/5

Each tool has a well-delineated role: browse for hierarchy navigation, search for keyword/semantic lookup, search_prefix for subtree enumeration, resolve for code verification, expand_keys for key variants, and find_artworks for cross-collection presence. The only mild overlaps are browse vs. expand_keys (browse offers an includeKeys preview) and browse vs. resolve (both return hierarchy metadata), but the descriptions explicitly explain when to prefer each.

Naming Consistency3/5

All names are snake_case and readable, but the verb style is mixed: bare verbs (browse, search, resolve) alongside verb_noun compounds (expand_keys, search_prefix, find_artworks). An agent could infer intent, but there is no single predictable pattern.

Tool Count5/5

Six tools is tightly scoped to the Iconclass domain, with each tool earning its place: lookup, navigation, two search strategies, variant expansion, and collection linkage. No redundant or filler tools.

Completeness4/5

The surface covers the full read-only lifecycle for a classification system: find notations (search/search_prefix), inspect them (browse/resolve), expand variants (expand_keys), and connect to artworks (find_artworks). Minor gaps remain—there is no dedicated way to list/filter loaded collections or move from an artwork back to notations—but core discovery workflows have no dead ends.

Maintenance

ActivityActive
ResponsivenessNo recent community issues