CCM
/MCP
SkillsMCPMarketplacesDigestToolsAdvertise

This week in Claude

Every Monday: Claude Code, Agent SDK, MCP, and the Anthropic platform moves worth your time.

Skills by Category
Frontend DevelopmentBackend & APIsTesting & QASecurityDevOps & CI/CDGit & Pull RequestsDocumentationCode Review & QualityAI & Agent BuildingSkill Development
MCP Servers by Category
Sales & MarketingWeb & Browser AutomationDatabasesAI & LLM ToolsCloud & InfrastructureCommunication & MessagingDeveloper ToolsDesign & CreativeDocuments & KnowledgeSearch & Web Crawling
Marketplaces by Category
AI Agents & OrchestrationLLM IntegrationDevelopment ToolsFrontend & UIBackend & APIsDatabasesTesting & Code QualityDevOps & CloudSecurity & ComplianceGit & Version Control

Claude Code Marketplaces

Discover Claude Code plugins, extensions, and tools. Automatically updated directory of Anthropic Claude AI marketplaces with development tools, productivity plugins, and integrations.

Resources

  • Browse Skills
  • Browse MCP Servers
  • Browse Marketplaces
  • Skill index
  • MCP index
  • Marketplace index
  • Plugins Reference

Community

  • About
  • Tools
  • Feedback
  • Privacy Policy
  • Advertise

Built for the Claude Code community with Claude Code by mertbuilds.com

Independent project, not affiliated with Anthropic
cyanheads avatar

Openlibrary Mcp Server

cyanheads/openlibrary-mcp-server
1STDIO, HTTPregistry active
Summary

Brings Open Library's 20M+ catalog to Claude through nine focused tools. Search books with filters for title, author, subject, publisher, ISBN, and language. Pull work metadata, list editions across different publishers and formats, or look up a specific printing by ISBN. Search authors by name, fetch bios with external IDs (Wikidata, VIAF, ISNI), and list their works. Browse subjects and resolve cover image URLs you can drop straight into markdown. Also exposes two resources for injecting work and author detail as context. Runs over stdio or as a hosted HTTP endpoint. Good for bibliographic queries, reading list assembly, or any workflow that needs structured book data without scraping.

CodeRabbit
CodeRabbit
AI writes the code. CodeRabbit catches the slop.
Try For Free →
Lid closed, agents working
Lid closed, agents working
Keeps your Mac awake while Claude Code, Codex or Cursor works. Lets it sleep when they are done.
Try free for 7 days →
Block distraction from your iPhone for freeBlock distraction from your iPhone for free
Block distraction from your iPhone for free
Block distracting apps from your iPhone permanently without a 3rd party app. Free and open source.
Block now (100% free) →
Granola, the best AI meeting recorder
Granola, the best AI meeting recorder
Notes, actions and memory. Without a meeting bot. First month 100% off.
Download for free →
belt - the only tool your agent needs
belt - the only tool your agent needs
belt cli automatically finds the best tools and skills for your agent. image, video, music, tts...
one prompt install →
Open Steps
Open Steps
Free an open-source skills that make AI coding agents easier to understand, verify, and control.
Download for free →
AppSignal
AppSignal
Monitor with ease. Code with confidence.
Start Free Trial →
Agent, connect blockchain
Agent, connect blockchain
Connect your Claude agent to live crypto prices and trading routes via 1inch
Get the MCP →
CodeRabbit
CodeRabbit
AI writes the code. CodeRabbit catches the slop.
Try For Free →
Lid closed, agents working
Lid closed, agents working
Keeps your Mac awake while Claude Code, Codex or Cursor works. Lets it sleep when they are done.
Try free for 7 days →
Block distraction from your iPhone for freeBlock distraction from your iPhone for free
Block distraction from your iPhone for free
Block distracting apps from your iPhone permanently without a 3rd party app. Free and open source.
Block now (100% free) →
Granola, the best AI meeting recorder
Granola, the best AI meeting recorder
Notes, actions and memory. Without a meeting bot. First month 100% off.
Download for free →
belt - the only tool your agent needs
belt - the only tool your agent needs
belt cli automatically finds the best tools and skills for your agent. image, video, music, tts...
one prompt install →
Open Steps
Open Steps
Free an open-source skills that make AI coding agents easier to understand, verify, and control.
Download for free →
AppSignal
AppSignal
Monitor with ease. Code with confidence.
Start Free Trial →
Agent, connect blockchain
Agent, connect blockchain
Connect your Claude agent to live crypto prices and trading routes via 1inch
Get the MCP →

