Odeuropa EOKG
# odeuropa-eokg-mcp
[](https://modelcontextprotocol.io/specification/2026-07-28) [](https://www.npmjs.com/package/@modelcontextprotocol/server) [](https://github.com/modelcontextprotocol/ext-apps)
A [Model Context Protocol](https://modelcontextprotocol.io) (MCP) server for the *European Olfactory Knowledge Graph* (EOKG): about 2.4 million smell references machine-extracted from European texts (English, French, Italian, Slovenian, German, Dutch) and from roughly 44,000 images of artworks, mostly 1600–1920. The [EOKG](https://doi.org/10.5281/zenodo.10709702) and the [Smell Explorer](https://explorer.odeuropa.eu) are the work of the [Odeuropa](https://odeuropa.eu) project (EU Horizon 2020, grant 101004469).
The MCP server allows a researcher to search passages in natural language, resolve vocabulary concepts, profile a smell source over time, and show artworks with their detected smell-related objects. Because the graph [models a smell as an event](docs/knowledge-graph-queries.md), it can [answer questions](https://claude.ai/artifact/SzxMnGF8HC1yFhj1sqqDbW) that a full-text search can address only partially or not at all.
> This MCP server was developed 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).
## Installation
### Hosted
The easiest way to start is to install the Odeuropa EOKG plugin. It adds the hosted version of the server as a connector (shown as "Odeuropa-EOKG"), together with the [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 [`odeuropa-eokg-claude.zip`](https://github.com/kintopp/odeuropa-eokg-mcp/raw/refs/heads/main/plugin/odeuropa-eokg-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 "Odeuropa-EOKG" 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 [`odeuropa-eokg-chatgpt.zip`](https://github.com/kintopp/odeuropa-eokg-mcp/raw/refs/heads/main/plugin/odeuropa-eokg-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 "@Odeuropa EOKG" 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://odeuropa-eokg-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 the interactive image viewer. The use of an MCP server will consume your free usage quickly. A connector added this way has no skill; install the skill file separately (see [below](#research-skill)).
### Local
Requirements: Node.js ≥ 24.22.1 < 25 (no native dependencies).
```bash
git clone https://github.com/kintopp/odeuropa-eokg-mcp.git
cd odeuropa-eokg-mcp
npm install
```
The MCP client starts the server itself once it is registered. Point the client at the entry file, using **absolute paths** for both `command` and the script:
```jsonc
{
"mcpServers": {
"odeuropa-eokg": {
"command": "/absolute/path/to/bin/node",
"args": ["/absolute/path/to/odeuropa-eokg-mcp/src/index.js"]
}
}
}
```
- **Claude Desktop:** the file is `claude_desktop_config.json` in `~/Library/Application Support/Claude/` (macOS) or `%APPDATA%\Claude\` (Windows). On Windows, double every backslash in the paths. Fully quit and restart Claude Desktop after editing it.
- **Claude Code:** `claude mcp add odeuropa-eokg -- node /absolute/path/to/odeuropa-eokg-mcp/src/index.js`
- **ChatGPT desktop app and Codex:** add a `[mcp_servers.odeuropa-eokg]` table with `command = "…"` and `args = […]` to `~/.codex/config.toml`. The format is TOML, not JSON.
To check the install without a client, run `npm test`. Note that currently (October, 2026) Mistral Vibe can't use a locally hosted MCP server.
### 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 [Tools](#tools)) to choose for a given question type, how to combine searches, important metadata distinctions (e.g. a smell source's vocabulary `concept` vs its `mention`, the words used in the text), 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 Odeuropa EOKG 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: [`odeuropa-eokg.zip`](https://github.com/kintopp/odeuropa-eokg-mcp/raw/refs/heads/main/skill/odeuropa-eokg.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.
## Tools
All ten tools are read-only. Each returns a human-readable summary (`content[].text`) and structured data (`structuredContent`). A typical flow:
1. `eokg_search_smells` for passages;
2. `eokg_get_smell` for one reference;
3. `eokg_get_source` for its document or image.
For artworks, use `eokg_find_visual_smells`, then `eokg_view_image` to show one.
| Tool | What it does |
|---|---|
| [`eokg_list_datasets`](docs/tools.md#eokg_list_datasets) | List the 21 source corpora with a dated snapshot of smell counts. |
| [`eokg_search_smells`](docs/tools.md#eokg_search_smells) | Full-text search of smell excerpts and titles, with language, year and dataset filters. |
| [`eokg_get_smell`](docs/tools.md#eokg_get_smell) | One smell reference: source, excerpt and extracted roles. |
| [`eokg_get_source`](docs/tools.md#eokg_get_source) | A source text or image with a page of its smells. |
| [`eokg_find_concepts`](docs/tools.md#eokg_find_concepts) | Find smell-source and fragrant-space concepts by label or Iconclass notation. |
| [`eokg_get_concept`](docs/tools.md#eokg_get_concept) | A concept's labels, hierarchy, linked-smell counts and Iconclass notation. |
| [`eokg_smell_profile`](docs/tools.md#eokg_smell_profile) | Counts for one concept (smell source, space or gesture) by period, language, dataset, qualities, emotions and spaces, optionally within a year range, plus co-occurring smell sources. |
| [`eokg_find_visual_smells`](docs/tools.md#eokg_find_visual_smells) | Paintings and prints in which a smell source or gesture was detected or catalogued. |
| [`eokg_inspect_image`](docs/tools.md#eokg_inspect_image) | The picture of an image source with its annotated objects, for the model's own analysis. |
| [`eokg_view_image`](docs/tools.md#eokg_view_image) | Shows an image source to the user in an interactive viewer. Object boxes start hidden; a Boxes button shows them. |
Full descriptions and parameters are in [docs/tools.md](docs/tools.md).
## Configuration (env vars)
All variables are optional.
| Variable | Default | Meaning |
|---|---|---|
| `EOKG_SPARQL_ENDPOINT` | `https://data.odeuropa.eu/repositories/odeuropa` | SPARQL endpoint. |
| `EOKG_SKOSMOS_BASE` | `https://vocab.odeuropa.eu/rest/v1/` | Skosmos REST base for vocabulary search. |
| `EOKG_TIMEOUT_MS` | `45000` | Per-request timeout (1,000–600,000). The endpoint's gateway cuts at 60 s. |
| `EOKG_RESULT_CHAR_CEILING` | `150000` | Upper bound on a tool result's size in characters. |
| `EOKG_LOG` | off | `1` writes one JSON line per tool call to stderr. |
To host your own instance, run `npm run serve`, which serves stateless Streamable HTTP from `src/http.js`. Setup, HTTP variables and limits are in [docs/deploy.md](docs/deploy.md).
## Data caveats
- Excerpts are raw OCR text.
- Emotions come from a classifier, and some datasets, German and Slovenian have none.
- Dates are document dates (the emission date almost always equals it) and include noise.
- Words without an operator are OR-ed, and accents must match.
- German and Slovenian are barely linked to concepts, so concept profiles undercount them.
- Filtered searches examine only a window of the most relevant hits.
- Image boxes, including hand-drawn ones, can carry the wrong label.
- Only the olfactory-objects, fragrant-spaces and olfactory-gestures vocabularies can be profiled or counted.
- Iconclass notations ending in `(...)` are placeholders.
Details and examples are in [docs/tools.md](docs/tools.md#data-caveats).
## Limitations
The public endpoint has no SLA and a hard 60-second gateway timeout. Anchored lookups take well under a second, but `eokg_smell_profile` with `include_narrower` can take 15–30 seconds per facet. Please use heavy profile calls considerately, and do not loop them.
## Development
```bash
npm start # serve over stdio manually (waits for an MCP client; Ctrl-C to stop)
npm run serve # serve over stateless Streamable HTTP
npm run lint # ESLint (flat config, Node 24)
npm test # offline suite
npm run test:live # also run the live tests (= EOKG_LIVE=1 npm test)
npm run build:docs # regenerate docs/tools.md's generated blocks from the server
npm run build:skill # sync SKILL.md's version, repack skill/odeuropa-eokg/ into the committed .skill bundle + .zip copy, the plugin folder and its two upload zips
npm run build:viewer # rebuild the committed viewer page after editing apps/image-viewer/
npm run dev:viewer # preview the image viewer in a browser
npm run build:iconclass # rebuild the Iconclass table
npm run inspector # open the MCP Inspector against the server
```
`npm test` fails if `docs/tools.md`, `SKILL.md`'s version, the `.skill` bundle, its `.zip` copy, the plugin folder, its upload zips or the viewer page is stale. Rerun the matching build command and commit the result.
## Citation
If you use odeuropa-eokg-mcp in your research, please cite it as follows:
**APA (7th ed.)**
> Bosse, A. (2026). *odeuropa-eokg-mcp* (Version 0.7.1) [Software]. Research and Infrastructure Support (RISE), University of Basel. https://github.com/kintopp/odeuropa-eokg-mcp
**BibTeX**
```bibtex
@software{bosse_2026_odeuropa_eokg_mcp,
author = {Bosse, Arno},
title = {{odeuropa-eokg-mcp}},
year = {2026},
version = {0.7.1},
publisher = {Research and Infrastructure Support (RISE), University of Basel},
url = {https://github.com/kintopp/odeuropa-eokg-mcp},
orcid = {0000-0003-3681-1289},
note = {Developed with Claude Code (Anthropic, \url{https://www.anthropic.com})}
}
```
Cite the data you report separately, as the European Olfactory Knowledge Graph (see below).
## License
[MIT](./LICENSE) © 2026 University of Basel. The licence covers the code, not the EOKG data it queries.
The European Olfactory Knowledge Graph has its own licence: its dump is published on Zenodo under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) by Pasquale Lisena, Thibault Ehrhart and Raphaël Troncy (EURECOM) for the Odeuropa project, https://doi.org/10.5281/zenodo.10709702. Individual sources carry their own licence in the graph.
TDQS
Scored across 10 tools
Each tool targets a distinct action+resource: full-text search (search_smells) vs. image lookup by concept (find_visual_smells), single-record fetch (get_smell, get_source), vocabulary lookup (find_concepts vs. get_concept), and aggregate statistics (smell_profile). The two potentially confusable pairs — inspect_image vs. view_image (agent analysis vs. user viewer) and get_concept vs. smell_profile (curated labels vs. corpus counts) — are explicitly separated in their descriptions with 'use X to..., call Y to...' guidance.
All names share the eokg_ prefix and predominantly follow a verb_noun pattern (list_datasets, get_smell, find_concepts, search_smells, get_source, inspect_image, view_image, find_visual_smells). The single deviation is eokg_smell_profile, which drops the verb in favour of a noun_noun form, a minor inconsistency in an otherwise predictable scheme.
Ten tools sit comfortably in the well-scoped range and map cleanly onto the domain's distinct operations: discovery (search, find), retrieval (get), inspection (inspect, view), and aggregation (profile). No tool looks redundant or like a thin wrapper over another.
The surface covers discovery, drill-down, vocabulary navigation, image inspection and corpus-wide profiling, which is strong lifecycle coverage for exploratory research. The notable gap is that there is no direct 'list smells for a concept/time/place' enumeration — smell_profile gives counts and facets but to obtain the underlying records an agent must fall back on full-text search or walk sources, which is awkward.