Price Per TokenPrice Per Token
Open Library MCP Server

Open Library MCP Server

by 8ensmith

GitHub 56 1,434 uses
0

About

Open Library MCP Server connects AI assistants to the Open Library database, the collaborative catalog of books from Internet Archive. It enables searching for book titles, author information, and retrieving cover images through structured API responses. Key features of Open Library MCP Server: - Search books by title to find matching titles and metadata - Search authors by name to discover matching authors - Retrieve detailed author information using Open Library keys - Fetch author photo URLs using Open Library IDs (OLID) - Retrieve book cover images using ISBN, OCLC, LCCN, OLID, or generic ID identifiers - Access complete book details using standard library identifiers (ISBN, LCCN, OCLC, OLID)

Tools 6

get_book_by_title

Search for a book by its title on Open Library.

get_authors_by_name

Search for author information on Open Library.

get_author_info

Get detailed information for a specific author using their Open Library Author Key (e.g. OL23919A).

get_author_photo

Get the URL for an author's photo using their Open Library Author ID (OLID e.g. OL23919A).

get_book_cover

Get the URL for a book's cover image using a key (ISBN, OCLC, LCCN, OLID, ID) and value.

get_book_by_id

Get detailed information about a book using its identifier (ISBN, LCCN, OCLC, OLID).

README

MCP Open Library

[](https://archestra.ai/mcp-catalog/8ensmith__mcp-open-library) [](https://smithery.ai/server/@8enSmith/mcp-open-library)

A Model Context Protocol (MCP) server for the Open Library API that enables AI assistants to search for book and author information.

Overview

This project implements an MCP server that provides tools for AI assistants to interact with the Open Library. It allows searching for book information by title, searching for authors by name, retrieving detailed author information using their Open Library key, and getting URLs for author photos using their Open Library ID (OLID). The server returns structured data for book and author information.

Features

  • Book Search by Title: Search for books using their title (get_book_by_title).
  • Author Search by Name: Search for authors using their name (get_authors_by_name).
  • Get Author Details: Retrieve detailed information for a specific author using their Open Library key (get_author_info).
  • Get Author Photo: Get the URL for an author's photo using their Open Library ID (OLID) (get_author_photo).
  • Get Book Cover: Get the URL for a book's cover image using various identifiers (ISBN, OCLC, LCCN, OLID, ID) (get_book_cover).
  • Get Book by ID: Retrieve detailed book information using various identifiers (ISBN, LCCN, OCLC, OLID) (get_book_by_id).
  • Installation

    Installing via Smithery

    To install MCP Open Library for Claude Desktop automatically via Smithery:

    npx -y @smithery/cli install @8enSmith/mcp-open-library --client claude
    

    Manual Installation

    # Clone the repository
    git clone https://github.com/8enSmith/mcp-open-library.git
    cd mcp-open-library

    Install dependencies

    npm install

    Build the project

    npm run build

    Usage

    Running the Server

    1. Ensure you are running node v22.21.1 (it'll probably work on a newer version of node but this is what Im using for this test). If you have nvm installed run nvm use. 2. In the mcp-open-library root directory run npm run build 3. Next run npm run inspector. Once built, click the URL with the MCP_PROXY_AUTH_TOKEN query string parameter to open the Inspector. 4. In the Inspector, choose 'STDIO' transport 5. Make sure the command is set to 'build/index.js' 6. Click the 'Connect' button in the Inspector - you'll now connect to the server 7. Click 'Tools' in the top right menu bar 8. Try running a tool e.g. click get_book_by_title 9. Search for a book e.g. In the title box enter 'The Hobbit' and then click 'Run Tool'. Server will then return book details.

    Using with an MCP Client

    This server implements the Model Context Protocol, which means it can be used by any MCP-compatible AI assistant or client e.g. Claude Desktop. The server exposes the following tools:

  • get_book_by_title: Search for book information by title
  • get_authors_by_name: Search for author information by name
  • get_author_info: Get detailed information for a specific author using their Open Library Author Key
  • get_author_photo: Get the URL for an author's photo using their Open Library Author ID (OLID)
  • get_book_cover: Get the URL for a book's cover image using a specific identifier (ISBN, OCLC, LCCN, OLID, or ID)
  • get_book_by_id: Get detailed book information using a specific identifier (ISBN, LCCN, OCLC, or OLID)
  • Example get_book_by_title input:

    {
      "title": "The Hobbit"
    }
    

    Example get_book_by_title output:

    [
      {
        "title": "The Hobbit",
        "authors": [
          "J. R. R. Tolkien"
        ],
        "first_publish_year": 1937,
        "open_library_work_key": "/works/OL45883W",
        "edition_count": 120,
        "cover_url": "https://covers.openlibrary.org/b/id/10581294-M.jpg"
      }
    ]
    

    Example get_authors_by_name input:

    {
      "name": "J.R.R. Tolkien"
    }
    

    Example get_authors_by_name output:

    [
      {
        "key": "OL26320A",
        "name": "J. R. R. Tolkien",
        "alternate_names": [
          "John Ronald Reuel Tolkien"
        ],
        "birth_date": "3 January 1892",
        "top_work": "The Hobbit",
        "work_count": 648
      }
    ]
    

    Example get_author_info input:

    {
      "author_key": "OL26320A"
    }
    

    Example get_author_info output: ```json { "name": "J. R. R. Tolkien", "personal_name": "John Ronald Reuel Tolkien", "birth_date": "3 January 1892", "death_date": "2 September 1973", "bio": "John Ronald Reuel Tolkien (1892-1973) was a major

    Related MCP Servers

    AI Research Assistant

    AI Research Assistant

    hamid-vakilzadeh

    AI Research Assistant provides comprehensive access to millions of academic papers through the Semantic Scholar and arXiv databases. This MCP server enables AI coding assistants to perform intelligent literature searches, citation network analysis, and paper content extraction without requiring an API key. Key features include: - Advanced paper search with multi-filter support by year ranges, citation thresholds, field of study, and publication type - Title matching with confidence scoring for finding specific papers - Batch operations supporting up to 500 papers per request - Citation analysis and network exploration for understanding research relationships - Full-text PDF extraction from arXiv and Wiley open-access content (Wiley TDM token required for institutional access) - Rate limits of 100 requests per 5 minutes with options to request higher limits through Semantic Scholar

    Web & Search
    12 8
    Linkup

    Linkup

    LinkupPlatform

    Linkup is a real-time web search and content extraction service that enables AI assistants to search the web and retrieve information from trusted sources. It provides source-backed answers with citations, making it ideal for fact-checking, news gathering, and research tasks. Key features of Linkup: - Real-time web search using natural language queries to find current information, news, and data - Page fetching to extract and read content from any webpage URL - Search depth modes: Standard for direct-answer queries and Deep for complex research across multiple sources - Source-backed results with citations and context from relevant, trustworthy websites - JavaScript rendering support for accessing dynamic content on JavaScript-heavy pages

    Web & Search
    2 24
    Math-MCP

    Math-MCP

    EthanHenrickson

    Math-MCP is a computation server that enables Large Language Models (LLMs) to perform accurate numerical calculations through the Model Context Protocol. It provides precise mathematical operations via a simple API to overcome LLM limitations in arithmetic and statistical reasoning. Key features of Math-MCP: - Basic arithmetic operations: addition, subtraction, multiplication, division, modulo, and bulk summation - Statistical analysis functions: mean, median, mode, minimum, and maximum calculations - Rounding utilities: floor, ceiling, and nearest integer rounding - Trigonometric functions: sine, cosine, tangent, and their inverses with degrees and radians conversion support

    Developer Tools
    22 81