Ressl MCP Server - Advanced File Search
A sophisticated MCP server providing powerful file search capabilities including single file search, recursive directory search, and file information retrieval.
README
Ressl MCP Server - Advanced File Search
A sophisticated Model Context Protocol (MCP) server providing powerful file search capabilities for Claude Desktop and other MCP-compatible clients.
Features
- Single File Search: Search for keywords within a single file with line numbers
- Directory Search: Recursively search across entire directories with extension filtering
- File Information: Get detailed metadata about files (size, line count, modification date)
- Advanced Options: Case-sensitive search, custom result limits, configurable formatting
- Error Handling: Comprehensive error handling with clear messages
- Performance: Efficient regex-based search with result limiting
Installation
- Clone this repository:
git clone <your-repo-url>
cd ressl-mcp-server
- Install dependencies:
npm install
- Build the project:
npm run build
Configuration for Claude Desktop
Add the following to your Claude Desktop configuration file:
Windows: %APPDATA%\Claude\claude_desktop_config.json
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"fileSearch": {
"command": "node",
"args": [
"C:\\path\\to\\ressl-mcp-server\\dist\\index.js"
]
}
}
}
Make sure to replace the path with your actual project path.
Available Tools
1. search_in_file
Search for a keyword within a single file.
Parameters:
filePath(required): Path to the file to searchkeyword(required): The keyword or pattern to search forcaseSensitive(optional): Case-sensitive search (default: false)includeLineNumbers(optional): Include line numbers (default: true)maxResults(optional): Maximum results to return (default: 100)
Example:
{
"filePath": "./src/index.ts",
"keyword": "function",
"caseSensitive": false,
"maxResults": 50
}
2. search_in_directory
Search for a keyword across all files in a directory recursively.
Parameters:
directoryPath(required): Path to the directorykeyword(required): The keyword or pattern to search forfileExtensions(optional): Array of extensions to filter by, e.g., ["ts", "js"]caseSensitive(optional): Case-sensitive search (default: false)includeLineNumbers(optional): Include line numbers (default: true)maxResults(optional): Maximum results to return (default: 500)
Example:
{
"directoryPath": "./src",
"keyword": "class",
"fileExtensions": ["ts", "js"],
"maxResults": 100
}
3. get_file_info
Get detailed information about a file.
Parameters:
filePath(required): Path to the file
Example:
{
"filePath": "./src/index.ts"
}
Usage Examples
Example 1: Search within a single file
Search for all occurrences of "search" in the main server file:
{
"filePath": "./src/index.ts",
"keyword": "search",
"includeLineNumbers": true
}
Example 2: Search across project files
Find all TypeScript files containing "async":
{
"directoryPath": "./src",
"keyword": "async",
"fileExtensions": ["ts"],
"maxResults": 200
}
Example 3: Get file statistics
Retrieve information about a specific file:
{
"filePath": "./README.md"
}
Development
# Development mode with watch
npm run dev
# Build for production
npm run build
# Start the server
npm start
Testing with MCP Inspector
You can test the server using the MCP Inspector:
npx @modelcontextprotocol/inspector node dist/index.js
Project Structure
ressl-mcp-server/
├── src/
│ └── index.ts # Main server implementation
├── dist/ # Compiled JavaScript (generated)
├── examples/ # Example files for testing
├── package.json
├── tsconfig.json
└── README.md
Technical Details
- Language: TypeScript
- Runtime: Node.js 18+
- Framework: MCP SDK v0.5.0
- Pattern Matching: Regex-based with special character escaping
- File Handling: UTF-8 encoding with error recovery
- Performance: Efficient streaming for large files
Error Handling
The server provides clear error messages for:
- File not found
- Invalid paths
- Permission issues
- Exceeded result limits
License
MIT
Author
Shweta Patel
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.