Book Database Server
FreeNot checkedEnables querying a curated book database using MCP tools to retrieve basic or detailed book information by ISBN or title, including batch lookups.
About
Enables querying a curated book database using MCP tools to retrieve basic or detailed book information by ISBN or title, including batch lookups.
README
[!NOTE] 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 the copilot-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).
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 install
- Build the TypeScript sources:
npm run build
The 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.js
When running successfully you should see an informational message on stderr similar to:
Book database MCP Server running on stdio
You 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-isbn - Input:
{ "isbn": "0451524935" }# returns details for "1984"
- Tool:
Get basic info by title:
- Tool:
get-book-by-title - Input:
{ "title": "The Hobbit" }
- Tool:
Batch lookup by titles:
- Tool:
get-books-by-titles - Input:
{ "titles": ["1984", "Brave New World"] }
- Tool:
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.
Installing Book Database Server
This server has no published package — it is built from source. Open the repository and follow its README.
▸ github.com/ps-copilot-sandbox/copilot-mcpFAQ
Is Book Database Server MCP free?
Yes, Book Database Server MCP is free — one-click install via Unyly at no cost.
Does Book Database Server need an API key?
No, Book Database Server runs without API keys or environment variables.
Is Book Database Server hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Book Database Server in Claude Desktop, Claude Code or Cursor?
Open Book Database Server on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
wenb1n-dev/SmartDB_MCP
A universal database MCP server supporting simultaneous connections to multiple databases. It provides tools for database operations, health analysis, SQL optim
by wenb1n-devPostgres Server
This server enables interaction with PostgreSQL databases through the Model Context Protocol, optimized for the AWS Bedrock AgentCore Runtime. It provides tools
by madhurprashPostgres
Query your database in natural language
by AnthropicPostgreSQL
Read-only database access with schema inspection.
by modelcontextprotocolCompare Book Database Server with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All data MCPs
