mcp-search-server
Verified Safeby 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
bun run src/server.tsEnvironment 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
youdotcom-mcp-server
Provides AI agents with real-time access to web information, including search, AI-powered answers, and content extraction, through the Model Context Protocol.
tenets
Provides intelligent, token-optimized code context and automatically injects guiding principles to AI coding assistants for enhanced understanding and consistent interactions.
code-buddy
Provides an AI-powered coding companion with comprehensive file system and development tools, integrating with MCP-compatible clients like Claude Desktop.
mcp_server
This server implements the Model Context Protocol (MCP) to expose developer-defined tools as a HTTP API, specifically demonstrating a task creation tool.