About
BAK cultural heritage, ISOS, living traditions, RSS
Security Report
Valid MCP server (1 strong, 2 medium validity signals). No known CVEs in dependencies. Package registry verified. Imported from the Official MCP Registry. Trust signals: trusted author (47/47 approved).
5 files analyzed Β· 1 issue found
Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.
How to Install
Add this to your MCP configuration file:
{
"mcpServers": {
"io-github-malkreide-swiss-culture-mcp": {
"args": [
"swiss-culture-mcp"
],
"command": "uvx"
}
}
}Documentation
View on GitHubFrom the project's GitHub README.
π¨π Part of the Swiss Public Data MCP Portfolio
ποΈ swiss-culture-mcp
MCP server for Swiss cultural heritage data from the Federal Office of Culture (BAK) β ISOS townscapes, Living Traditions, cultural prizes, press releases. No API key required.
π English | Deutsch
Overview
swiss-culture-mcp makes Swiss cultural data accessible to AI assistants. The server connects LLMs like Claude with Switzerland's national cultural heritage: from protected townscapes (ISOS) to living traditions of intangible cultural heritage and current cultural awards.
Sources: geo.admin.ch REST API Β· news.admin.ch RSS Β· opendata.swiss CKAN Β· lebendige-traditionen.ch
No API key required. All data sources are publicly available (Open Government Data).
Anchor demo query: "Which protected townscapes are there in the school districts of the city of Zurich, and what living traditions are practised there?"
Features
- ποΈ ISOS search β Federal Inventory of Swiss Townscapes Worth Protecting by name, canton or settlement type
- π Living Traditions β 228 entries of Swiss intangible cultural heritage
- π Cultural prizes β Swiss Film Prize, Grand Prix Literature, Music Prize and more
- π° BAK press releases β current news from the Federal Office of Culture
- π¦ Open data catalogue β BAK datasets on opendata.swiss
- βοΈ Dual transport β stdio for Claude Desktop, Streamable HTTP for cloud deployment
| # | Tool | Description |
|---|---|---|
| 1 | bak_search_isos | Search ISOS townscapes by place name |
| 2 | bak_isos_by_kanton | List all ISOS objects in a canton |
| 3 | bak_get_isos_detail | Get full details of an ISOS object |
| 4 | bak_isos_by_kategorie | Filter ISOS by settlement type (Stadt, Dorf, etc.) |
| 5 | bak_isos_statistics | ISOS inventory statistics (sampled by canton) |
| 6 | bak_get_news | Current BAK press releases |
| 7 | bak_get_kulturpreise | Swiss cultural prizes (Film Prize, Grand Prix Literature, etc.) |
| 8 | bak_get_opendata | BAK datasets on opendata.swiss |
| 9 | bak_list_traditions | List Switzerland's Living Traditions |
| 10 | bak_get_tradition_detail | Get detailed description of a tradition |
3 Resources: bak://isos/kantone Β· bak://isos/kategorien Β· bak://kulturpreise/uebersicht
Data Sources
| Source | API Type | Content |
|---|---|---|
| geo.admin.ch | REST MapServer | ISOS (Federal Inventory of Swiss Townscapes) |
| news.admin.ch | RSS Feed | BAK press releases, cultural prizes |
| opendata.swiss | CKAN REST API | BAK open data datasets |
| lebendige-traditionen.ch | HTML Fetch | 228 entries of intangible cultural heritage |
Prerequisites
- Python 3.11+
uvorpip- No API keys required
Installation
# Recommended: uvx (no install step needed)
uvx swiss-culture-mcp
# Alternative: pip
pip install swiss-culture-mcp
Quickstart
# Start the server (stdio mode for Claude Desktop)
uvx swiss-culture-mcp
Try it immediately in Claude Desktop:
"Show me all protected townscapes in the canton of GraubΓΌnden" "Which living traditions are practised in canton Appenzell?" "Which Swiss cultural prizes were awarded in 2026?"
Configuration
Environment Variables
| Variable | Default | Description |
|---|---|---|
MCP_TRANSPORT | stdio | Transport: stdio or streamable_http (streamable-http is accepted too). The 2026-07-28 era is reachable only over the HTTP transport. |
MCP_HOST | 127.0.0.1 | Bind host for HTTP transport (loopback by default) |
MCP_PORT | 8000 | Port for HTTP transport |
MCP_ALLOW_PUBLIC_BIND | false | If true, permits binding 0.0.0.0 without auth. Set this only behind an authenticating reverse proxy (e.g. Cloudflare Access, oauth2-proxy). |
MCP_ALLOWED_HOSTS | (empty) | Comma-separated hostnames this server answers to, without a scheme (mcp.example.ch). Feeds the Host/Origin check of the HTTP transport. Set it for every non-loopback deployment β see the warning below. Loopback stays allowed regardless, so container health checks keep working. |
ALLOWED_ORIGINS | (empty) | Comma-separated CORS origins, with scheme (https://claude.ai). Empty means no browser-based MCP client is permitted; stdio and non-browser clients are unaffected. * works but is logged as a warning. |
LOG_LEVEL | INFO | DEBUG, INFO, WARNING, ERROR β structured JSON logs to stderr |
Claude Desktop Configuration
{
"mcpServers": {
"swiss-culture": {
"command": "uvx",
"args": ["swiss-culture-mcp"]
}
}
}
Config file locations:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
After restarting Claude Desktop, all tools are available. Example queries:
- "Show me all protected townscapes in the canton of GraubΓΌnden"
- "What is the Alphorn and BΓΌchelspiel tradition?"
- "Which Swiss cultural prizes were awarded in 2026?"
- "Is the old town of Stein am Rhein in the ISOS inventory?"
- "Which living traditions are practised in canton Appenzell?"
Cloud Deployment (Streamable HTTP)
For use via claude.ai in the browser (e.g. on managed workstations without local software):
The connector URL is always the deployment's host plus the transport path:
https://<host>/mcp. Add it in claude.ai under Settings β MCP Servers.
Render.com (recommended):
- Push/fork the repository to GitHub
- On render.com: New Web Service β connect GitHub repo
- Set environment variables in the Render dashboard β including
MCP_ALLOWED_HOSTS=your-app.onrender.comand, for a browser-based client,ALLOWED_ORIGINS=https://claude.ai - In claude.ai under Settings β MCP Servers, add:
https://your-app.onrender.com/mcp
Docker. The repository ships a multi-stage Dockerfile
(python:3.13-slim, non-root, TCP health check). It presets the transport, a
0.0.0.0 bind and MCP_ALLOW_PUBLIC_BIND=true, because inside a container the
platform's edge proxy is the only way in. MCP_ALLOWED_HOSTS is deliberately
left unset in the image β the hostname depends on where you deploy, and a
guessed one would reject every real request with HTTP 421:
docker build -t swiss-culture-mcp .
docker run -p 8000:8000 \
-e MCP_ALLOWED_HOSTS=mcp.example.ch \
-e ALLOWED_ORIGINS=https://claude.ai \
swiss-culture-mcp
The two variables guard different things β one does not stand in for the other. Measured against this server on a
0.0.0.0bind, with a request carryingOrigin: https://claude.ai:
MCP_ALLOWED_HOSTSALLOWED_ORIGINSHost/Origin check POST Preflight set set active 200allowed set β active 403refused β set off 200allowed β β off 200refused Read it column by column, because the two failures are not the same kind.
ALLOWED_ORIGINSdecides whether a browser client works at all: without it the request is refused (403from the transport when the Host allow-list is active β a rejectedOrigin; a rejectedHostwould be421) or the browser cannot read the response.MCP_ALLOWED_HOSTSdecides whether the deployment is safe: without itbuild_transport_security()returnsNoneand theHostandOriginheaders are not checked at all. Row three is the trap β a browser client connects and everything looks fine, through a deployment open to DNS rebinding. Set both on a public bind; leaveALLOWED_ORIGINSunset only when no browser-based client is meant to reach the server, and never leaveMCP_ALLOWED_HOSTSunset there.
# Local HTTP mode (loopback only β safe default, no allow-list needed)
MCP_TRANSPORT=streamable_http MCP_PORT=8000 python -m swiss_culture_mcp.server
# Public bind (DANGEROUS β only behind an authenticating reverse proxy)
MCP_TRANSPORT=streamable_http MCP_HOST=0.0.0.0 MCP_ALLOW_PUBLIC_BIND=true \
MCP_ALLOWED_HOSTS=mcp.example.ch python -m swiss_culture_mcp.server
β οΈ Security: The server itself has no authentication. Binding to a public interface without an upstream auth layer turns it into an open proxy for the federal data sources. Always run an authenticating reverse proxy (Cloudflare Access, oauth2-proxy, nginx + auth_request) in front of
0.0.0.0deployments.
β οΈ Set
MCP_ALLOWED_HOSTSon a public bind. Without it theHostandOriginheaders are not checked at all, which leaves the server open to DNS rebinding: an attacker points a victim's browser at it and talks to it under a foreignHost. The server logsdns_rebinding_protection_offon every such start β that line is the symptom, not a formality. A loopback bind needs no allow-list; the SDK derives one from the bind host itself.
Architecture
βββββββββββββββββββ ββββββββββββββββββββββββββββ ββββββββββββββββββββββββββββ
β Claude / AI ββββββΆβ Swiss Culture MCP ββββββΆβ geo.admin.ch REST β
β (MCP Host) βββββββ (MCP Server) βββββββ news.admin.ch RSS β
βββββββββββββββββββ β β β opendata.swiss CKAN β
β 10 Tools Β· 3 Resources β β lebendige-traditionen β
β Stdio | Streamable HTTP β ββββββββββββββββββββββββββββ
ββββββββββββββββββββββββββββ
Project Structure
swiss-culture-mcp/
βββ src/
β βββ swiss_culture_mcp/
β βββ __init__.py
β βββ server.py # All 10 tools, 3 resources
βββ tests/
β βββ conftest.py # pytest configuration
β βββ test_server.py # 36 tests (unit + live)
βββ pyproject.toml
βββ CHANGELOG.md
βββ CONTRIBUTING.md # Contribution guide (English)
βββ CONTRIBUTING.de.md # Contribution guide (German)
βββ SECURITY.md # Security policy & posture (English)
βββ SECURITY.de.md # Security policy & posture (German)
βββ LICENSE
βββ README.md # This file (English)
βββ README.de.md # German version
MCP Protocol Version
This server speaks two protocol eras over the same endpoint. The client's first request on a connection decides which one applies; a later claim from the other era is refused.
| Era | Revision | Who reaches it |
|---|---|---|
initialize handshake | 2024-11-05 β¦ 2025-11-25 | What today's clients speak. The server answers with the revision asked for, or with the 2025-11-25 ceiling when the request asks for something newer. |
| Per-request envelope | 2026-07-28 | A request carrying the 2026-07-28 _meta envelope opens a modern connection. |
Both revisions are pinned in
tests/test_protocol_version.py and asserted
against the installed SDK, so a Dependabot bump of mcp cannot move either one
silently.
Note that the SDK's LATEST_PROTOCOL_VERSION is an alias for the modern
era, not for the handshake era β pinning against it alone would leave the era
that current clients actually negotiate free to drift.
The modern era is measured, not inferred.
tests/test_modern_era.py builds the server's real
ASGI app and sends requests through it: a 2026-07-28 envelope, an
initialize handshake, and each of the malformed variants. It asserts that a
modern request is answered, that the two eras stay separate (initialize is
not a method on the modern wire; the handshake caps at 2025-11-25 instead of
handing out 2026-07-28), that server/discover names exactly the pinned
revision, that a foreign revision is refused with -32022 naming both the
requested and the supported one, and that ttlMs/cacheScope and
serverInfo arrive as wire fields.
This matters because the modern era exists only on the streamable-HTTP
entry β stdio and the in-process clients speak the initialize handshake and
nothing else. Testing the spec through an in-process client tests the handlers,
not the era. That gap hid a one-character defect: main() started the HTTP
transport as streamable_http, where the SDK's run() takes
streamable-http, so the transport aborted with ValueError and the server
did not serve the spec at all. Every test stayed green, because they mocked
mcp.run and compared the string against a hand-written copy of the same
typo.
Server identity. Spec 2026-07-28 carries serverInfo in the _meta of
every response, not once per session as the handshake era does. This server
fills it with name, title, description, website URL and the version from the
package metadata (importlib.metadata, the same source as the outbound
User-Agent); a hand-maintained literal is rejected by
scripts/check_version_sync.py.
The name is swiss-culture-mcp β the same spelling as the distribution, the
console script, the registry entry and the outbound User-Agent. It read
swiss_culture_mcp until 2026-09-20; an identity spelled differently depending
on where you look is not one. tests/test_servername.py holds the sources
together rather than checking a literal against itself. The Python logger
keeps the underscore on purpose: that is a logger name, not a server identity,
and renaming it would break every operator's logging config without aligning
anything.
Update policy. When the gate fails, do not edit the constant blindly: read
the spec changelog between the two revisions, verify the server still behaves,
then move the constant, this section, README.de.md and
CHANGELOG.md together.
Testing
# Unit tests (no API key required)
PYTHONPATH=src pytest tests/ -m "not live"
# Integration tests (live API calls)
PYTHONPATH=src pytest tests/ -m "live"
Example Use Cases
Schools / Education
"Which protected townscapes are there in the school districts of the city of Zurich?"
β bak_isos_by_kanton(kanton="ZH") + bak_get_isos_detail(...)
"Find living traditions for a project week on the theme of cultural heritage"
β bak_list_traditions() + bak_get_tradition_detail(slug="...")
"Which UNESCO World Heritage Sites are also in ISOS?"
β bak_search_isos(query="...") + bak_get_opendata(query="UNESCO")
City Administration / Spatial Planning
"Is the building at address X within an ISOS perimeter?"
β bak_search_isos(query="community/place name")
"Which BAK datasets are available for GIS integration?"
β bak_get_opendata() β WMS/WFS URLs for GIS software
AI Working Group / Demos
"Show current cultural policy of the federal government"
β bak_get_news() + bak_get_kulturpreise()
β More use cases by audience β
Safety & Limits
| Aspect | Details |
|---|---|
| Access | Read-only β the server cannot modify or delete any data |
| Personal data | No personal data β all sources are aggregated, public cultural heritage data |
| Rate limits | Built-in per-query caps (e.g. max 100 ISOS results, 50 news items, 200 category entries) |
| Timeout | 20 seconds per API call |
| Authentication | No API keys required β all 4 data sources are publicly accessible |
| Licenses | All data under open licenses (Open Government Data): geo.admin.ch, opendata.swiss, news.admin.ch |
| Terms of Service | Subject to ToS of the respective data sources: geo.admin.ch, opendata.swiss, news.admin.ch, lebendige-traditionen.ch |
Known Limitations
- ISOS statistics: Sample-based per canton (not exhaustive for all cantons)
- Living Traditions: HTML scraping β may break if lebendige-traditionen.ch changes its structure
- BAK news/prizes: RSS feed limited to the most recent entries
- opendata.swiss CKAN: Full-text search may return results from other publishers
- The addresses this server hands out are measured, not assumed.
scripts/record_fixtures.pyre-checks every one on each run, together with four controls (an invented geo.admin.ch service, an invented BAK path, an invented news organisation number, an invented tradition slug). On 2026-08-08 one was dead:bak_isos_overviewpublished.../home/kulturerbe/baukultur.htmlas its BAK source β HTTP 404, as is the wholekulturerbebranch. It was replaced by the BAK root, which verifiably answers 200, not by a guessed replacement URL. - Everything else held. geo.admin.ch, opendata.swiss, gisos, isos, the news feed with
org-nr=314and the tradition pages all return real content. That null result is recorded too: without it the next pass starts from nothing.
Synergies with Other MCP Servers
swiss-culture-mcp can be combined with other servers in the portfolio:
| Combination | Use Case |
|---|---|
+ swiss-transport-mcp | Cultural tourism: day trips to traditions by public transport |
+ zurich-opendata-mcp | Local cultural atlas: ISOS + Zurich city events |
+ global-education-mcp | Cultural education in international comparison |
+ fedlex-mcp | Cultural property transfer act + BAK enforcement practice |
+ swiss-statistics-mcp | Cultural expenditure by canton (BFS data) |
Changelog
See CHANGELOG.md
Contributing
Contributions are welcome β see CONTRIBUTING.md.
Security
Security posture, hardening details and the responsible-disclosure process are documented in SECURITY.md.
License
MIT License β see LICENSE
Author
Hayal Oezkan Β· malkreide
Credits & Related Projects
- Data: Bundesamt fΓΌr Kultur (BAK) β Federal Office of Culture
- ISOS: geo.admin.ch β Federal Office of Topography swisstopo
- Traditions: lebendige-traditionen.ch β BAK living traditions registry
- Protocol: Model Context Protocol β Anthropic / Linux Foundation
- Related: zurich-opendata-mcp β MCP server for Zurich city open data
- Portfolio: Swiss Public Data MCP Portfolio
Installation
Run via uv's uvx β no clone or manual install needed. Add to your MCP client config (mcpServers for Claude Desktop, Cursor and Windsurf; use a top-level servers key for VS Code in .vscode/mcp.json):
{
"mcpServers": {
"swiss-culture-mcp": {
"command": "uvx",
"args": [
"swiss-culture-mcp"
]
}
}
}
Reviews
No reviews yet
Be the first to review this server!
More Developer Tools MCP Servers
Paperclip
Freeby Paperclipai Β· Developer Tools
Trending hip-hop artist momentum scores across four cultural dimensions.
Fetch
Freeby Modelcontextprotocol Β· Developer Tools
Web content fetching and conversion for efficient LLM usage
Git
Freeby Modelcontextprotocol Β· Developer Tools
Read, search, and manipulate Git repositories programmatically
Toleno
Freeby Toleno Β· Developer Tools
Toleno Network MCP Server β Manage your Toleno mining account with Claude AI using natural language.
MCP Marketplace
Freeby mcp-marketplace Β· Developer Tools
Search and install MCP servers from inside your AI client.
mcp-creator-python
Freeby mcp-marketplace Β· Developer Tools
Create, build, and publish Python MCP servers to PyPI β conversationally.