@cyanheads/openlibrary-mcp-server

Search books and authors, fetch editions, browse subjects, and resolve cover images from Open Library via MCP. STDIO or Streamable HTTP.

10 Tools • 2 Resources

Version License Docker MCP SDK npm TypeScript Bun

Install in Claude Desktop Install in Cursor Install in VS Code

Framework

Public Hosted Server: https://openlibrary.caseyjhand.com/mcp


Overview

Open Library's catalog of 20M+ books, editions, authors, and subjects, plus full-text search across Internet Archive's scanned books. Search and browse from any MCP client, drill from a work into its editions or an author into their works, and resolve cover and author-photo URLs. Runs as a stdio process, a local Streamable HTTP server, or the public hosted endpoint above.

Tools

ToolDescription
openlibrary_search_booksFull-text book search with field filters (title, author, subject, publisher, ISBN, language), sort options, pagination, and optional live reading availability
openlibrary_get_workFetch a work by Open Library Work ID (OL…W) — title, description, subjects, cover IDs, and author IDs
openlibrary_get_editionsList editions of a work — publishers, languages, formats, ISBNs, and print run details
openlibrary_get_editionResolve up to 50 editions in one call by ISBN-10, ISBN-13, OCLC, LCCN, or Open Library Edition ID (OL…M), reporting per-identifier misses
openlibrary_search_authorsSearch authors by name — returns Author IDs, birth/death dates, top works, and subject associations
openlibrary_get_authorFetch author detail by Open Library Author ID (OL…A) — bio, dates, photo IDs, and linked identifiers from Wikidata, VIAF, ISNI, Goodreads, and LibraryThing
openlibrary_get_author_worksList works by an author — titles, cover IDs, and Work OLIDs for drilling into editions or details
openlibrary_get_subjectBrowse works by subject tag — returns matching works with edition counts and cover IDs plus the total work count
openlibrary_search_insideFull-text search inside the scanned text of Internet Archive books — returns matching items with snippets
openlibrary_get_cover_urlResolve a cover image URL for a book or author photo in S/M/L size — returns a direct HTTPS URL embeddable in markdown

Resources

ResourceDescription
openlibrary://works/{work_id}Work detail by Open Library Work ID — title, description, subjects, cover IDs, and author IDs as injectable context
openlibrary://authors/{author_id}Author detail by Open Library Author ID — name, bio, dates, photo IDs, and linked external identifiers as injectable context

Both resources mirror data also available via openlibrary_get_work and openlibrary_get_author — useful for clients that don't surface MCP resources.

Capability reference

openlibrary_search_books tool

  • Free-text query with Solr field prefixes (title:, author:, subject:, publisher:, isbn:, language:) or dedicated filter parameters; 1–100 results per page (default 10), offset pagination
  • sort: relevance (default), new, old, rating, editions
  • language accepts a 3-letter MARC code or a translatable 2-letter ISO code; an untranslatable 2-letter code fails as unknown_language_code rather than being silently dropped
  • include_availability adds live Internet Archive borrow/read status (~200ms latency), off by default; flags Open Library leaves out are omitted rather than reported as false, and availability: null means none was returned for the work
  • Returns work-level records with edition counts, cover IDs, subjects, and Internet Archive identifiers; content[] text caps Internet Archive IDs and subjects at 5 each per work, structuredContent carries every one

openlibrary_get_work tool

  • Fetch by Open Library Work ID (OL…W), optionally /works/-prefixed; anything else — an ISBN, an edition or author OLID — fails input validation before any request, naming openlibrary_get_edition (id_type: "isbn") as the route from an ISBN to its work
  • Returns title, description, subjects (plus place/time/people breakdowns), cover IDs, and author IDs — no author names (use openlibrary_get_author or openlibrary_search_books)
  • A merged work ID stays reachable — the redirect chain is followed to the canonical record, work_id reports the canonical ID, and an enrichment notice names both IDs when they differ
  • content[] text caps subjects at 10; structuredContent carries the complete list
  • not_found when the Work ID doesn't exist or its redirect chain reaches no work

