MCP.so
ログイン

MCP Open Library

@8enSmith

基本情報

カテゴリ

メモリとナレッジ

ライセンス

MIT

トランスポート

stdio

作者

8enSmith

投稿者

Ben Smith

MCP Open Library について

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

#books#ai#mcp#internet-archive#authors#open-library#openlibrary#assistants#open-library-api#mcp-server#modelcontextprotocol

MCP Open Library の設定

以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。

{
  "mcpServers": {
    "mcp-open-library": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-open-library"
      ]
    }
  }
}

MCP Open Library のツール

7

Search Open Library across titles, authors, subjects, places, people, publishers and ISBNs. Provide at least one search criterion: q, title, author, subject, place, person, publisher, isbn; combining several narrows the search. Returns at most `limit` results (default 10) together with `num_found`, the total number of matches; page through them with `offset`. Each result carries `best_edition` — one edition of the work, with its `isbn_13`/`isbn_10` where Open Library has them, and its `edition_key`, which can be passed to `get_book_by_id` as `{ idType: "olid" }` for that edition's full record.

Search for a book by its title on Open Library. Returns at most `limit` results (default 10) together with `num_found`, the total number of matches; page through them with `offset`. Each result carries `best_edition` — one edition of the work, with its `isbn_13`/`isbn_10` where Open Library has them, and its `edition_key`, which can be passed to `get_book_by_id` as `{ idType: "olid" }` for that edition's full record.

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

Search for author information on Open Library. Returns at most `limit` authors (default 10) together with `num_found`, the total number of matches; page through them with `offset`. Each result's `key` can be passed to `get_author_info` for that author's full record.

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

Get the URL for an author's photo using their Open Library Author ID (OLID e.g. OL23919A). Reports when no photo exists rather than returning a URL to a blank placeholder.

Get the URL for a book's cover image using a key (ISBN, OCLC, LCCN, OLID, ID) and value. Reports when no cover exists rather than returning a URL to a blank placeholder.

概要

What is mcp-open-library?

mcp-open-library is an MCP server that gives AI assistants read-only access to the Open Library catalogue — searching books and authors, and resolving cover and author photo URLs. It returns compact JSON projections of the Open Library responses rather than the raw payloads.

How to use mcp-open-library?

Nothing to install or build. Point an MCP‑compatible client (e.g., Claude Desktop) at the npm package and it is fetched on first run:

{
  "mcpServers": {
    "mcp-open-library": {
      "command": "npx",
      "args": ["-y", "mcp-open-library"]
    }
  }
}

In Claude Desktop that goes in claude_desktop_config.json; other clients use the same shape. The server is also published to the official MCP Registry as io.github.8enSmith/mcp-open-library, so registry-aware clients can install it by name. To hack on it locally, clone the repo, run npm install and npm run build, then use the MCP Inspector with npm run inspector.

Key features of mcp-open-library

  • Search the catalogue across titles, authors, subjects, places, people, publishers and ISBNs (search_books)
  • Search books by title (get_book_by_title)
  • Search authors by name (get_authors_by_name)
  • Retrieve detailed author information by Open Library key (get_author_info)
  • Get author photo URL using Open Library ID (get_author_photo)
  • Get book cover URL by ISBN, OCLC, LCCN, OLID, or ID (get_book_cover)
  • Get full book details by ISBN, LCCN, OCLC, or OLID (get_book_by_id)
  • Paged results — every search returns at most limit matches (default 10, maximum 50) alongside num_found, the total number of matches, which you page through with offset
  • The cover tools check that an image actually exists and say so when it does not, rather than handing back a URL that resolves to a blank placeholder
  • Every tool is a read-only lookup annotated readOnlyHint and openWorldHint; failures come back as tool results flagged isError, so an assistant can read what went wrong and correct its next call

Use cases of mcp-open-library

  • AI assistant answering book queries in a chat interface
  • Building a reading list or author biography tool
  • Fetching book covers or author photos for display
  • Looking up edition details by ISBN, OCLC, LCCN or OLID
  • Disambiguating an author with a common name before fetching their details

よくある質問

1

What is mcp-open-library?

It is an MCP server that wraps the Open Library API, exposing tools for AI assistants to search books and authors, retrieve details, covers, and photos.

2

How do I install mcp-open-library?

Add `{"command": "npx", "args": ["-y", "mcp-open-library"]}` to your MCP client's server config — npx fetches the package on first run, so there is no separate install or build step. Registry-aware clients can install it by its MCP Registry name, `io.github.8enSmith/mcp-open-library`.

3

What tools does mcp-open-library provide?

It provides seven tools: `search_books`, `get_book_by_title`, `get_book_by_id`, `get_authors_by_name`, `get_author_info`, `get_author_photo`, and `get_book_cover`.

4

How can I use mcp-open-library with an MCP client?

Use any MCP client (e.g., Claude Desktop) and point it at `npx -y mcp-open-library`. The server communicates over stdio.

5

Does mcp-open-library require a specific Node version?

No. The package declares no `engines` constraint and runs on any Node release that ships `npx`. The repo pins Node v22.21.1 in `.nvmrc` for local development only.

コメント

「メモリとナレッジ」の他のコンテンツ