eth-library-mcp
This MCP server connects AI assistants to the ETH Library Zurich's catalogue of over 30 million resources, enabling bibliographic search and discovery across books, archives, maps, images, and more.
Comprehensive full-text search across 30M+ resources with flexible queries: field filters (
any,title,creator,sub), operators (contains,exact,begins_with), boolean logic (AND/OR/NOT), wildcards, language and type filters, open-access filtering, sorting (rank, title, author, date), and pagination.Retrieve full resource metadata by MMS-ID, including optional availability/loan status.
Search within specific archives: University Archives, Max Frisch Archive, Thomas Mann Archive, Graphische Sammlung, and Bildarchiv/E-Pics.
Browse by resource type: books, journals, articles, maps, images, archival materials, scores, databases, audios, videos.
Education-focused search with curated workflows for pedagogy and school history topics.
Server overview (
eth_library_info) listing all available resource types and archives.Built-in prompts for guided general research and education-research workflows.
Resource endpoints to access structured lists of archives and resource types.
Person search (currently non-functional due to API issue BUG-02).
Read-only operations: all tools perform HTTP GET requests, no data modification.
Dual transport: works over stdio or Streamable HTTP/SSE for flexible deployment.
Enriches person records with linked data from Wikidata for enhanced person search results.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@eth-library-mcpSearch the Max Frisch archive for manuscripts."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
π¨π Part of the Swiss Public Data MCP Portfolio
ποΈ eth-library-mcp
π English | Deutsch
MCP server giving AI models direct access to 30M+ resources at ETH Library Zurich β books, maps, images and archival material.
Demo
Overview
eth-library-mcp connects AI assistants like Claude to the largest natural-science library in Switzerland. It exposes full-text search, archive-level queries and resource-type filtering via the ETH Library's Discovery API β all through a single, standardised MCP interface.
6 Tools Β· 1 API Β· 2 Resources Β· 2 Prompts
MCP Protocol Version: 2025-06-18 (via mcp[cli]>=1.0.0,<2.0.0).
BUG-02 is resolved β by removing the tool.
eth_search_personswas documented as "currently non-functional, correct URL to be verified". It has now been verified, and there is no correct URL: the Persons API is gone from the gateway, not merely locked. The gateway routes before it checks the API key, so an existing route answers401and a missing one answers404β/discovery/v1/resourcesgives 401, every/persons/v1/*path gives 404, and so does a deliberately invented Discovery path used as a control. Offering a capability that cannot exist is the same mistake as returning an empty result, only louder. The measurement is recorded and dated intests/fixtures/api_routes.json.
Anchor demo query: "Find historical documents about Zurich school history in the ETH Library archives."
Related MCP server: swiss-cultural-heritage-mcp
Features
π Full-text search over 30M+ resources with fields, operators, and facets
π Resource details β full metadata via MMS-ID
ποΈ Archive search β ETH University Archives, Max Frisch, Thomas Mann, Graphische Sammlung, Bildarchiv
π·οΈ Resource type filter β books, maps, images, archival material and more
π Education search β curated workflow optimised for pedagogy and school history
π Server overview β all resource types and archives at a glance
π£οΈ Built-in prompts β structured research and education-research workflows
βοΈ Dual transport β stdio for Claude Desktop, Streamable HTTP/SSE for cloud deployment
Prerequisites
Python 3.11+
A free API key from developer.library.ethz.ch
Installation
# Clone the repository
git clone https://github.com/malkreide/eth-library-mcp.git
cd eth-library-mcp
# Install
pip install -e .
# Or with uv (recommended)
uv pip install -e .Quickstart
# Set the API key
export ETH_LIBRARY_API_KEY=your_key_here # macOS / Linux
# $env:ETH_LIBRARY_API_KEY = "your_key_here" # Windows (PowerShell)
# Start the server (stdio mode for Claude Desktop)
python -m eth_library_mcp.serverWithout an API key the server returns a helpful error message with the registration link β no crashes.
Try it immediately in Claude Desktop:
"Find books about Swiss education history in the ETH Library." "Search the Max Frisch archive for manuscripts about Zurich."
β More use cases by audience β
Configuration
Environment Variables
Variable | Description | Required |
| API key for Discovery & Persons API | β |
Claude Desktop Configuration
{
"mcpServers": {
"eth-library": {
"command": "python",
"args": ["-m", "eth_library_mcp.server"],
"env": {
"ETH_LIBRARY_API_KEY": "your_key_here"
}
}
}
}Config file locations:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
Cloud Deployment (SSE for browser access)
For use via claude.ai in the browser (e.g. on managed workstations without local software):
python -m eth_library_mcp.server --http --port 8000The HTTP transport binds to 127.0.0.1 by default. To expose it on another
interface, pass --host explicitly:
# Only behind a reverse-proxy / firewall that terminates TLS and enforces auth.
python -m eth_library_mcp.server --http --host 0.0.0.0 --port 8000β οΈ Do not bind to
0.0.0.0without a reverse proxy. The server has no built-in auth, rate-limiting or TLS β any LAN neighbour could call your tools.
π‘ "stdio for the developer laptop, HTTP for the browser β behind a proxy."
Available Tools
Discovery API (api.library.ethz.ch)
Tool | Description |
| Full-text search over 30M+ resources with fields, operators, facets |
| Full metadata for a specific resource via MMS-ID |
| Search within a specific archive (University Archives, Max Frisch, Thomas Mann, etc.) |
| Filter by resource type (books, maps, images, archival material, etc.) |
| Curated search for education topics (pedagogy, school history, etc.) |
Persons API
Tool | Description |
Utilities
Tool | Description |
| Server overview: all types and archives at a glance |
Resources & Prompts
Item | Type | Description |
| Resource | All available resource types |
| Resource | All available archives and collections |
| Prompt | Structured research workflow |
| Prompt | Education topics workflow (Schulamt-optimised) |
Query Syntax
The Discovery API uses structured queries:
field,operator,valueField | Meaning |
| All fields (recommended for starters) |
| Title only |
| Author / creator |
| Subject headings / topics |
Operator | Meaning |
| Term is present |
| Exact match |
| Starts with |
Examples:
any,contains,Volksschule ZΓΌrich
title,contains,PΓ€dagogik
creator,exact,Einstein Albert
sub,contains,Bildungsforschung
title,contains,Schule;sub,contains,GeschichteAvailable Archives
Identifier | Description |
| Institutional memory of ETH Zurich |
| Estate of Swiss author Max Frisch |
| Letters and documents of Thomas Mann |
| Prints, drawings, graphic works |
| Science/technology history, Swissair (E-Pics) |
Example Use Cases
Query | Tool |
"Find books about Zurich school history" |
|
"What's in the Max Frisch archive?" |
|
"Find historical maps of Switzerland" |
|
"Get full metadata for resource ID 991170525863705501" |
|
"Which archives does the ETH Library hold?" |
|
Project Structure
eth-library-mcp/
βββ src/
β βββ eth_library_mcp/
β βββ __init__.py # Package init, version
β βββ server.py # FastMCP server, all tools
βββ tests/
β βββ test_server.py # Unit tests
βββ CHANGELOG.md
βββ CONTRIBUTING.md # Contribution guide (English)
βββ CONTRIBUTING.de.md # Contribution guide (German)
βββ SECURITY.md # Security posture (English)
βββ SECURITY.de.md # Security posture (German)
βββ LICENSE
βββ README.md # This file (English)
βββ README.de.md # German version
βββ claude_desktop_config.json # Example Claude Desktop configuration
βββ pyproject.toml # Build configurationTesting
# Unit tests (no API key required)
PYTHONPATH=src pytest tests/ -m "not live"
# Integration tests (API key required)
# Live checks against the gateway β these need NO API key
PYTHONPATH=src pytest tests/ -m "live"
# Re-record the route census (writes tests/fixtures/PROVENANCE.md)
python scripts/record_fixtures.pyUntil 2026-08-08 this repository had no live tests at all β pytest -m live
collected zero. Nothing in it had ever been held against the source.
The Discovery payloads still cannot be recorded: the API requires a key, and
tests/fixtures/PROVENANCE.md lists them explicitly as NOT RECORDED rather
than giving them a date they never had. What is recordable is the contract the
source gives up without a key β which routes the gateway serves β and that is
exactly what the finding hangs on. The two control_* entries are part of the
measurement, not decoration: without them the recording only proves that someone
got a 404; with them it proves what the gateway distinguishes.
The two live tests need no key and say something anyway: they report if the Persons API comes back (then the tool should return) or if Discovery loses its route (then five tools are affected).
Safety & Limits
Read-only: All tools perform HTTP GET requests only β no data is written, modified, or deleted.
No personal data: The APIs return bibliographic metadata (titles, authors, subjects, identifiers). No personally identifiable information (PII) is processed or stored by this server.
Authentication: A free API key from developer.library.ethz.ch is required. The key is read from the
ETH_LIBRARY_API_KEYenvironment variable and never logged or transmitted to third parties.Rate limits: The ETH Library API enforces rate limits per API key. The server enforces a 30-second timeout per request. Use
limitandoffsetparameters conservatively.Data freshness: Results reflect the ETH Library catalogue at query time. No caching is performed by this server.
Terms of service: Bibliographic metadata is published as Public Domain β free for all uses. API access is subject to the ETH Library Developer Portal terms.
No guarantees: This is a community project, not affiliated with the ETH Library or ETH Zurich. Availability depends on upstream APIs.
Contributing
Contributions are welcome! See CONTRIBUTING.md (Deutsch) for guidelines.
Security
Read-only, no PII, a single upstream API key, and a fixed egress allow-list of ETH Library endpoints. See SECURITY.md (Deutsch) for the full security posture and accepted-risk decisions.
Changelog
See CHANGELOG.md
License
Server code: MIT License β see LICENSE
Bibliographic metadata: Public Domain (no restrictions)
API documentation: developer.library.ethz.ch
Author
Hayal Oezkan Β· github.com/malkreide
Powered by Model Context Protocol β’ 1 API β’ 6 Tools β’ 2 Resources β’ 2 Prompts
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": {
"eth-library-mcp": {
"command": "uvx",
"args": [
"eth-library-mcp"
]
}
}
}Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityCmaintenanceAn MCP server that provides standardized access to biomedical knowledge bases and resources, enabling AI systems to retrieve verified information from sources like bioRxiv, EuropePMC, and various protein/gene databases.5228Apache 2.0
- AlicenseAqualityAmaintenanceEnables AI-native access to Swiss cultural heritage data from SIK-ISEA (artists), Nationalmuseum (collections), and Nationalbibliothek (bibliography) via MCP tools, without authentication.11MIT
- Alicense-qualityDmaintenanceA unified MCP server for biomedical research that connects AI systems to resources like Ensembl, EuropePMC, STRING, and more, enabling retrieval of verified domain-specific information.Apache 2.0
- AlicenseBqualityAmaintenanceAn MCP server providing AI-powered access to Open Data from the City of Zurich, enabling queries to 900+ datasets, real-time environmental and mobility data, geodata, parliamentary proceedings, and more.268MIT
Related MCP Connectors
MCP server connecting AI agents to non-custodial staking data across 130+ networks.
MCP Hub: AI service discovery, per-user OAuth, and multi-service workflow orchestration
Your memory, everywhere AI goes. Build knowledge once, access it via MCP anywhere.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/malkreide/eth-library-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server