openlibrary_get_editions tool

  • List editions of a work by Work ID (OL…W), optionally /works/-prefixed; 1–100 per page (default 10), offset pagination, with the requested offset echoed in the output
  • Same work_id validation as openlibrary_get_work — an ISBN resolves to its work through openlibrary_get_edition (id_type: "isbn")
  • Returns ISBN-10/13, publisher, language, page count, cover IDs, and edition OLIDs (OL…M) per edition
  • A merged work ID stays reachable — the editions of the canonical work come back under its ID in work_id, with an enrichment notice naming both IDs; a live work still costs one request
  • not_found when the Work ID doesn't exist or its redirect chain reaches no work

openlibrary_get_edition tool

  • Resolves 1–50 identifiers per call in a single upstream request — every identifier shares one id_type: isbn (10 or 13 digits, an ISBN-10 may end in an X check digit), oclc (numeric), lccn (unchecked), or olid (OL…M)
  • Partial success: identifiers that resolve return in editions (request order); the rest land in unresolved with invalid_identifier (malformed, never sent upstream) or not_found (well-formed, no record) — the call fails only when nothing resolves
  • upstream_unavailable (retryable) when Open Library's batch lookup itself fails — an HTTP error status other than a rate limit, or an HTML page — so an upstream outage never reads as a missing edition
  • Authors come inline — the edition's own credits, or ones marked source: "work" recovered from the parent work when the edition itself lists none; if those lookups fail, the batch still returns, and an enrichment notice names the editions whose authors are missing or shown by ID
  • Returns ISBN-10/13, OCLC, LCCN, LC call numbers, publisher, language, page count, cover IDs, parent work ID, and an Internet Archive ebook_url when one exists

openlibrary_search_authors tool

  • Search by name — partial and alternate names match; 1–100 per page (default 10), offset pagination
  • Returns Author ID (OL…A), alternate names, birth/death dates, top work, work count, top subjects, and average rating
  • content[] text caps top subjects at 5 per author; structuredContent carries the complete list

openlibrary_get_author tool

  • Fetch by Author ID (OL…A); a leading /authors/ prefix is stripped
  • Returns bio, birth/death dates, photo IDs, and linked identifiers (Wikidata, VIAF, ISNI, Goodreads, LibraryThing)
  • A merged author ID stays reachable — the response is the canonical record, and an enrichment notice names the canonical ID when it differs from the one requested
  • not_found when the Author ID doesn't exist, names a record that is not an author (a work or edition OLID), or its redirect chain reaches no author

openlibrary_get_author_works tool

  • List works by Author ID (OL…A); 1–100 per page (default 20), offset pagination, with the requested offset echoed in the output
  • Returns title, first-publish date, cover IDs, and Work ID (OL…W) per work
  • A merged author ID stays reachable — an enrichment notice names the canonical ID when it differs from the one requested
  • not_found when the Author ID doesn't exist, names a record that is not an author (a work or edition OLID), or its redirect chain reaches no author

openlibrary_get_subject tool

  • Subject name is normalized before lookup (lowercased, spaces → underscores), so case and spacing never change the result; 1–100 per page (default 12), offset pagination, with the requested offset echoed in the output
  • Returns canonical subject name, normalized subject key, total work count, and per-work author names, edition count, and cover ID
  • Empty results carry a recovery notice suggesting a different word form, synonym, or broader term — subject tags are user-contributed and inconsistent

openlibrary_search_inside tool

  • Full-text search across Internet Archive's scanned book text — the only tool that answers "which book contains this passage?"; quote a phrase for an exact match, unquoted terms match independently
  • Usually takes 10–30 s against the live index, far above the metadata tools — reach for it deliberately, not as a general book search
  • 1–100 results per page (default 10), offset pagination; each result carries a relevance score comparable only within its own result set
  • Results key on Internet Archive ia_identifier, not Open Library work IDs — match it against ia_identifiers from openlibrary_search_books to reach the catalogue record
  • content[] text caps snippets at 3 per item; structuredContent carries every snippet
  • upstream_unavailable (retryable) when the index answers without a result set, so a failed search never reads as "no book contains this"

