LCSH MCP Server
Allows AI assistants to search the Library of Congress Subject Headings (LCSH) through a simple API interface, making it easy to query and retrieve official subject headings and related terms.
Tools
search_lcsh
Search Library of Congress Subject Headings (LCSH) using the public suggest2 API. Returns a dictionary with the top results.
README
LCSH 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 LCSH MCP server is directly from PyPI:
pip install lcsh-mcp-server
Option 2: Install from Source
If you prefer to install from source:
git clone https://github.com/kltng/lcsh-mcp-server.git
cd lcsh-mcp-server
pip install -e .
Setting up with Claude Desktop
-
Install Claude Desktop if you haven't already from https://claude.ai/desktop
-
Install the LCSH MCP Server using one of the installation methods above
-
Open Claude Desktop and navigate to Settings:
- Click on your profile picture in the bottom-left corner
- Select "Settings" from the menu
-
Configure the MCP Server:
- In the Settings panel, click on "MCP Servers"
- Click "Add Server"
- Fill in the following details:
- Name:
LCSH Search - Command:
lcsh-mcp-server
- Name:
- Click "Save"
-
Enable the Server:
- Toggle the switch next to the LCSH Search server to enable it
- Claude will now have access to the LCSH search capabilities
Using the LCSH 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 database and return the results.
Features
- MCP Tool Integration: Exposes a
search_lcshtool that can be used by AI assistants - Resource Endpoint: Provides a resource endpoint at
lcsh://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:
- Check Server Status: In Claude Desktop, go to Settings > MCP Servers and check if the server is enabled and running
- Restart the Server: Toggle the server off and on again
- Check Console Output: If running the server manually, check the console output for any error messages
- 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.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.