Skip to main content
Glama
Books & Film MCP Server

Books & Film MCP Server

by baraninja

Books & Film MCP Server

A comprehensive Model Context Protocol (MCP) server for books, films, and scholarly publications with advanced search capabilities and user-friendly formatting.

Supported APIs: Open Library, Google Books, OpenAlex, Crossref, TMDb, OMDb, and LIBRIS (Xsearch & OAI-PMH).

Features

Core Capabilities

  • 🔍 18+ search and retrieval tools across multiple databases

  • 📚 Book data from Open Library, Google Books, and LIBRIS

  • 🎬 Movie information from TMDb and OMDb

  • 📄 Scholarly articles via OpenAlex and Crossref

  • 🔗 8 URI-based resources for direct data access

Enhanced Search Experience

  • 🎯 Smart Summary Mode - Scholarly results show only essential fields instead of 200+ line JSON responses

  • 🔄 Cross-source deduplication - Removes duplicate books found across multiple databases

  • 🌍 Advanced filtering - Language, publication year, and recent publication filters

  • ⚡ Combined searches - Search multiple databases simultaneously

  • 📋 Readable formatting - Optional text format for better CLI display

  • 🛡️ Reliability - Automatic retry, caching, and rate limiting

Related MCP server: Academic Paper MCP HTTP/SSE Server

Installation

npm install

Development

npm run dev

Build & Run

npm run build
npm start  # stdio transport

Environment Variables

Copy .env.example to .env and configure:

Required:

  • OMDB_API_KEY - OMDb API key

  • TMDB_ACCESS_TOKEN or TMDB_API_KEY - TMDb authentication

Optional but recommended:

  • GOOGLE_BOOKS_API_KEY - Higher API quotas

  • CROSSREF_MAILTO - Polite pool access

  • USER_AGENT_EXTRA - Custom user agent string

Available Tools

📚 Books

  • books_openlibrary_search - Search Open Library works/editions

  • books_openlibrary_get_work - Get work by OLID

  • books_openlibrary_get_edition - Get edition by OLID

  • books_google_search - Enhanced Google Books search with structured fields (intitle, inauthor, isbn, etc.)

  • books_google_get_volume - Get volume by ID

📄 Scholarly Publications

  • scholarly_openalex_search_works - Enhanced OpenAlex search with summary mode and advanced filters

  • scholarly_openalex_get_work - Get work by ID/URI

  • scholarly_crossref_search_works - Enhanced Crossref search with structured queries and summary mode

  • scholarly_crossref_get_by_doi - Get work by DOI

🎬 Films

  • film_tmdb_search_movie - Search TMDb movies

  • film_tmdb_get_movie - Get movie details by ID

  • film_omdb_search - Search OMDb by title

  • film_omdb_get - Get by IMDb ID or title

🇸🇪 Swedish Libraries (LIBRIS)

  • se_libris_xsearch - Enhanced search with structured fields and boolean queries

  • se_libris_oai_list_records - OAI-PMH harvesting

  • books_search_across_all - NEW Search Google Books, Open Library, and LIBRIS simultaneously with deduplication

  • scholarly_search_across_all - NEW Search OpenAlex and Crossref simultaneously with summary mode

Key Search Parameters

Summary & Formatting

  • summaryMode: true (default) - Returns essential fields only vs. full API responses

  • formatAsText: true - Human-readable text format instead of JSON

  • deduplicateResults: true (default) - Remove cross-source duplicates

Advanced Filtering

  • recentYears: 5 - Publications from last N years

  • language: "en" - Language filter (ISO 639-1 codes)

  • isOpenAccess: true - Open access publications only

  • publicationYear: 2023 - Specific year filter

Available Resources

Direct URI access to data:

  • openlibrary://works/{olid} - Open Library work

  • openlibrary://editions/{olid} - Open Library edition

  • googlebooks://volumes/{id} - Google Books volume

  • openalex://works/{id} - OpenAlex work

  • crossref://works/{doi} - Crossref work

  • tmdb://movie/{id} - TMDb movie

  • omdb://id/{imdbId} - OMDb by IMDb ID

  • libris://xsearch?q={query} - LIBRIS search

  • libris://oai/listrecords?prefix={metadataPrefix}&from={from}&until={until}&set={set} - LIBRIS OAI-PMH

Usage with Claude Desktop

Option 1: Local Server

Add to your Claude Desktop configuration:

  • Windows: %APPDATA%\Claude\claude_desktop_config.json

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "books-film-mcp": {
      "command": "node",
      "args": ["/absolute/path/to/books-film-mcp/dist/server.js"],
      "env": {
        "OMDB_API_KEY": "your-omdb-key",
        "TMDB_ACCESS_TOKEN": "your-tmdb-token"
      }
    }
  }
}

Option 2: MCP Bundle (MCPB)

Create an installable bundle:

npm i -g @anthropic-ai/mcpb
npm run build
mcpb init   # creates manifest.json
mcpb pack   # generates .mcpb file

Open the .mcpb file in Claude Desktop to install.

Search Examples

{
  "inauthor": "Astrid Lindgren",
  "language": "swe",
  "maxResults": 10
}

Scholarly Search with Summary Mode

{
  "query": "climate change",
  "recentYears": 3,
  "isOpenAccess": true,
  "summaryMode": true,
  "formatAsText": true
}

