Keyword Search Server
БесплатноНе проверенEnables searching for a keyword within a text file using Model Context Protocol tools via standard input/output.
Описание
Enables searching for a keyword within a text file using Model Context Protocol tools via standard input/output.
README
This project implements a Model Context Protocol (MCP) server and client using Node.js.
It allows you to search for a specific keyword within a given text file — demonstrating how MCP tools can communicate via standard input/output.
Table of Contents
Features
- Built with
@modelcontextprotocol/sdk - Implements a custom MCP tool:
keyword-search - Searches text files for specific keywords
- Clean, color-coded output using
chalk - Fully open-source and lightweight
Project Structure
mcp-server/
│
├── index.js # MCP Server implementation
├── client.js # Client sending keyword-search requests
├── sample.txt # Sample input file
├── package.json
├── .gitignore
├── LICENSE
└── README.md
Setup Instructions
1. Clone the repository
git clone https://github.com/TuShArBhArDwA/mcp-keyword-search-server.git
cd mcp-keyword-search-server
2. Install dependencies
npm install
3. Run the client
node client.js
You should see output similar to:
Starting MCP Keyword Search Server...
Sending keyword-search request...
Search Result:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Found 1 line(s):
This is Tushar
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
How It Works
- The MCP server (index.js) defines a tool keyword-search using the SDK.
- The client (client.js) sends an MCP request with file path and keyword.
- The server reads the file, finds matching lines, and returns the result.
Example File
sample.txt
Hello world
This is Tushar
Keyword search test
Example Request:
{
"filePath": "sample.txt",
"keyword": "Tushar"
}
Response
Found 1 line(s):
This is Tushar
Screenshots
Salesforce Custom Object Screenshot
MCP Server Output Screenshot
License
This project is licensed under the MIT License - see the LICENSE file for details.
Contact
- Meet T-Bot - Discover My Work
- Tushar Bhardwaj - Portfolio
- Connect 1:1 - Topmate
- GitHub: TuShArBhArDwA
- LinkedIn: Tushar Bhardwaj
- Email: [email protected]
Установка Keyword Search Server
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/TuShArBhArDwA/mcp-keyword-search-serverFAQ
Keyword Search Server MCP бесплатный?
Да, Keyword Search Server MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Keyword Search Server?
Нет, Keyword Search Server работает без API-ключей и переменных окружения.
Keyword Search Server — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Keyword Search Server в Claude Desktop, Claude Code или Cursor?
Открой Keyword Search Server на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
GitHub
PRs, issues, code search, CI status
автор: GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
автор: mcpdotdirectCompare Keyword Search Server with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории development
