Bietet KI-Agenten Zugriff auf Standorte öffentlicher US-Bibliotheken, Filialdetails und Sammlungsdaten aus der IMLS-Umfrage.
Auch bekannt als library-api/libraryapi-mcp, libraryapi-mcp
- Stars
- 0
- Tools
- 6
- Downloads, 30 Tage
- 133
- Neueste Version
- 0.1.3
- Letzter Commit
- 4. Okt. 2026
- Lizenz
- —
Was ist LibraryAPI MCP?
LibraryAPI ist ein MCP server. Bietet KI-Agenten Zugriff auf Standorte öffentlicher US-Bibliotheken, Filialdetails und Sammlungsdaten aus der IMLS-Umfrage. Er stellt 6 Tools bereit, etwa find_libraries_near_address, find_libraries_near_coordinates, get_outlet.
Zusammenfassung generiert aus dem README des Projekts
Über LibraryAPI MCP server
LibraryAPI ermöglicht KI-Assistenten den Zugriff auf Daten öffentlicher Bibliotheken der Vereinigten Staaten, die aus der bundesweiten IMLS Public Libraries Survey stammen. Entwickler können diesen Server in MCP-kompatible Clients wie Claude Desktop oder Cursor integrieren, um standortbasierte Suchen und den Abruf administrativer Daten zu ermöglichen. Der Server funktioniert über spezifische Tools, mit denen Agenten zwischen gesamten Bibliothekssystemen und einzelnen Filialen unterscheiden können.
Nutzer können den Server via pip installieren oder direkt mit uvx ausführen. Der Zugriff erfordert einen LIBRARYAPI_KEY von libraryapi.dev, wobei ein kostenloser Tier mit einem Limit von 500 Requests pro Monat angeboten wird. Das verfügbare Toolset umfasst find_libraries_near_address für die Suche in der Nähe, search_libraries zum Finden von Systemen nach Name oder Stadt sowie get_state_summary für bundesstaatliche Statistiken. Obwohl die Daten jährliche und wöchentliche Gesamtzahlen der Öffnungsstunden enthalten, werden keine spezifischen täglichen Öffnungszeiten für die einzelnen Filialen bereitgestellt.
Was du damit machen kannst
- 1Nahegelegene Bibliotheksfilialen findenFinde die nächstgelegenen Standorte öffentlicher Bibliotheken zu einer bestimmten Adresse oder einem Satz von Koordinaten.
- 2Bibliotheksstatistiken auf Bundesstaatsebene analysierenRufe Gesamtzahlen und Sammlungsgrößen für alle öffentlichen Bibliotheken innerhalb eines bestimmten Bundesstaates ab.
- 3Detaillierte Filialinformationen abrufenErhalte einen vollständigen Datensatz für eine bestimmte Bibliotheksfiliale unter Verwendung ihrer eindeutigen ID.
- 4Nach Bibliothekssystemen suchenIdentifiziere administrative Bibliothekseinheiten durch die Suche nach Name, Stadt oder Bundesstaat.
Geschrieben aus dem README des Projekts. Jeder Use Case wurde gegen ein Zitat daraus geprüft.
So installierst du LibraryAPI MCP
Formate geprüft am 10. Nov. 2026Zu Cursor hinzufügenZu Goose hinzufügenLibraryAPI MCP in Claude Code installieren
$ claude mcp add --env 'LIBRARYAPI_KEY=<YOUR_LIBRARYAPI_KEY>' libraryapi-mcp -- uvx libraryapi-mcpLibraryAPI MCP in Cursor installieren
~/.cursor/mcp.json
{
"mcpServers": {
"libraryapi-mcp": {
"command": "uvx",
"args": [
"libraryapi-mcp"
],
"env": {
"LIBRARYAPI_KEY": "<YOUR_LIBRARYAPI_KEY>"
}
}
}
}LibraryAPI MCP in VS Code installieren
.vscode/mcp.json
{
"servers": {
"libraryapi-mcp": {
"type": "stdio",
"command": "uvx",
"args": [
"libraryapi-mcp"
],
"env": {
"LIBRARYAPI_KEY": "<YOUR_LIBRARYAPI_KEY>"
}
}
}
}LibraryAPI MCP in VS Code CLI installieren
$ code --add-mcp '{"name":"libraryapi-mcp","type":"stdio","command":"uvx","args":["libraryapi-mcp"],"env":{"LIBRARYAPI_KEY":"<YOUR_LIBRARYAPI_KEY>"}}'LibraryAPI MCP in Claude Desktop installieren
claude_desktop_config.json
{
"mcpServers": {
"libraryapi-mcp": {
"command": "uvx",
"args": [
"libraryapi-mcp"
],
"env": {
"LIBRARYAPI_KEY": "<YOUR_LIBRARYAPI_KEY>"
}
}
}
}LibraryAPI MCP in Codex installieren
$ codex mcp add libraryapi-mcp --env 'LIBRARYAPI_KEY=<YOUR_LIBRARYAPI_KEY>' -- uvx libraryapi-mcpLibraryAPI MCP in Codex config.toml installieren
~/.codex/config.toml
[mcp_servers.libraryapi-mcp] command = "uvx" args = ["libraryapi-mcp"] [mcp_servers.libraryapi-mcp.env] LIBRARYAPI_KEY = "<YOUR_LIBRARYAPI_KEY>"
LibraryAPI MCP in Gemini CLI installieren
$ gemini mcp add -s user -e 'LIBRARYAPI_KEY=<YOUR_LIBRARYAPI_KEY>' libraryapi-mcp uvx -- libraryapi-mcpLibraryAPI MCP in Gemini settings.json installieren
~/.gemini/settings.json
{
"mcpServers": {
"libraryapi-mcp": {
"command": "uvx",
"args": [
"libraryapi-mcp"
],
"env": {
"LIBRARYAPI_KEY": "<YOUR_LIBRARYAPI_KEY>"
}
}
}
}LibraryAPI MCP tools 6
Erkannt aus dem READMEfind_libraries_near_addressfind_libraries_near_coordinatesget_outletsearch_librariesget_libraryget_state_summary
| find_libraries_near_address | — | |
| find_libraries_near_coordinates | — | |
| get_outlet | — | |
| search_libraries | — | |
| get_library | — | |
| get_state_summary | — |
Konfiguration
LIBRARYAPI_KEYErforderlichSecretAPI key from https://libraryapi.dev (free tier: 500 requests/month)
| Name | Beschreibung | Typ |
|---|---|---|
| LIBRARYAPI_KEY | API key from https://libraryapi.dev (free tier: 500 requests/month) | ErforderlichSecret |
Automatisierte Checks
Geluften am 14. Nov. 2026Vollständiger Bericht →Unsere automatisierten Checks bestanden. Das ist kein Security-Audit: Lies den Code und gib dem Server nur den minimal notwendigen Zugriff. Wie die Checks funktionieren · Was du für mehr Punkte verbessern kannst
- Source Repository verknüpft und erreichbarlibrary-api/libraryapi-mcp is public and reachablegithub.com/library-api/libraryapi-mcp ↗Bestanden
- Paket nennt dieses Repository als Quellelibraryapi-mcp names library-api/libraryapi-mcp as sourcepypi.org/project/libraryapi-mcp/ ↗Bestanden
- Build-Provenienz (Sigstore-Attestierung)No build attestation published for this releaseNicht geprüft
- Open Source Lizenz (OSI)No licenseBefund
- Commit oder Release im letzten JahrLast commit or release 2026-10-04github.com/library-api/libraryapi-mcp ↗Bestanden
- OpenSSF ScorecardNicht geprüft
- Package-Name ähnelt keinem populären PackageNo popular package one edit away from libraryapi-mcpBestanden
- Keine kritischen Advisories im Paket oder seinen Abhängigkeiten30 resolved dependencies checked; no critical advisoryosv.dev ↗Bestanden
- Keine versteckten Anweisungen an das Modell6 tool descriptions and the README read; no override phrases, credential paths or hidden charactersBestanden
- Destruktive Tools sind markiertNo tool named like delete, drop or execBestanden
- Remote-Endpoint beantwortet den MCP-HandshakeNicht geprüft
README
Auf GitHub ansehenlibraryapi-mcp
mcp-name: dev.libraryapi/libraryapi-mcp
MCP server for libraryapi.dev — US public library data for AI agents.
Expose library lookups as tools to any MCP-compatible AI assistant (Claude, Cursor, Copilot, etc.). Built on the federal IMLS Public Libraries Survey — public domain, commercially usable.
Installation
pip install libraryapi-mcp
Or run directly with uvx (no install needed):
uvx libraryapi-mcp
Configuration
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"libraryapi": {
"command": "uvx",
"args": ["libraryapi-mcp"],
"env": {
"LIBRARYAPI_KEY": "your_api_key_here"
}
}
}
}
Cursor / other MCP clients
{
"mcpServers": {
"libraryapi": {
"command": "uvx",
"args": ["libraryapi-mcp"],
"env": {
"LIBRARYAPI_KEY": "your_api_key_here"
}
}
}
}
Get a free API key at libraryapi.dev — 500 requests/month, no credit card.
Available Tools
| Tool | Description |
|---|---|
find_libraries_near_address |
Find the nearest branches to a US street address |
find_libraries_near_coordinates |
Same, but from a lat/lng (skips geocoding) |
get_outlet |
Full record for one branch outlet by ID |
search_libraries |
Search library systems by name, state, or city |
get_library |
Full system profile by FSCS ID |
get_state_summary |
Statewide library totals |
Systems vs. outlets: a system is the administrative entity (e.g. "Chicago Public Library"); an outlet is an individual branch. Proximity searches return outlets.
Examples
Once configured, you can ask your AI assistant:
"What are the three closest public libraries to 350 Fifth Ave, New York?"
"How many public library branches are there in Vermont, and what's the total collection size?"
"I'm building a civic app — give me every library branch within 5 miles of downtown Chicago as JSON."
Data note
The IMLS survey covers locations, collections, staffing, visits, programs, and finances. It reports hours-open totals (annual, and per week) but not daily opening times — so this API can tell you a branch is open ~45 hours/week, not that it opens at 9am.
Links
- Website: libraryapi.dev
- PyPI: pypi.org/project/libraryapi-mcp
- REST API docs: libraryapi.dev/docs
License
MIT
LibraryAPI MCP Fragen
Wie füge ich LibraryAPI MCP zu Claude Code hinzu?
Führe claude mcp add --env 'LIBRARYAPI_KEY=<YOUR_LIBRARYAPI_KEY>' libraryapi-mcp -- uvx libraryapi-mcp in deinem Terminal aus. Füge --scope user hinzu, damit der Server in jedem Projekt verfügbar ist.
Wie füge ich LibraryAPI MCP zu Cursor hinzu?
Öffne ~/.cursor/mcp.json und füge den Server unter mcpServers hinzu, mit der Cursor-Config aus dem Installationsabschnitt oben.
Welche Tools bietet LibraryAPI MCP?
Er stellt 6 Tools bereit, darunter find_libraries_near_address, find_libraries_near_coordinates, get_outlet, search_libraries, get_library.
Welche Art von Bibliotheksdaten sind verfügbar?
Die Daten umfassen Bibliotheksstandorte, Sammlungen, Personal, Besucherzahlen, Programme und Finanzen basierend auf der IMLS-Umfrage.
Kann ich die spezifischen täglichen Öffnungszeiten einer Bibliotheksfiliale finden?
Nein, die API liefert jährliche oder wöchentliche Gesamtzahlen der Öffnungsstunden, enthält aber keine spezifischen täglichen Öffnungszeiten.