Skip to main content

cataloger mcp server

A Model Context Protocol (MCP) server that provides access to the Library of Congress Subject Headings (LCSH) through a simple API interface.

Overview

This MCP server allows AI assistants like Claude to search the Library of Congress Subject Headings (LCSH) using the public suggest2 API. It provides a clean interface for querying LCSH data and handling the various response formats from the API.

Installation

Option 1: Install from PyPI (Recommended)

The easiest way to install the cataloger mcp server is directly from PyPI:

pip install cataloger-mcp-server

Option 2: Install from Source

If you prefer to install from source:

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

Setting up with Claude Desktop

  1. Install Claude Desktop if you haven't already from https://claude.ai/desktop

  2. Install the cataloger mcp server using one of the installation methods above

  3. Open Claude Desktop and navigate to Settings:

    • Click on your profile picture in the bottom-left corner
    • Select "Settings" from the menu
  4. Configure the MCP Server:

    • In the Settings panel, click on "MCP Servers"
    • Click "Add Server"
    • Fill in the following details:
      • Name: cataloger mcp search
      • Command: cataloger-mcp-server
    • Click "Save"
  5. Enable the Server:

    • Toggle the switch next to the cataloger mcp search server to enable it
    • Claude will now have access to the LCSH search capabilities

Using the cataloger mcp server with Claude

Once the server is set up and enabled in Claude Desktop, you can ask Claude to search for Library of Congress Subject Headings. Here are some example prompts:

  • "Can you search the Library of Congress Subject Headings for 'artificial intelligence'?"
  • "Look up 'climate change' in LCSH and tell me the official subject headings."
  • "What are the LCSH terms related to 'quantum computing'?"

Claude will use the MCP server to query the LCSH and LCNAF databases and return the results.

  • "Find the name authority record for 'Smith, John Adam'."
  • "Perform a keyword search in LCSH for 'environmental policy'.

Features

  • MCP Tool Integration: Exposes search_lcsh (for subject headings, default left-anchored search), search_lcsh_keyword (for subject headings, keyword search), and search_name_authority (for personal names) tools that can be used by AI assistants.
  • Resource Endpoints: Provides resource endpoints at lcsh://search/{query} and lcnaf://search/{query}.
  • Robust Error Handling: Gracefully handles API errors, connection issues, and unexpected response formats
  • Multiple Response Formats: Supports both dictionary (hits) and list response formats from the LCSH API

Troubleshooting

If you encounter issues with the MCP server:

  1. Check Server Status: In Claude Desktop, go to Settings > MCP Servers and check if the server is enabled and running
  2. Restart the Server: Toggle the server off and on again
  3. Check Console Output: If running the server manually, check the console output for any error messages
  4. Verify Network Connection: Ensure your computer has an active internet connection to access the LCSH API

License

This project is licensed under the MIT License - see the LICENSE file for details.

For Developers

For more detailed documentation about the server implementation, API references, and testing information, please refer to the references.md file.

Metadata

Release files for cataloger-mcp-server 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cataloger-mcp-server 0.1.5
File Size Uploaded
cataloger_mcp_server-0.1.5.tar.gz 23.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cataloger-mcp-server 0.1.5
File Interpreter ABI Platform
cataloger_mcp_server-0.1.5-py3-none-any.whl Python 3 none any Details

Total release size: 30.0 kB

Release files / cataloger_mcp_server-0.1.5.tar.gz

Download URL cataloger_mcp_server-0.1.5.tar.gz
Size 23.1 kB
Tags Source
SHA-256 checksum
How to use checksums
7b48355539a67b55dec9abc59b336c221a6e7e270742188f1153c6cd470e69cd
BLAKE2b-256 checksum
How to use checksums
6ec824945902b1e32c239dc05f9ddd6e3fac30e9b402e99fe296a17ec6b807de
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.8

Release files / cataloger_mcp_server-0.1.5-py3-none-any.whl

Download URL cataloger_mcp_server-0.1.5-py3-none-any.whl
Size 6.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1e30c82977029a3c4dd53d6575932f079559688a1ecbf66ed0ed76ffe711baf2
BLAKE2b-256 checksum
How to use checksums
7ff6ea8adcbc1d987c9c225bf870d9a5ce2b67cdf96a1e25e46d0c2741b40d2e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.8

Release history Release notifications | RSS feed

This release

0.1.5 This release

2 release files

0.1.4

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page