Combined Book Search with Deduplication

{
  "author": "Selma Lagerlöf",
  "deduplicateResults": true,
  "maxResultsPerSource": 5
}

Performance & Reliability

  • Automatic retry logic with exponential backoff

  • Memory caching (1-hour TTL) for frequently accessed data

  • Rate limiting respects API limits (Crossref: 50/min, Google Books: 100/min, etc.)

  • Smart error handling with graceful degradation

  • Response optimization - Summary mode reduces scholarly results from 200+ lines to ~10 essential fields

API Documentation

Each service follows their respective API guidelines with enhanced MCP features:

  • Open Library: Public API with optional pagination and field filtering

  • Google Books: Enhanced with structured field searches (intitle, inauthor, isbn, etc.)

  • OpenAlex: Advanced filters + summary mode for readable results

  • Crossref: Structured queries + summary mode + date range filtering

  • TMDb: Movie database with v3 (API key) or v4 (Bearer token) auth

  • OMDb: IMDb data requiring API key registration

  • LIBRIS: Enhanced with boolean queries and structured field searches

Contributing

  1. Fork the repository

  2. Create a feature branch

  3. Make your changes

  4. Add tests if applicable

  5. Submit a pull request

License

MIT

Available Tools

17 tools
books_google_get_volumeGoogle Books — Get volumeC

Fetch a single volume by id.

Inputs: id (required).

books_openlibrary_get_editionOpen Library — Get editionC

Fetch an edition by OLID (e.g., OL7058607M).

Inputs: olid (required).

books_openlibrary_get_workOpen Library — Get workC

Fetch a work by OLID (e.g., OL27448W).

Inputs: olid (required).

books_search_across_allBooks — Search across all databasesB

Search simultaneously across Google Books, Open Library, and LIBRIS for books and publications.

Inputs: isbn, title, author, subject, +9 more.

film_omdb_getOMDb — Get by IMDb ID or titleC

Fetch OMDb details by imdbId or title/year.

Inputs: plot, year, title, imdbId.

film_tmdb_get_movieTMDb — Get movie detailsB

Get TMDb movie details by id with optional append_to_response.

Inputs: id (required), appendToResponse.

film_tmdb_search_movieTMDb — Search movieC

Search The Movie Database for movies.

Inputs: query (required), page, year, language, +1 more.

scholarly_crossref_get_by_doiCrossref — Get work by DOIC

Fetch Crossref work metadata by DOI.

Inputs: doi (required).

scholarly_crossref_search_worksCrossref — Search worksC

Search Crossref works with structured query parameters and advanced filtering.

Inputs: rows, sort, type, order, +18 more.

scholarly_openalex_get_workOpenAlex — Get workC

Get an OpenAlex work by id/URI.

Inputs: id (required).

scholarly_openalex_search_worksOpenAlex — Search worksC

Search OpenAlex works with advanced filtering options for scholarly literature.

Inputs: isOa, page, sort, type, +14 more.

scholarly_search_across_allScholarly — Search across academic databasesB

Search simultaneously across OpenAlex and Crossref for academic publications.

Inputs: doi, query, title, author, +9 more.

se_libris_oai_list_recordsLIBRIS OAI-PMH — ListRecordsC

Harvest LIBRIS via OAI-PMH ListRecords (XML string). Supports resumptionToken.

Inputs: set, from, until, metadataPrefix, +1 more.

se_libris_xsearchLIBRIS Xsearch — SearchB

Search LIBRIS (Swedish National Library) with structured field support and boolean queries.

Inputs: n, isbn, issn, query, +10 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    C2.8/5.0

    Scored across 17 tools

    Disambiguation4/5

    Most tools are clearly distinct by source and action (e.g., openlibrary_get_work vs google_get_volume target different providers). The main ambiguity is between the individual provider searches (books_openlibrary_search, books_google_search) and the aggregated books_search_across_all, which may cause an agent to pick one when the other is more appropriate. Overall though, the provider prefixes and resource nouns differentiate most tools well.

    Naming Consistency3/5

    The pattern follows domain_source_action/resource (e.g., books_openlibrary_get_work, scholarly_crossref_search_works), which is fairly consistent. However, verbs vary between search/get/fetch/xsearch/oai_list_records, and there is no uniform approach (search vs fetch vs xsearch). The three main domains (books, scholarly, film, se) use the same prefix style, but the verb choices are inconsistent across tools.

    Tool Count2/5

    17 tools is on the heavy side for what appears to be a media discovery/search server. Several tools serve nearly identical purposes across providers (get/search for the same kind of content in OpenLibrary, Google, Crossref, OpenAlex, TMDb, OMDb), which inflates the count without adding much functional breadth. However, the count is not extreme and is defensible given the multi-provider aggregator approach.

    Completeness3/5

    The search and get lifecycle is well covered for books, scholarly works, and films across multiple providers, and the aggregated cross-search tools are a thoughtful addition. However, there are notable gaps: no CRUD operations (create/update/delete is not expected for read-only catalogs, but the OAI-PMH harvester stands out as an odd inclusion without broader publisher/collection management), and the film domain lacks search-across-all aggregation like books and scholarly have, which is an inconsistency in coverage.

    Related MCP Connectors

    Related MCP Servers