Skip to main content
Glama
maniranjan2023

MCP Open Library & File Search Server

๐Ÿ“š 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:

  1. search_author โ€” search for books by author using the Open Library API.

  2. 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 text

Related MCP server: Lyceum

๐Ÿ—๏ธ 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

  1. Install dependencies

    npm install
  2. Build

    npm run build
  3. Run

    npm start

    Or 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


๐Ÿงพ License

MIT License ยฉ 2025


๐Ÿ‘จโ€๐Ÿ’ป Author

Your Name ๐Ÿ“ง maniranjan1512@gmail.com ๐ŸŒ github.com/maniranjan2023

Install Server
A
license - permissive license
B
quality
D
maintenance

Maintenance

โ€“Maintainers
โ€“Response time
โ€“Release cycle
โ€“Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/maniranjan2023/MCP-Server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server