openlibrary_get_cover_url tool

  • Resolves a cover or author-photo URL from id (numeric), isbn (10 or 13 digits, an ISBN-10 may end in an X check digit), or olid (OL…M for target: "book", OL…A for target: "author"); size is S/M/L (default M)
  • Identifiers are validated locally before any request — path separators, .., and control characters fail as invalid_identifier, and an author lookup by isbn fails as invalid_target
  • The Covers API always returns HTTP 200 — a missing cover is a 1×1 placeholder GIF, not an error, which is why local validation exists
  • Output URL is ready to embed directly as ![cover](url)

openlibrary://works/{work_id} resource

  • Same fields as openlibrary_get_work, as injectable application/json context for a conversation about a specific book
  • work_id comes from openlibrary_search_books or openlibrary_get_author_works; a merged ID resolves to the canonical work, whose ID the returned work_id carries, and an ID that is not a work (an edition or author OLID) is not found

openlibrary://authors/{author_id} resource

  • Same fields as openlibrary_get_author, as injectable application/json context for a conversation about a specific author
  • author_id comes from openlibrary_search_authors; a merged ID resolves to the canonical author, whose ID the returned author_id carries, and an ID that is not an author (a work or edition OLID) is not found

Features

Built on @cyanheads/mcp-ts-core: stdio and Streamable HTTP transports, pluggable auth (none / jwt / oauth), swappable storage (in-memory, filesystem, Supabase, Cloudflare KV/R2/D1), structured logging with optional OpenTelemetry tracing.

Open Library-specific:

  • Complete Open Library REST API coverage — Search, Search Inside (full-text), Books, Authors, Subjects, and Covers APIs, plus Internet Archive availability lookups
  • Work → editions and author → works drill-down, with explicit OLID cross-links between tool outputs
  • Configurable User-Agent header (OPENLIBRARY_USER_AGENT) identifying the server per Open Library's bot-blocking convention
  • Batch edition resolution — up to 50 ISBN/OCLC/LCCN/OLID identifiers in one upstream call, with per-identifier partial-failure reporting
  • Timeouts sized per endpoint class (10 s record lookups, 30 s searches, 45 s full-text) inside a 50 s retry budget, so a slow upstream is waited on and a failing one returns a classified error before a typical 60 s client timeout; gateway errors are not retried in a loop

Agent-friendly output:

  • Recovery guidance on every empty result — echoes the search criteria and suggests how to broaden a query or which offset to retry
  • Merged-record disclosure — openlibrary_get_author, openlibrary_get_author_works, openlibrary_get_work, and openlibrary_get_editions follow merge redirects and surface the canonical ID via an enrichment notice when a requested ID was merged
  • Per-item partial failure — openlibrary_get_edition returns resolved editions alongside typed unresolved reasons instead of failing the whole batch
  • Text-output caps disclosed via enrichment notices (Internet Archive IDs, subjects, snippets) while structuredContent always carries the complete list

Getting started

Public Hosted Instance

A public instance is available at https://openlibrary.caseyjhand.com/mcp — no installation required. Point any MCP client at it via Streamable HTTP:

{
  "mcpServers": {
    "openlibrary-mcp-server": {
      "type": "streamable-http",
      "url": "https://openlibrary.caseyjhand.com/mcp"
    }
  }
}

Self-Hosted / Local

Add the following to your MCP client configuration file.

{
  "mcpServers": {
    "openlibrary-mcp-server": {
      "type": "stdio",
      "command": "bunx",
      "args": ["@cyanheads/openlibrary-mcp-server@latest"],
      "env": {
        "MCP_TRANSPORT_TYPE": "stdio",
        "MCP_LOG_LEVEL": "info"
      }
    }
  }
}

Or with npx (no Bun required):

{
  "mcpServers": {
    "openlibrary-mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@cyanheads/openlibrary-mcp-server@latest"],
      "env": {
        "MCP_TRANSPORT_TYPE": "stdio",
        "MCP_LOG_LEVEL": "info"
      }
    }
  }
}

