eth-library-mcp

eth-library-mcp

MCP server giving AI models direct access to 30M+ resources at ETH Library Zurich – books, maps, images, archival material, and linked-data person records.

Category
Visit Server

README

πŸ‡¨πŸ‡­ Part of the Swiss Public Data MCP Portfolio

πŸ›οΈ eth-library-mcp

Version License: MIT Python 3.11+ MCP Data Source CI

🌐 English | Deutsch

MCP server giving AI models direct access to 30M+ resources at ETH Library Zurich – books, maps, images, archival material, and linked-data person records.

Demo

Demo: Claude using eth_search_archive to find historical school documents


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, resource-type filtering, and person lookups via the ETH Library's Discovery and Persons APIs – all through a single, standardised MCP interface.

7 Tools Β· 3 APIs Β· 2 Resources Β· 2 Prompts

MCP Protocol Version: 2025-06-18 (via mcp[cli]>=1.0.0,<2.0.0).

⚠️ Known issue (BUG-02): The tool eth_search_persons is currently non-functional because the Persons API endpoint returns HTTP 404. The correct URL needs to be verified at developer.library.ethz.ch. All other 6 tools work correctly.

Anchor demo query: "Find historical documents about Zurich school history in the ETH Library archives."


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
  • πŸ‘€ Person search with linked-data enrichment (Wikidata, GND, Metagrid) (BUG-02: currently unavailable)
  • πŸ“‹ 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


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.server

Without 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
ETH_LIBRARY_API_KEY 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.json
  • Windows: %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 8000

The 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.0 without 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
eth_search_resources Full-text search over 30M+ resources with fields, operators, facets
eth_get_resource Full metadata for a specific resource via MMS-ID
eth_search_archive Search within a specific archive (University Archives, Max Frisch, Thomas Mann, etc.)
eth_search_by_type Filter by resource type (books, maps, images, archival material, etc.)
eth_search_education Curated search for education topics (pedagogy, school history, etc.)

Persons API

Tool Description
eth_search_persons Person search with linked-data enrichment (Wikidata, GND, Metagrid) β€” ⚠️ BUG-02

Utilities

Tool Description
eth_library_info Server overview: all types and archives at a glance

Resources & Prompts

Item Type Description
eth://resource-types Resource All available resource types
eth://archives Resource All available archives and collections
research-workflow Prompt Structured research workflow
education-research Prompt Education topics workflow (Schulamt-optimised)

Query Syntax

The Discovery API uses structured queries:

field,operator,value
Field Meaning
any All fields (recommended for starters)
title Title only
creator Author / creator
sub Subject headings / topics
Operator Meaning
contains Term is present
exact Exact match
begins_with Starts with

Examples:

any,contains,Volksschule ZΓΌrich
title,contains,PΓ€dagogik
creator,exact,Einstein Albert
sub,contains,Bildungsforschung
title,contains,Schule;sub,contains,Geschichte

Available Archives

Identifier Description
ETH_Hochschularchiv Institutional memory of ETH Zurich
ETH_MaxFrischArchiv Estate of Swiss author Max Frisch
ETH_ThomasMannArchiv Letters and documents of Thomas Mann
ETH_GraphischeSammlung Prints, drawings, graphic works
ETH_Bildarchiv Science/technology history, Swissair (E-Pics)

Example Use Cases

Query Tool
"Find books about Zurich school history" eth_search_education
"What's in the Max Frisch archive?" eth_search_archive
"Find historical maps of Switzerland" eth_search_by_type
"Get full metadata for resource ID 991170525863705501" eth_get_resource
"Which archives does the ETH Library hold?" eth_library_info

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 configuration

Testing

# Unit tests (no API key required)
PYTHONPATH=src pytest tests/ -m "not live"

# Integration tests (API key required)
ETH_LIBRARY_API_KEY=xxx pytest tests/ -m "live"

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_KEY environment 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 limit and offset parameters 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.
  • Known issue (BUG-02): eth_search_persons returns HTTP 404 β€” the Persons API endpoint URL needs verification. All other 6 tools work correctly.
  • 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


Powered by Model Context Protocol β€’ 2 APIs β€’ 7 Tools β€’ 2 Resources β€’ 2 Prompts

<!-- mcp-name: io.github.malkreide/eth-library-mcp -->

<!-- BEGIN GENERATED: install -->

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"
      ]
    }
  }
}

<!-- END GENERATED: install -->

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured