Back to Home
devleo10 icon

mcp-search-server

Verified Safe

by devleo10

Overview

A Model Context Protocol (MCP) server providing a `search_file` tool for efficient keyword and regex searching within files, designed to integrate with AI clients like Cursor and Claude Desktop.

Installation

Run Command
bun run src/server.ts

Environment Variables

  • MCP_TRANSPORT
  • WORKSPACE_ROOT
  • PORT

Security Notes

The server implements robust security measures including path normalization, validation against an optional `WORKSPACE_ROOT` to prevent directory traversal, automatic keyword escaping for non-regex searches to prevent regex injection, detection and rejection of binary files, and file size limits to mitigate DoS attacks. Input validation is enforced using Zod. No hardcoded secrets or 'eval' statements were found. The use of an official MCP SDK and Express framework also contributes to its security posture.

Similar Servers

Stats

Interest Score0
Security Score9
Cost ClassMedium
Avg Tokens1000
Stars0
Forks0
Last Update2025-11-26

Tags

MCPSearchFile SystemDeveloper ToolBun