Or with Docker:

{
  "mcpServers": {
    "openlibrary-mcp-server": {
      "type": "stdio",
      "command": "docker",
      "args": ["run", "-i", "--rm", "-e", "MCP_TRANSPORT_TYPE=stdio", "ghcr.io/cyanheads/openlibrary-mcp-server:latest"]
    }
  }
}

For Streamable HTTP, set the transport and start the server:

MCP_TRANSPORT_TYPE=http MCP_HTTP_PORT=3010 bun run start:http
# Server listens at http://localhost:3010/mcp

Prerequisites

  • Bun v1.4.0 or higher (or Node.js ≥ 24.0.0).
  • No API key required — Open Library is a free, public API.

Installation

  1. Clone the repository:
git clone https://github.com/cyanheads/openlibrary-mcp-server.git
  1. Navigate into the directory:
cd openlibrary-mcp-server
  1. Install dependencies:
bun install
  1. Configure environment (optional):
cp .env.example .env
# edit .env to override defaults — no required vars

Configuration

VariableDescriptionDefault
MCP_TRANSPORT_TYPETransport: stdio or httpstdio
MCP_HTTP_PORTHTTP server port3010
MCP_HTTP_ENDPOINT_PATHHTTP endpoint path where the MCP server is mounted/mcp
MCP_SESSION_MODEHTTP session posture: stateless, stateful, or auto. Overrides the stateless declared in src/index.ts.stateless
MCP_PUBLIC_URLPublic origin override for TLS-terminating reverse-proxy deploymentsnone
MCP_AUTH_MODEAuthentication: none, jwt, or oauthnone
MCP_LOG_LEVELLog level (debug, info, warning, error, etc.)info
MCP_GC_PRESSURE_INTERVAL_MSOpt-in Bun-only forced-GC pressure loop (ms). Recommended starting point if heap growth is observed: 60000.0 (disabled)
LOGS_DIRDirectory for log files (Node.js only)<project-root>/logs
STORAGE_PROVIDER_TYPEStorage backend: in-memory, filesystem, supabase, cloudflare-kv/r2/d1in-memory
OPENLIBRARY_USER_AGENTUser-Agent sent with all Open Library API requests. Include a contact email per community convention.openlibrary-mcp-server casey@caseyjhand.com
OTEL_ENABLEDEnable OpenTelemetryfalse

See .env.example for the full list of optional overrides.

Running the server

Local development

  • Build and run the production version:

    # One-time build
    bun run rebuild
    
    # Run the built server
    bun run start:http
    # or
    bun run start:stdio
    
  • Run checks and tests:

    bun run devcheck  # Lint, format, typecheck, security
    bun run test      # Vitest test suite
    bun run lint:mcp  # Validate MCP definitions against spec
    

Docker

docker build -t openlibrary-mcp-server .
docker run --rm -p 3010:3010 openlibrary-mcp-server

The Dockerfile defaults to HTTP transport, stateless session mode, and logs to /var/log/openlibrary-mcp-server. OpenTelemetry peer dependencies are installed by default — build with --build-arg OTEL_ENABLED=false to omit them.

Project structure

DirectoryPurpose
src/index.tscreateApp() entry point — registers tools and resources.
src/configServer-specific environment variable parsing and validation with Zod.
src/mcp-server/toolsTool definitions (*.tool.ts) — ten tools across Search, Books, Authors, Subjects, and Covers.
src/mcp-server/resourcesResource definitions (*.resource.ts) — Work and Author.
src/services/open-libraryOpen Library service layer — API client and domain types.
tests/Unit and integration tests mirroring the src/ structure.

Development guide

See CLAUDE.md for development guidelines and architectural rules. The short version:

  • Handlers throw, framework catches — no try/catch in tool logic
  • Use ctx.log for logging, ctx.state for storage
  • Register new tools and resources in the createApp() arrays
  • Wrap external API calls: validate raw → normalize to domain type → return output schema; never fabricate missing fields

Contributing

Issues are welcome. Run checks and tests before submitting:

bun run devcheck
bun run test

License

This project is licensed under the Apache 2.0 License. See the LICENSE file for details.

