Back to Home
atharvm90 icon

mcp-server-regex

Verified Safe

by atharvm90

Overview

Provides a Model Context Protocol (MCP) server that enables regex pattern searching across files in specified directories.

Installation

Run Command
python3.11 server.py

Security Notes

The server handles user-provided regex patterns, which introduces a potential Regex Denial of Service (ReDoS) vulnerability if a malicious or complex pattern is provided. It also performs file system traversal and reads file contents, which could lead to resource exhaustion if used on extremely large directories or files without proper limits, though the `max_depth` parameter helps mitigate this. File read errors and permission issues are handled gracefully, preventing crashes. No direct 'eval' or other obvious arbitrary code execution vulnerabilities were found.

Similar Servers

Stats

Interest Score0
Security Score7
Cost ClassMedium
Avg Tokens1500
Stars0
Forks0
Last Update2026-01-19

Tags

RegexFile SystemSearchMCPDeveloper Tool