Skip to main content
Glama
Ressl MCP Server - Advanced File Search

Ressl MCP Server - Advanced File Search

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

Related MCP server: File Search Tool

Installation

  1. Clone this repository:

git clone <your-repo-url>
cd ressl-mcp-server
  1. Install dependencies:

npm install
  1. 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 search

  • keyword (required): The keyword or pattern to search for

  • caseSensitive (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 directory

  • keyword (required): The keyword or pattern to search for

  • fileExtensions (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

Available Tools

3 tools
get_file_infoA

Get detailed information about a file including size, modification date, and line count.

Inputs: filePath (required).

search_in_directoryA

Search for a keyword across all files in a directory recursively. Returns results from all matching files.

Inputs: keyword (required), directoryPath (required), maxResults, caseSensitive, +2 more.

search_in_fileA

Search for a keyword within a single file. Returns all matching lines with context.

Inputs: keyword (required), filePath (required), maxResults, caseSensitive, +1 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4/5.0

    Scored across 3 tools

    Disambiguation5/5

    search_in_file and search_in_directory are clearly distinguished by scope (single file vs. entire directory), and get_file_info serves a completely different purpose (metadata retrieval). No two tools overlap in their core functionality.

    Naming Consistency5/5

    All tool names use snake_case and follow a clear verb_preposition_noun pattern. The two search tools share the 'search_in' prefix, making the family relationship obvious, and get_file_info is consistent with the same verb-noun style.

    Tool Count5/5

    With only three tools, the server is tightly scoped for a dedicated file search utility. Each tool earns its place—searching a file, searching a directory, and retrieving metadata—without unnecessary bloat.

    Completeness4/5

    The core search workflows (file-level and directory-level) are fully covered, plus metadata as a helpful complement. However, the 'Advanced' label in the server name hints at potential missing features like regex support or filename search, which are minor gaps for a search-focused tool.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      B
      quality
      D
      maintenance
      A MCP server that allows searching for files in the filesystem based on path fragments, returning file metadata including name, path, size, and creation date.
      1
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      An MCP server that enables file system search and inspection, including directory listing, regex-based file name and content searches, and reading text, PDF, and DOCX files.
      1
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      MCP server providing filesystem operations, shell execution, and web search capabilities.
      -
    • A
      license
      C
      quality
      D
      maintenance
      A file management MCP server enabling complete file and directory operations, including advanced editing, templates, and batch processing through natural language.
      19
      17 npm
      3
      ISC