Open Library — Claude Code MCP server: what it does, how to install
Connects AI tools to the Internet Archive's Open Library catalogue to look up books, inspect author keys, and fetch validated cover URLs.
claude mcp add mcp-open-library -- npx -y mcp-open-libraryWhat Open Library does
This server routes queries to the Open Library database. It lets assistants browse titles, subjects, authors, publishers, and identifiers such as ISBN or OLID. Returned payloads arrive as simplified JSON projections rather than untouched API responses. Every operation is strictly read-only.
Seven distinct tools handle searches and detail lookups. The cover and photo handlers inspect the asset upfront so the agent does not receive broken image placeholders. Search paging delivers 10 records by default with a ceiling of 50 per call and an offset cap at 1000. Failed queries return an isError flag with descriptive text, which lets the client fix its inputs on the next attempt.
What it helps with
- look up book editions and publication dates by title
- retrieve verified cover art URLs without broken placeholder links
- fetch author records and portraits using OLID identifiers
- query library entries filtered by subject, author, or publisher
Example prompts for the agent
- Search Open Library for science fiction novels by Philip K. Dick published before 1970.
- Get author details and photo URL for Ursula K. Le Guin using her author key.
- Look up edition details and cover image for ISBN 9780140283334.
How to install Open Library
Platform CLI
claude mcp add mcp-open-library -- npx -y mcp-open-libraryPlatform CLI
codex mcp add open-library -- npx -y mcp-open-libraryConfig file
{
"mcpServers": {
"open-library": {
"command": "npx",
"args": [
"-y",
"mcp-open-library"
]
}
}
}Config file
{
"servers": {
"open-library": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"mcp-open-library"
]
}
}
}Platform CLI
gemini mcp add open-library npx -y mcp-open-libraryStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about Open Library
How do I install Open Library in Claude Code?
Run claude mcp add open-library -- npx -y mcp-open-library in your terminal. It pulls the package automatically using npx.
What does the Open Library MCP server do?
It allows assistants to look up book records, query authors, and retrieve confirmed URLs for covers or portraits from the Open Library catalog.
How does it handle missing book cover images?
The cover tools check whether the image file exists before replying. If no image is found, the tool reports that directly instead of returning a blank placeholder.