Skip to main content
Glama
kltng

LCSH MCP Server

by kltng

cataloger mcp server

Ein Model Context Protocol (MCP) Server, der Zugriff auf die Library of Congress Subject Headings (LCSH) über eine einfache API-Schnittstelle bietet.

Übersicht

Dieser MCP-Server ermöglicht es KI-Assistenten wie Claude, die Library of Congress Subject Headings (LCSH) mithilfe der öffentlichen suggest2-API zu durchsuchen. Er bietet eine saubere Schnittstelle für die Abfrage von LCSH-Daten und die Verarbeitung der verschiedenen Antwortformate der API.

Related MCP server: MeSH MCP

Installation

Option 1: Installation von PyPI (Empfohlen)

Der einfachste Weg, den cataloger mcp server zu installieren, ist direkt über PyPI:

pip install cataloger-mcp-server

Option 2: Installation aus dem Quellcode

Wenn Sie die Installation aus dem Quellcode bevorzugen:

git clone https://github.com/kltng/cataloger-mcp-server.git
cd cataloger-mcp-server
pip install -e .

Einrichtung mit Claude Desktop

  1. Installieren Sie Claude Desktop, falls Sie dies noch nicht getan haben, unter https://claude.ai/desktop

  2. Installieren Sie den cataloger mcp server mit einer der oben genannten Installationsmethoden

  3. Öffnen Sie Claude Desktop und navigieren Sie zu den Einstellungen:

    • Klicken Sie auf Ihr Profilbild in der unteren linken Ecke

    • Wählen Sie "Settings" aus dem Menü

  4. Konfigurieren Sie den MCP-Server:

    • Klicken Sie im Einstellungsbereich auf "MCP Servers"

    • Klicken Sie auf "Add Server"

    • Geben Sie die folgenden Details ein:

      • Name: cataloger mcp search

      • Command: cataloger-mcp-server

    • Klicken Sie auf "Save"

  5. Aktivieren Sie den Server:

    • Betätigen Sie den Schalter neben dem cataloger mcp search Server, um ihn zu aktivieren

    • Claude hat nun Zugriff auf die LCSH-Suchfunktionen

Einrichtung mit Cherry Studio

  1. Installieren Sie Cherry Studio gemäß den Anweisungen in der Cherry-Dokumentation: https://docs.cherry-ai.com/docs/en-us/advanced-basic/mcp/install

  2. Installieren Sie den cataloger mcp server mit einer der oben genannten Installationsmethoden.

  3. Bereiten Sie die MCP JSON-Konfiguration für Cherry Studio vor. Verwenden Sie die Methode "Import JSON" mit einem Snippet wie diesem:

    {
      "mcpServers": {
        "cataloger-mcp": {
          "command": "uvx",
          "args": ["cataloger-mcp-server"]
        }
      }
    }
    • Sie können den Schlüssel "cataloger-mcp" in Cherry Studio in ein beliebiges Label Ihrer Wahl ändern.

  4. Importieren in Cherry Studio:

    • Öffnen Sie Cherry Studio und gehen Sie zu Settings → MCP (oder MCP Servers).

    • Klicken Sie auf Add / Import from JSON (die Bezeichnung kann je nach Version leicht variieren).

    • Fügen Sie das obige JSON-Snippet ein und bestätigen Sie das Hinzufügen des Servers.

  5. Überprüfen Sie den Server:

    • Stellen Sie sicher, dass der neue cataloger-mcp-server-Eintrag in der MCP-Liste erscheint und aktiviert ist.

    • Starten Sie einen neuen Chat und bestätigen Sie, dass Cherry Studio die cataloger MCP-Tools aufrufen kann.

Verwendung des cataloger mcp servers mit Claude

Sobald der Server in Claude Desktop eingerichtet und aktiviert ist, können Sie Claude bitten, die Library of Congress Subject Headings zu durchsuchen. Hier sind einige Beispiel-Prompts:

  • "Kannst du die Library of Congress Subject Headings nach 'artificial intelligence' durchsuchen?"

  • "Suche 'climate change' in LCSH und nenne mir die offiziellen Schlagwörter."

  • "Welche LCSH-Begriffe sind mit 'quantum computing' verwandt?"

Claude wird den MCP-Server verwenden, um die LCSH- und LCNAF-Datenbanken abzufragen und die Ergebnisse zurückzugeben.

  • "Finde den Namensdatensatz für 'Smith, John Adam'."

  • "Führe eine Stichwortsuche in LCSH nach 'environmental policy' durch."

