MCP Open Library & File Search 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., "@MCP Open Library & File Search Server find books by J.K. Rowling"
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.
π MCP Open Library & File Search Server
This project is an MCP (Model Context Protocol) server built with TypeScript and Node.js. It provides two core tools:
search_authorβ search for books by author using the Open Library API.search_in_fileβ search for a keyword inside any local text file.
π Features
π search_author
Fetches book data by a given author name from the Open Library API.
Input
{
"author": "tolkien"
}Output A JSON response containing book search results.
π search_in_file
Scans a file for a keyword and returns the matching lines and their numbers.
Input
{
"filePath": "./sample.txt",
"keyword": "example"
}Output
Found 2 match(es) for "example" in "./sample.txt":
Line 3: This is an example line
Line 8: Another example textRelated MCP server: books-catalog
ποΈ Project Structure
MCP/
βββ build/ # Compiled JS files
βββ src/ # Source TypeScript files
β βββ index.ts
βββ sample.txt # Example file for keyword search
βββ package.json
βββ tsconfig.json
βββ .gitignore
βββ README.mdβοΈ Setup & Run
Install dependencies
npm installBuild
npm run buildRun
npm startOr directly (without compiling):
npm run dev
π§© Example: Using in MCP Inspector
For search_in_file:
{
"filePath": "./sample.txt",
"keyword": "OpenAI"
}For search_author:
{
"author": "tolkien"
}π§ Technologies
TypeScript
Node.js
π§Ύ License
MIT License Β© 2025
π¨βπ» Author
Your Name π§ maniranjan1512@gmail.com π github.com/maniranjan2023
Available Tools
2 toolssearch_authorC
Search for books on the Open Library API by author name.
Inputs: author (required).
search_in_fileB
Search for a specified keyword within a given file. Returns the lines containing the keyword and their line numbers.
Inputs: filePath (required), keyword (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 2 tools
The two tools have entirely different purposesβone searches Open Library by author name, the other searches within a local file. No overlap or ambiguity is possible.
Both tools use the 'search_' prefix followed by a specifier (author vs. in_file), showing a consistent verb-first pattern. Minor variation in specifier type (noun vs. prepositional phrase) is acceptable.
With only two tools covering two distinct domains (Open Library and file search), the server feels thin and unfocused. Each domain would benefit from additional tools to be useful, making the count too low for the stated scope.
The server provides only one operation per domain: author search and in-file keyword search. Missing are common complementary tools like book search by title/ISBN, file listing, or multiple search modalities. The tool surface is severely incomplete for both purposes.
Maintenance
Related MCP Connectors
MCP server for Project Gutenberg: 78,000+ public-domain ebooks with full plain-text retrieval.
An MCP server that provides congressional transcripts
Related MCP Servers
- AlicenseAqualityDmaintenanceA library management MCP server supporting book search, member management, and loan operations through natural language commands.134MIT
- AlicenseNot gradedqualityDmaintenanceA well-documented MCP server that exposes a local SQLite catalog of public-domain books through tools like search, get, filter by genre, top-rated, and catalog stats.MIT
- FlicenseCqualityDmaintenanceA comprehensive MCP server for searching books, films, and scholarly publications across multiple APIs like Open Library, Google Books, TMDb, and Crossref, with advanced filtering and deduplication.17-
- AlicenseNot gradedqualityBmaintenanceAn MCP server that enables searching books and authors, fetching editions, browsing subjects, and resolving cover images from Open Library.302 npm4Apache 2.0