Context7
Up-to-date docs for AI agents
Beschreibung vom Entwickler (englisches Original)
MCP server for LINDAS — the Swiss administration's linked-data SPARQL knowledge graph (cube.link)
Diese drei werden nie zu einer Punktzahl zusammengefasst: Meinungen, Messungen und Beliebtheit sind verschiedene Dinge.
Für diesen Server haben wir noch keine Zusammenfassung in einfacher Sprache geschrieben. Unten stehen die Fakten, die wir aus der Registry gelesen haben.
Wähle die KI-App, die du nutzt, und kopiere die Einstellungen.
Du brauchst
Welche App nutzt du?
Wähle oben deine App. Wir merken sie uns, damit der Button beim nächsten Mal „In … installieren“ anzeigt.
Öffne Claude Desktop → Settings → Developer → Edit Config und füge dies in claude_desktop_config.json ein
{
"mcpServers": {
"lindas": {
"command": "uvx",
"args": [
"lindas-mcp"
]
}
}
}Führe das in deinem Terminal aus
claude mcp add lindas -- uvx lindas-mcpIn .cursor/mcp.json in deinem Projekt oder in ~/.cursor/mcp.json einfügen
{
"mcpServers": {
"lindas": {
"command": "uvx",
"args": [
"lindas-mcp"
]
}
}
}Dein Browser fragt, ob er die App öffnen darf, dann zeigt die App die Einstellungen und bittet dich um Bestätigung. Schlüsselwerte bleiben leer, damit du sie selbst einträgst.
In .vscode/mcp.json in deinem Projekt einfügen
{
"servers": {
"lindas": {
"type": "stdio",
"command": "uvx",
"args": [
"lindas-mcp"
]
}
}
}Dein Browser fragt, ob er die App öffnen darf, dann zeigt die App die Einstellungen und bittet dich um Bestätigung. Schlüsselwerte bleiben leer, damit du sie selbst einträgst.
Dieser Server läuft auf deinem Computer, und ChatGPT kann sich nur mit Servern im Internet verbinden. Wähle eine andere App.
Deine Auswahl bleibt in einem Cookie auf diesem Gerät; kein Konto nötig.
Diese Einstellungen werden aus dem Registry-Eintrag des Entwicklers erzeugt. Wenn in der README etwas anderes steht, folge der README.
Läuft auf deinem Computer; die Tool-Liste erscheint nach der Installation in deiner KI-App.
Wir prüfen Informationen, die jeder sehen kann; den Code haben wir nicht gelesen. Checks, die nicht zutreffen, werden nicht mitgezählt. · Geprüft am 8. Nov. 2026
Der Registry-Name wurde mit dem GitHub-Konto malkreide bestätigt, dem das Repo gehört
Dieses Repo haben wir noch nicht von GitHub gelesen
Dieses Repo haben wir noch nicht von GitHub gelesen
Dieser Server läuft auf deinem Computer; es gibt keinen Endpunkt im Internet
Läuft auf deinem Computer und nutzt stattdessen lokale Einstellungen
Läuft auf deinem Computer; Tool-Listen können wir nur von Endpunkten im Internet lesen
Verglichen mit allen aktiven Servern dieser Kategorie in der Registry. Sterne zählen nur, wenn dem Herausgeber das Repo gehört.
Er hat 1 von 1 zutreffenden Basischecks bestanden. Den Code haben wir nicht gelesen. Bevor du einen Schlüssel oder Token hinzufügst, sieh nach, welche Zugriffe der Server verlangt, und nutze einen Schlüssel, der nur die Berechtigungen hat, die du brauchst.
Die Registry nennt keinen erforderlichen Schlüssel, manche Server bitten dich aber bei der ersten Nutzung, dich anzumelden.
Er läuft auf deinem Computer. Deine KI-App startet ihn bei Bedarf, und die Daten laufen nicht über die Server des Entwicklers (außer der Server ruft selbst einen Onlinedienst auf).
Das GitHub-Repo wurde zuletzt – geändert, und die neueste Version (0.3.0) kam vor 2 Monaten in die Registry.
Apps, die MCP unterstützen, etwa Claude Desktop, Claude Code, Cursor und VS Code. Außerdem brauchst du Python (uv) auf deinem Computer.
In derselben Kategorie: Context7, Codebase Memory, Exa
Server derselben Kategorie von anderen Entwicklern, sortiert nach Sternen.
So liest du eine Karte:★ GitHub-SterneiDrei Säulen: Bewertungen · Checks · NutzungiAktualisiert = neueste Version in der Registry veröffentlichti
Up-to-date docs for AI agents
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
Unverändert aus dem Repo des Entwicklers übernommen. PopNx MCP hat den Inhalt weder geprüft noch empfiehlt es ihn. HTML, Bilder und Skripte wurden entfernt. Links führen von dieser Website weg.
Part of the [Swiss Public Data MCP Portfolio](https://github.com/malkreide/swiss-public-data-mcp) — a collection of open-source MCP servers connecting AI agents to Swiss public and open data.
This is a private project. It is not affiliated with, endorsed by, or operated on behalf of any employer or public authority.
MCP server for LINDAS — the linked-data knowledge graph of the Swiss administration.
🇩🇪 Deutsche Version
LINDAS (Linked Data Service) is the Swiss Confederation's SPARQL knowledge graph, run by the Federal Archives. Instead of tables, it publishes data as RDF triples: around 2000 statistical data cubes (cube.link) from federal offices, plus the geo-linked data that powers visualize.admin.ch.
Mnemonic: «I14Y is the library catalogue, LINDAS is the library itself.»
i14y-mcp tells you a dataset exists.
LINDAS holds the data and lets you query across all of it at once.
This server wraps LINDAS in guarded tools rather than exposing raw SPARQL, because the store rewards precise queries and times out on broad ones.
*«Which forest-fire danger level currently applies, who publishes it, and
under which licence?»*
search_cubes(query="waldbrand")
→ «Waldbrandgefahr» — BAFU, published
get_cube_structure(cube_uri=...) → dimensions: Warnregion (key), Gefahrenstufe (measure) → licence: fedlex.data.admin.ch/eli/cc/1984/... (a Fedlex URI!)
query_cube_observations(cube_uri=...) → Warnregion: "Dorneck / Thierstein (SO)", Gefahrenstufe: "grosse Gefahr"
The codes come back as labels — «grosse Gefahr», not 4. And the licence is a Fedlex URI you can resolve with fedlex-mcp.
LINDAS cubes are self-describing but coded, and the server does two steps to read them:
Mnemonic: «LINDAS speaks in postcodes, not place names.» An observation
says region
1805; the server turns that into «Alpennordhang» for you.
Both steps happen inside `query_cube_observations`. It fetches the structure itself, so a caller does not have to call get_cube_structure first to get readable rows — doing so only repeats the cube-metadata and dimension queries. get_cube_structure is the tool for finding out what a cube *contains* (dimension names, key vs. measure, licence) and for writing a run_sparql query against it. It reports only whether a dimension has a code list, not the entries, so it is not a decoding aid either.
┌──────────────────────────────┐
│ MCP Host (Claude) │ └───────────────┬──────────────┘ │ stdio | streamable-http ┌───────────────▼──────────────┐ │ lindas-mcp │ │ ┌────────────────────────┐ │ │ │ server.py (7 tools) │ │ talks only to cube.py │ ├────────────────────────┤ │ │ │ lindas/cube.py │ │ ← vocabulary guardrail, │ │ │ │ two-phase access, │ │ │ │ code→label resolution │ ├────────────────────────┤ │ │ │ lindas/queries.py │ │ SPARQL templates, │ │ │ │ all anchored on a class │ ├────────────────────────┤ │ │ │ lindas/client.py │ │ raw SPARQL over HTTP, │ │ │ │ knows nothing of cubes │ └────────────────────────┘ │ └───────────────┬──────────────┘ │ HTTPS, no auth ┌───────────────▼──────────────┐ │ lindas.admin.ch/query │ │ SPARQL 1.1 · ~2000 cubes │ └──────────────────────────────┘
The lindas/ package is deliberately layered so it can be lifted into other LINDAS-backed servers unchanged. client.py knows only HTTP and SPARQL; cube.py knows the cube.link vocabulary; the tools know only cube.py. Raw SPARQL never reaches the agent except through the guarded run_sparql escape hatch.
Architecture A (live SPARQL only), with a strict vocabulary guardrail.
Verified live on 2026-07-21:
SELECT *, COUNT(*) over the whole store) time out at 60–90 s; the same question anchored on ?x a cube:Cube answers in ~2 s.Consequences, baked into the tools:
run_sparql is capped at 500 rows and 30 s and marked as advanced.Full probe report: docs/probe-lindas.md.
| Tool | Purpose |
|---|---|
search_cubes | Find cubes by topic. Entry point. Deduplicates versions. |
get_cube_structure | Phase 1: dimensions, measures, licence. |
query_cube_observations | Phase 2: data points with codes resolved to labels. |
list_publishers | Federal bodies publishing cubes, with counts. |
resolve_municipality | Name ↔ URI ↔ BFS number — the portfolio join key. |
run_sparql | Advanced escape hatch. Capped, guarded. |
api_status | Reachability check with cube count. |
All tools are annotated readOnlyHint: true.
search_cubes resultreturned is a count of what came back, not a statement about what exists. Two fields say how complete the answer is:
| Field | Meaning |
|---|---|
truncated | false — every match is in cubes. true — there is more, or there may be more and the server could not rule it out. |
total_matched | The exact total when one is available on the same unit as returned, null when no comparable number exists. |
Check `truncated` before concluding anything. On true, do not report the result as complete and do not answer "there are N cubes about X" from returned. Widen in this order: raise limit (up to 100); if it is still truncated at 100, narrow with creator_uri from list_publishers and ask one federal body at a time; use latest_only=False only when you actually want the version history, because it widens the result rather than escaping the cut.
`total_matched` is `null` more often than you might expect, and on purpose. With latest_only=true (the default) the count LINDAS can answer cheaply counts cube *versions*, while the tool returns version-collapsed cubes. Measured on 2026-09-20 with German labels: «wald» matches 127 published versions that collapse to 35 logical cubes, «energie» 33 to 13. A total_matched of 127 next to a returned of 20 would claim 107 missing cubes where at most 15 exist to find — so the field says null, which is true, instead of a number that is not. truncated stays reliable there and is the field to act on.
Where the server has seen every matching row — which is the common case, because it fetches one row beyond what it needs — total_matched is exact in both branches, and truncated is derived from it rather than from the fetch limit.
uvx lindas-mcp
{
"mcpServers": { "lindas": { "command": "uvx", "args": ["lindas-mcp"] } } }
LINDAS_MCP_TRANSPORT=streamable-http PORT=8000 lindas-mcp
LINDAS_MCP_TRANSPORT accepts stdio (default), streamable-http or sse. The transport decides the path: streamable-http serves /mcp, sse serves /sse. Anything else falls through to stdio, which opens no port at all — in a container that surfaces only as a failing health check. Both HTTP transports bind to HOST, default `127.0.0.1`; set HOST=0.0.0.0 explicitly to expose it (only behind a reverse proxy). LOG_LEVEL tunes the JSON stderr logs.
The connector URL is `https:// /mcp`. The path is not configurable — it comes from the transport, and streamable-http is the one a current client expects. sse and its /sse path are the specification's superseded transport; nothing was removed and they still serve, but a new connector should not be pointed at them.
A hosted deployment — Railway, Fly, a container behind any reverse proxy — needs three variables, and the third is the one a deployment inherits wrongly because nothing fails loudly without it:
| Variable | Hosted value | If unset |
|---|---|---|
LINDAS_MCP_TRANSPORT | streamable-http | Falls through to stdio: the process starts, opens no port, and surfaces only as a failing health check. The container image already sets it. |
HOST | 0.0.0.0 | Binds loopback only, so the published port reaches nothing. The image sets it deliberately (SEC-016). |
LINDAS_MCP_ALLOWED_HOSTS | the public hostname | `Host` validation is switched off entirely — see below. |
`LINDAS_MCP_ALLOWED_HOSTS` is a comma-separated list of hostnames, without scheme and without port: lindas-mcp.example.ch,alias.example.ch, not https://lindas-mcp.example.ch:443. The value is matched literally against the incoming Host header, and behind TLS on port 443 that header carries no port. Loopback forms are added automatically, so the container health check keeps working.
It fails in two opposite directions:
Host header is never checked, which is the SDK's own default. The only sign is a startup warning, dns_rebinding_protection_off.mcp.example.ch does not cover Host: mcp.example.ch:8443. If the proxy forwards a non-default port, name both forms.ALLOWED_ORIGINS is a separate question and concerns browser clients only. It is the CORS origin list, comma-separated, and unset means no browser client is permitted at all — that is the default. A client that is not a browser sends no Origin and is unaffected. * is still accepted and logs a warning. One detail worth knowing if you do serve browsers: the origins derived from LINDAS_MCP_ALLOWED_HOSTS are the http:// ones, so an https:// browser origin has to be named in ALLOWED_ORIGINS yourself.
docker compose up --build # binds 0.0.0.0 inside the container, publishes :8000
The image runs as a non-root user, read-only, with resource limits and a TCP health check (see Dockerfile and compose.yaml).
Nur der Anfang wird gezeigt; den Rest findest du im Repo