nlib
中津川市立図書館のMCPサーバー(実験)
claude mcp add --transport stdio ryuuji-nlib-mcp-server uvx run mcp install
How to use
This MCP server, nlib-mcp-server, provides a library catalog search capability that leverages the Cariru Unitrad API for searching holdings. The server exposes the nlib_search_books function, which lets you query the library catalogue and retrieve matching book records. Access to Cariru's enterprise API is available under a paid license; this server is configured to demonstrate the search workflow for testing purposes. To use it, deploy the MCP server and then invoke the nlib_search_books tool to perform search queries (e.g., by title, author, or keyword) and receive structured results that can be consumed by your client or automation workflow. The server is primarily focused on search functionality, with the nlib_search_books feature currently marked as a to-do in the project plan but wired for use once enabled.
How to install
Prerequisites:
- Ensure you have the uv (uvx) CLI installed and available in your PATH.
- Access to the Cariru Unitrad API with a valid license (for testing, use provided access as described in the project notes).
- Basic Node/Python environment is not required for this server since it is intended to be run via the uvx CLI as shown.
Steps:
- Install the uvx tool if you haven't:
- Follow the official installation instructions for uvx for your OS.
- Install the MCP server package via uvx:
- Run: uv install
- Install the MCP server configuration:
- Run: uv run mcp install
- Start the MCP server:
- Run: uv run mcp start
- Verify the server is running and accessible at the configured endpoint, then test the nlib_search_books capability once the feature is enabled in your license context.
Additional notes
Tips and caveats:
- The Cariru Unitrad API access used by this server is restricted to licensed use; ensure your license is active and properly configured in the environment.
- The nlib_search_books feature is listed as a to-do in the repository; depending on the build, you may need to enable or implement the endpoint before live usage.
- If you encounter connectivity issues with the Cariru API, verify network access, API endpoint whitelisting, and credentials.
- Use environment variables to configure API keys, endpoints, and license tokens as needed by your deployment. Example env vars: API_BASE_URL, API_LICENSE_TOKEN, API_CLIENT_ID, API_CLIENT_SECRET.
- For debugging, run the MCP server with verbose logging enabled if your uvx CLI supports a log level flag or environment variable.
Related MCP Servers
mcp-vegalite
MCP server from isaacwasserman/mcp-vegalite-server
github-chat
A Model Context Protocol (MCP) for analyzing and querying GitHub repositories using the GitHub Chat API.
nautex
MCP server for guiding Coding Agents via end-to-end requirements to implementation plan pipeline
pagerduty
PagerDuty's official local MCP (Model Context Protocol) server which provides tools to interact with your PagerDuty account directly from your MCP-enabled client.
futu-stock
mcp server for futuniuniu stock
mcp -boilerplate
Boilerplate using one of the 'better' ways to build MCP Servers. Written using FastMCP