Funktionen

  • MCP-Tool-Integration: Stellt die Tools search_lcsh (für Schlagwörter, standardmäßig linksbündige Suche), search_lcsh_keyword (für Schlagwörter, Stichwortsuche) und search_name_authority (für Personennamen) bereit, die von KI-Assistenten verwendet werden können.

  • Ressourcen-Endpunkte: Bietet Ressourcen-Endpunkte unter lcsh://search/{query} und lcnaf://search/{query}.

  • Robuste Fehlerbehandlung: Geht elegant mit API-Fehlern, Verbindungsproblemen und unerwarteten Antwortformaten um.

  • Mehrere Antwortformate: Unterstützt sowohl Wörterbuch- (Treffer) als auch Listen-Antwortformate der LCSH-API.

Fehlerbehebung

Wenn Sie Probleme mit dem MCP-Server haben:

  1. Serverstatus prüfen: Gehen Sie in Claude Desktop zu Settings > MCP Servers und prüfen Sie, ob der Server aktiviert ist und läuft.

  2. Server neu starten: Schalten Sie den Server aus und wieder ein.

  3. Konsolenausgabe prüfen: Wenn Sie den Server manuell ausführen, prüfen Sie die Konsolenausgabe auf Fehlermeldungen.

  4. Netzwerkverbindung prüfen: Stellen Sie sicher, dass Ihr Computer über eine aktive Internetverbindung verfügt, um auf die LCSH-API zuzugreifen.

Lizenz

Dieses Projekt ist unter der MIT-Lizenz lizenziert - siehe die LICENSE-Datei für Details.

Für Entwickler

Für eine detailliertere Dokumentation zur Serverimplementierung, API-Referenzen und Testinformationen lesen Sie bitte die Datei references.md.

Available Tools

1 tool
search_lcshC

Search Library of Congress Subject Headings (LCSH) using the public suggest2 API. Returns a dictionary with the top results.

ParametersJSON Schema
NameRequiredDescriptionDefault
queryYes

TDQS

C2.7/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries full burden. It discloses the API source ('public suggest2 API') and return type ('dictionary with the top results'), but lacks details on error handling, rate limits, authentication needs, or what 'top results' entails (e.g., ranking criteria, number of results). This leaves behavioral gaps for a search tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise with two sentences, front-loading the main action and resource. It avoids unnecessary words, though it could be slightly more structured (e.g., separating API details from return values). Every sentence contributes meaning, making it efficient.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (a search operation with no annotations, 0% schema coverage, and no output schema), the description is incomplete. It omits parameter details, behavioral traits like error handling, and specifics on the return value (e.g., dictionary structure). This is inadequate for effective tool use.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate. It does not mention the 'query' parameter at all, failing to explain its purpose, format, or constraints. The description adds no semantic value beyond what the bare schema provides, leaving the parameter undocumented.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('Search Library of Congress Subject Headings') and the resource (LCSH), with the specific verb 'search' and target 'LCSH'. It distinguishes itself by mentioning the 'public suggest2 API', though there are no sibling tools for comparison. The purpose is specific and unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives, prerequisites, or exclusions. It mentions the 'public suggest2 API', but does not explain its context or limitations. With no sibling tools, this is less critical, but still lacks usage context.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 1 tool updatev1.0.0
    • First observedsearch_lcsh

TDQS

C2.9/5.0

Scored across 1 tool

Disambiguation5/5

With only one tool, there is no possibility of ambiguity or overlap between tools. The single tool 'search_lcsh' has a clearly defined and distinct purpose.

Naming Consistency5/5

The naming follows a consistent verb_noun pattern with 'search_lcsh'. With only one tool, there is no inconsistency to evaluate, and the pattern is clear and appropriate.

Tool Count2/5

A single tool is too few for a server focused on LCSH, as it lacks basic operations like browsing, filtering, or retrieving detailed subject information. This minimal set limits functionality and agent workflows.

Completeness2/5

The server is severely incomplete for LCSH operations; it only offers search without supporting actions like get_subject_details, list_subjects_by_category, or related term lookups. This creates significant gaps for agent tasks.

Maintenance

ActivityInactive
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    D
    maintenance
    Exposes CDISC standards data including SDTM, ADaM, CDASH, and Controlled Terminology as tools for AI assistants via the CDISC Library API. It enables users to search standards, retrieve domain variables, and access codelist definitions to facilitate clinical research data management.
    12
    MIT
  • A
    license
    A
    quality
    D
    maintenance
    Connects Claude to the U.S. National Library of Medicine MeSH APIs to search and retrieve medical authority data, descriptors, and qualifiers. It enables library and metadata staff to perform subject analysis and confirm terminology within an AI-assisted cataloging workflow.
    4
    1
    GPL 3.0