GnistAI GnistAI
Log in

Open Library

Book metadata — search by title/author, work details, ISBNs, cover images.

Overview   |   MCP Docs   |   API Docs   |   OpenAPI   |   Playground   |   Tutorial   |   Toolkits   |   Home
status: healthy status status healthy healthy tools: 7 tools tools 7 7 Reference

Data source: Open Library (Internet Archive)

MCP MCP Protocol

Endpoint https://context.gnist.ai/mcp/open-library/
claude_desktop_config.json
{
  "mcpServers": {
    "gnist-open-library": {
      "url": "https://context.gnist.ai/mcp/open-library/",
      "headers": {
        "Gnist-API-Key": "YOUR_API_KEY"
      }
    }
  }
}
Shell
curl -X POST "https://context.gnist.ai/mcp/open-library/" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -H "Gnist-API-Key: YOUR_API_KEY" \
  -d '{"jsonrpc": "2.0", "method": "tools/call", "id": 1, "params": {"name": "search_books", "arguments": {"query": "example"}}}'

API REST API

API Root https://context.gnist.ai/rest/open-library/

7 endpoints available:

Shell
curl "https://context.gnist.ai/rest/open-library/search_books?query=example" \
  -H "Gnist-API-Key: YOUR_API_KEY"
Python
import httpx

resp = httpx.get(
    "https://context.gnist.ai/rest/open-library/search_books",
    headers={"Gnist-API-Key": "YOUR_API_KEY"},
    params={
        "query": "example"
},
)
print(resp.json())

OpenAPI Spec  ·  Full API Docs

CLI Command Line

Command gc open-library

CLI documentation will be available when the GnistAI SDK is published.

Install
pip install gnistai

Available Tools (7)

search_books
Search Open Library for books by title, author, or subject.
ParameterTypeRequiredDescription
querystringrequiredSearch query — title, author, or subject (e.g. "the lord of the rings", "tolkien").
limitintegeroptionalMax results to return (1-100). Default 10. (default: 10)
get_book
Get detailed information about a book/work by its Open Library work ID.
ParameterTypeRequiredDescription
olidstringrequiredOpen Library work ID (e.g. "OL27448W" for The Lord of the Rings).
search_authors
Search Open Library for authors by name.
ParameterTypeRequiredDescription
querystringrequiredAuthor name to search for (e.g. "tolkien", "ursula le guin").
limitintegeroptionalMax results to return (1-100). Default 10. (default: 10)
get_author
Get detailed information about an author by Open Library author ID.
ParameterTypeRequiredDescription
olidstringrequiredOpen Library author ID (e.g. "OL26320A" for J.R.R. Tolkien).
get_editions
Get all editions of a work — different publishers, languages, formats.
ParameterTypeRequiredDescription
olidstringrequiredOpen Library work ID (e.g. "OL27448W").
limitintegeroptionalMax editions to return (1-100). Default 10. (default: 10)
search_by_isbn
Look up a specific book edition by its ISBN-10 or ISBN-13.
ParameterTypeRequiredDescription
isbnstringrequiredISBN-10 or ISBN-13 (e.g. "9780618640157" or "0618640150").
report_feedback
Report a bug, feature request, or general feedback for this data source.
ParameterTypeRequiredDescription
feedbackstringrequired
feedback_typestringoptional (default: "general")

Related