
Eth Library Mcp
io.github.malkreide由 GitHub 帳號 malkreide 發布v0.4.0更新於 Oct 24, 2026
ETH Library Discovery API
概覽
本機 MCP 伺服器,讓助理透過 Discovery API 檢索蘇黎世 ETH 圖書館 3000 萬以上的書籍、地圖、圖像與檔案資料。
- 可以做什麼
- 以欄位、運算子和 facet 語法對目錄做全文檢索,並依書籍、地圖、圖像等資源類型篩選。依 MMS-ID 取得單一資源的完整中繼資料。在指定檔案館內檢索,例如大學檔案館、Max Frisch、Thomas Mann、版畫收藏和圖像檔案館。執行針對教育學與學校歷史的精選教育檢索。檢視可用資源類型與檔案館的伺服器概觀,並使用內建的研究與教育研究提示詞。
- 適用情境
- 適合需要讓助理研究蘇黎世 ETH 圖書館典藏的瑞士自然科學、教育或檔案資料(包括具名的文學與機構檔案館)時使用,不必離開對話。
- 執行需求
- 以 Python 套件形式在本機執行(需 Python 3.11+),可透過 uvx 或 pip 安裝。需要 ETH 圖書館開發者入口提供的免費 API 金鑰,透過環境變數 ETH_LIBRARY_API_KEY 提供。選用變數可設定日誌等級、CORS 來源與 HTTP 模式下的允許主機。需要連線至 ETH 圖書館 API 的網路存取。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Eth Library Mcp,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
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 and archival material.
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 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: 2026-07-28 (via mcp[cli]>=2.0.0,<3).
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."
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
Quickstart
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
Claude Desktop Configuration
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):
The HTTP transport binds to 127.0.0.1 by default. To expose it on another
interface, pass --host explicitly:
⚠️ 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)
Utilities
Resources & Prompts
Query Syntax
The Discovery API uses structured queries:
Examples:
Available Archives
Example Use Cases
Project Structure
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.
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. The handshake ceiling is measured against a live initialize through
the assembled ASGI stack, not read off a constant name.
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.
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.
Server identity (serverInfo)
2026-07-28 stamps the server's Implementation block into every modern
result under _meta.io.modelcontextprotocol/serverInfo (spec #3002) — earlier
revisions carried it only in the initialize result. What used to be a
one-time field is now repeated on every call, and version is required.
The SDK fills none of it: "An unversioned server reports an empty version;
the SDK never substitutes its own." Measured against the assembled ASGI stack,
this server used to answer "version": "" in both eras while server.json
told the registry 0.3.4. It now declares:
icons stays unset: this repository ships none, and an invented path would
assert a file that does not exist.
Measured, not read back, in
tests/test_server_identity.py: the
assertions drive a real modern POST through build_http_app(). A look at
mcp.version would stay green even if the constructor argument were lost or
the SDK stopped stamping at all.
Testing
Until 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):
來源:README.md,提交 d0328f1
工具
0版本歷史
2- v0.4.0最新Sep 19, 2026
- v0.3.4Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分