Featured
CodeRabbit
CodeRabbit
AI writes the code. CodeRabbit catches the slop.
Try For Free →
Lid closed, agents working
Lid closed, agents working
Keeps your Mac awake while Claude Code, Codex or Cursor works. Lets it sleep when they are done.
Try free for 7 days →
Block distraction from your iPhone for freeBlock distraction from your iPhone for free
Block distraction from your iPhone for free
Block distracting apps from your iPhone permanently without a 3rd party app. Free and open source.
Block now (100% free) →
Granola, the best AI meeting recorder
Granola, the best AI meeting recorder
Notes, actions and memory. Without a meeting bot. First month 100% off.
Download for free →
belt - the only tool your agent needs
belt - the only tool your agent needs
belt cli automatically finds the best tools and skills for your agent. image, video, music, tts...
one prompt install →
Open Steps
Open Steps
Free an open-source skills that make AI coding agents easier to understand, verify, and control.
Download for free →
AppSignal
AppSignal
Monitor with ease. Code with confidence.
Start Free Trial →
Agent, connect blockchain
Agent, connect blockchain
Connect your Claude agent to live crypto prices and trading routes via 1inch
Get the MCP →

Configuration

MCP_LOG_LEVELdefault: info

Sets the minimum log level for output (e.g., 'debug', 'info', 'warn').

MCP_HTTP_HOSTdefault: 127.0.0.1

The hostname for the HTTP server.

MCP_HTTP_PORTdefault: 3010

The port to run the HTTP server on.

MCP_HTTP_ENDPOINT_PATHdefault: /mcp

The endpoint path for the MCP server.

MCP_PUBLIC_URL

Public origin override for deployments behind a TLS-terminating reverse proxy (e.g. https://mcp.example.com).

MCP_AUTH_MODEdefault: none

Authentication mode to use: 'none', 'jwt', or 'oauth'.

Categories
Search & Web Crawling
Registryactive
Package@cyanheads/openlibrary-mcp-server
TransportSTDIO, HTTP
UpdatedJun 4, 2026
View on GitHub

More from cyanheads

  • Openstates Mcp Server1
  • Orcid Mcp Server1
  • Reliefweb Mcp Server1
  • Smithsonian Mcp Server1
  • Wikidata Mcp Server1
  • Wsdot Mcp Server1
  • Noaa Cdo Mcp Server2
  • Nominatim Mcp Server2
  • Openstreetmap Mcp Server2
  • Arxiv Mcp Server1
  • Gbif Biodiversity Mcp Server1
  • Gbif Mcp Server1
  • Osv Advisory Mcp Server1
  • Pentest Mcp Server1
  • Socrata Mcp Server1
  • Who Gho Mcp Server1
  • Aviation Weather Mcp Server
  • Cyanheads Mcp Server
  • Ensembl Mcp Server
  • Eur Lex Mcp Server
  • Exchange Rates Mcp Server
  • Fema Mcp Server
  • Imf Mcp Server
  • Noaa Marine Mcp Server

Related Search & Web Crawling MCP Servers

View all →
cyanheads avatar
Wikidata Mcp Server

cyanheads/wikidata-mcp-server

Search and fetch Wikidata entities, execute SPARQL queries, and resolve external identifiers.
1
hugof1234 avatar
Gilbert Mcp

hugof1234/gilbert-mcp

Gilbert meetings: list, search, and fetch transcripts & summaries via MCP.
1
jgador avatar
Websharp

jgador/websharp

Search the web and extract article text for LLMs.
1
securecoders avatar
OpenGraph.io MCP Server

securecoders/opengraph-io-mcp

MCP server for OpenGraph.io API - fetch OG data, screenshots, scrape, and generate images
1
shawnnygoh avatar
ArXiv Scout

shawnnygoh/arxiv-scout

Search and retrieve academic papers directly from arXiv with advanced query capabilities. Extract full text from PDFs to generate summaries, literature reviews, and side-by-side comparisons. Track citations and references to discover related research and map out academic trends.
1
yubinkim444 avatar
AI-First Scraper

yubinkim444/ai-first-scraper-mcp

Three MCP tools: fetch_page, fetch_pages_batch, search_web. Ad-free Markdown for AI agents.
1