Shubham0523/mcp-file-search-server
3.2
If you are the rightful owner of mcp-file-search-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.
The MCP File Search Server is a production-ready server designed for secure and efficient file searching using streaming technology.
Tools
1
Resources
0
Prompts
0
MCP File Search Server
A production-ready Model Context Protocol (MCP) server for secure, efficient file searching using streaming.
Features
- Keyword search with case-sensitive option
- Returns line numbers + full matching lines
- Streams large files (1GB+) with <10MB RAM
- Secure by default: blocks
../paths, limits file size - Built in TypeScript for type safety
Installation
npm install
npm run build
Usage
Run with MCP Inspector:
npx @modelcontextprotocol/inspector node build/index.js
Tool: search_in_file
Parameters:
filepath(string, required): Path to the file to searchkeyword(string, required): Keyword to search forcase_sensitive(boolean, optional): Whether search should be case-sensitive (default: false)
Example:
{
"filepath": "sample.txt",
"keyword": "test",
"case_sensitive": false
}
Technical Details
- Built with TypeScript
- Uses Node.js readline for efficient streaming
- Maximum file size: 100MB
- Restricts file access to current working directory for security
Assignment
This project was created as part of a technical assignment for Ressl. EOF