Skip to main content
Glama
kltng

LCSH MCP Server

by kltng

servidor mcp cataloger

Un servidor del Protocolo de Contexto de Modelo (MCP) que proporciona acceso a los Encabezamientos de Materia de la Biblioteca del Congreso (LCSH) a través de una interfaz API sencilla.

Descripción general

Este servidor MCP permite a asistentes de IA como Claude buscar en los Encabezamientos de Materia de la Biblioteca del Congreso (LCSH) utilizando la API pública suggest2. Proporciona una interfaz limpia para consultar datos de LCSH y manejar los diversos formatos de respuesta de la API.

Related MCP server: MeSH MCP

Instalación

Opción 1: Instalar desde PyPI (Recomendado)

La forma más sencilla de instalar el servidor mcp cataloger es directamente desde PyPI:

pip install cataloger-mcp-server

Opción 2: Instalar desde el código fuente

Si prefieres instalar desde el código fuente:

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

Configuración con Claude Desktop

  1. Instala Claude Desktop si aún no lo has hecho desde https://claude.ai/desktop

  2. Instala el servidor mcp cataloger utilizando uno de los métodos de instalación anteriores

  3. Abre Claude Desktop y navega a Configuración (Settings):

    • Haz clic en tu foto de perfil en la esquina inferior izquierda

    • Selecciona "Settings" en el menú

  4. Configura el servidor MCP:

    • En el panel de Configuración, haz clic en "MCP Servers"

    • Haz clic en "Add Server"

    • Rellena los siguientes detalles:

      • Name: cataloger mcp search

      • Command: cataloger-mcp-server

    • Haz clic en "Save"

  5. Habilita el servidor:

    • Activa el interruptor junto al servidor cataloger mcp search para habilitarlo

    • Claude ahora tendrá acceso a las capacidades de búsqueda de LCSH

Configuración con Cherry Studio

  1. Instala Cherry Studio siguiendo las instrucciones en la documentación de Cherry: https://docs.cherry-ai.com/docs/en-us/advanced-basic/mcp/install

  2. Instala el servidor mcp cataloger utilizando uno de los métodos de instalación anteriores.

  3. Prepara la configuración JSON de MCP para Cherry Studio. Utiliza el método "Import JSON" con un fragmento como:

    {
      "mcpServers": {
        "cataloger-mcp": {
          "command": "uvx",
          "args": ["cataloger-mcp-server"]
        }
      }
    }
    • Puedes cambiar la clave "cataloger-mcp" por la etiqueta que prefieras en Cherry Studio.

  4. Importar a Cherry Studio:

    • Abre Cherry Studio y ve a Settings → MCP (o MCP Servers).

    • Haz clic en Add / Import from JSON (la redacción puede variar ligeramente según la versión).

    • Pega el fragmento JSON anterior y confirma para añadir el servidor.

  5. Verifica el servidor:

    • Asegúrate de que la nueva entrada cataloger-mcp-server aparezca en la lista de MCP y esté habilitada.

    • Inicia un nuevo chat y confirma que Cherry Studio puede llamar a las herramientas MCP de cataloger.

Uso del servidor mcp cataloger con Claude

Una vez que el servidor esté configurado y habilitado en Claude Desktop, puedes pedirle a Claude que busque en los Encabezamientos de Materia de la Biblioteca del Congreso. Aquí tienes algunos ejemplos de prompts:

  • "¿Puedes buscar 'artificial intelligence' en los Encabezamientos de Materia de la Biblioteca del Congreso?"

  • "Busca 'climate change' en LCSH y dime cuáles son los encabezamientos de materia oficiales."

  • "¿Cuáles son los términos LCSH relacionados con 'quantum computing'?"

Claude utilizará el servidor MCP para consultar las bases de datos LCSH y LCNAF y devolver los resultados.

  • "Encuentra el registro de autoridad de nombre para 'Smith, John Adam'."

  • "Realiza una búsqueda por palabras clave en LCSH para 'environmental policy'."

Características

  • Integración de herramientas MCP: Expone las herramientas search_lcsh (para encabezamientos de materia, búsqueda predeterminada anclada a la izquierda), search_lcsh_keyword (para encabezamientos de materia, búsqueda por palabras clave) y search_name_authority (para nombres personales) que pueden ser utilizadas por asistentes de IA.

  • Endpoints de recursos: Proporciona endpoints de recursos en lcsh://search/{query} y lcnaf://search/{query}.

  • Manejo robusto de errores: Maneja con elegancia los errores de la API, problemas de conexión y formatos de respuesta inesperados.

  • Múltiples formatos de respuesta: Admite formatos de respuesta tanto de diccionario (hits) como de lista desde la API de LCSH.

Solución de problemas

Si encuentras problemas con el servidor MCP:

  1. Comprueba el estado del servidor: En Claude Desktop, ve a Settings > MCP Servers y comprueba si el servidor está habilitado y en ejecución.

  2. Reinicia el servidor: Apaga y vuelve a encender el servidor.

  3. Comprueba la salida de la consola: Si ejecutas el servidor manualmente, comprueba la salida de la consola para ver si hay mensajes de error.

  4. Verifica la conexión de red: Asegúrate de que tu ordenador tenga una conexión a Internet activa para acceder a la API de LCSH.

Licencia

Este proyecto está bajo la Licencia MIT - consulta el archivo LICENSE para más detalles.

Para desarrolladores

Para obtener documentación más detallada sobre la implementación del servidor, referencias de la API e información de pruebas, consulta el archivo 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