Command Palette

Search for a command to run...

UnylyUnyly
Browse all

Keyword Search Server

FreeNot checked

Enables searching for a keyword within a text file using Model Context Protocol tools via standard input/output.

GitHubEmbed

About

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

image

Salesforce Custom Object Screenshot

image

MCP Server Output Screenshot


License

This project is licensed under the MIT License - see the LICENSE file for details.


Contact

from github.com/TuShArBhArDwA/mcp-keyword-search-server

Installing Keyword Search Server

This server has no published package — it is built from source. Open the repository and follow its README.

▸ github.com/TuShArBhArDwA/mcp-keyword-search-server

FAQ

Is Keyword Search Server MCP free?

Yes, Keyword Search Server MCP is free — one-click install via Unyly at no cost.

Does Keyword Search Server need an API key?

No, Keyword Search Server runs without API keys or environment variables.

Is Keyword Search Server hosted or self-hosted?

Self-hosted: the server runs locally on your machine via the install command above.

How do I install Keyword Search Server in Claude Desktop, Claude Code or Cursor?

Open Keyword Search 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

Compare Keyword Search Server with

Not sure what to pick?

Find your stack in 60 seconds

Author?

Embed badge for your README

Browse similar

All development MCPs