mcp-server
by lokesh-reddy-afb
Overview
Provides tools to search files and directories using regular expressions, returning matched lines and line numbers.
Installation
node server.jsSecurity Notes
Critical vulnerabilities identified: User-supplied regex patterns are used directly to construct `new RegExp()`, leading to potential Regular Expression Denial of Service (ReDoS) attacks. User-supplied file and directory paths are used with `fs.readFileSync` and `fs.readdirSync`, which, despite using `path.resolve`, could potentially lead to arbitrary file disclosure or traversal if not properly sandboxed or if the process has elevated permissions to sensitive areas.
Similar Servers
chunkhound
Provides local-first codebase intelligence, extracting architecture, patterns, and institutional knowledge for AI assistants.
it-tools-mcp
Provides a comprehensive Model Context Protocol (MCP) server offering over 100 IT tools and utilities for developers, system administrators, and IT professionals.
mcp-server-regex
Provides a Model Context Protocol (MCP) server that enables regex pattern searching across files in specified directories.
mcp-regex-server
This server provides a standardized interface (MCP) for performing regular expression searches within specified files, returning matching lines.