Book Database MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Book Database MCP Serverfind book by title 'The Hobbit'"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Book Database MCP Server
This is a small MCP (Model Context Protocol) demo server used during the GitHub Copilot Agents and MCP training sessions. It used by a demo explained in thecopilot-agent-and-mcp repository.
Functional
Book Database MCP Server exposes a simple set of tools that let an MCP-capable agent or client query a curated book database. Key features:
Retrieve a book's basic information (ISBN, title, author) by title.
Retrieve detailed book information (summary, date, author) by ISBN.
Batch queries: request multiple books by a list of titles or ISBNs.
Uses small JSON files as the backing dataset (easy to read and modify for demos).
Related MCP server: librarian
Technical
Runtime: Node.js (TypeScript source in
src/).Protocol: Model Context Protocol (MCP) using
@modelcontextprotocol/sdk.Transport: Standard I/O transport (
StdioServerTransport) — this server communicates over stdio.Validation: Input schemas are validated with
zodfor each tool.Data:
src/data/books.json(basic list) andsrc/data/books-details.json(summaries and dates).Tools implemented in
src/index.ts:get-book-by-isbn— takesisbn: string(10 chars)get-book-by-title— takestitle: stringget-books-by-titles— takestitles: string[]get-books-by-isbn-list— takesisbnList: string[](10-char items)
Setup
Prerequisites: Node.js (18+ recommended) and npm.
Clone the repository and enter the demo folder:
git clone <repo-url>
cd <repo-root>Install dependencies:
npm installBuild the TypeScript sources:
npm run buildThe build produces build/index.js and the build folder is listed in package.json files.
Run
Start the MCP server (it runs on stdio and writes a startup log to stderr):
node build/index.jsWhen running successfully you should see an informational message on stderr similar to:
Book database MCP Server running on stdioYou don't need to start the server manually during the demo as it will be started by the MCP server configuration in the webapp demo repository.
Usage examples
The server exposes the tool names listed above. Example calls (conceptual):
Get details by ISBN:
Tool:
get-book-by-isbnInput:
{ "isbn": "0451524935" }# returns details for "1984"
Get basic info by title:
Tool:
get-book-by-titleInput:
{ "title": "The Hobbit" }
Batch lookup by titles:
Tool:
get-books-by-titlesInput:
{ "titles": ["1984", "Brave New World"] }
Data
The datasets are small JSON files in src/data/ so you can easily tweak entries during a workshop:
src/data/books.json— array of simple book objects (ISBN, title, author)src/data/books-details.json— object with abooksarray containing summaries and dates
Notes
This project is intentionally small and focused on demonstrating how to serve tools over MCP.
If you want to interactively test tools locally, write a tiny Node client that uses
StdioClientTransportfrom@modelcontextprotocol/sdkand spawn this server as a child process so their stdio streams are connected.
This server cannot be deployed
Maintenance
Related MCP Connectors
Books MCP — wraps Open Library API (free, no auth)
BookBrainz MCP — open book metadata (MetaBrainz / sister of MusicBrainz)
Read-only MCP server for verified book recommendations and reading lists.
MCP server for Russian books search, details, and recommendation candidates.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceSelf-hosted MCP server for searching and discovering books using Anna's Archive and Goodreads datasets, enabling full-text search, ISBN/md5 lookup, similarity matching, and optional download URL retrieval.3 npm2MIT
- AlicenseAqualityAmaintenanceEnables browsing, searching, and quote verification of a local ebook library via MCP, providing deterministic RAG with no embeddings or network.62MIT
- AlicenseAqualityAmaintenanceEnables searching the Kakao Daum Book Search API by title, author, publisher, or ISBN, retrieving detailed bibliographic and pricing metadata, and exporting results to xlsx, csv, json, or sqlite through MCP or CLI.41MIT
- FlicenseAqualityCmaintenanceEnables bibliographic research on a private local Calibre library by providing read-only metadata search, book inspection, and optional RAG-based content retrieval through MCP.5-