MCP File Search Tool server

MCP File Search Tool server

mcp-server-file-search-tool•byrjtpp

A Model Context Protocol server that lets clients list directories, search file names, read text, PDF, and DOCX files, and run regex content searches with configurable context.

License: MIT•Runtime: Awaiting documentation review•Category: file systems-docs

WHAT IT DOES

  • •Lists file paths with breadth-first or depth-first traversal, paging, and nested-level control.
  • •Searches file names and file contents using regular expressions, with configurable context lines for content searches.
  • •Reads text, PDF, and DOCX files with optional character limits.
  • •Restricts access using allowed and excluded paths, can hide dotfiles, and can mask path segments for privacy.

BEST FOR

  • •Searching directories and documents for matching content from an MCP-capable client.
  • •Reading and inspecting text, PDF, and DOCX files while limiting how much content is returned.
  • •Constraining file browsing to approved directories and excluding sensitive locations.

ABOUT MCP-SERVER-FILE-SEARCH-TOOL

MCP File Search Tool server is cataloged as an MCP server attributed to rjtpp. A Model Context Protocol server that lets clients list directories, search file names, read text, PDF, and DOCX files, and run regex content searches with configurable context. It is categorized under file systems-docs. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for MCP File Search Tool server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Does the server start without any allowed paths configured?

No. ALLOWED_PATHS is required and the server will not start unless at least one allowed path is configured.

Does this server implement authentication or encryption?

No. The README states the server does not implement authentication or encryption and is intended for local, personal use only.

Upstream README

View this exact version on GitHub

README.md · edd9e7fde5c3 · Fetched 2026-11-13 13:33:41 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

MCP Server - File Search Tool 🗂️

An MCP (Model Context Protocol) server that provides powerful file system search and inspection capabilities via the MCP protocol. Use this tool to list directories, search file names, read file contents (including PDF and DOCX), and perform regex‑based content searches with context.

Features

  • List file paths: Breadth‑first or depth‑first listing, with paging and nested‑level control.
  • Search file names: Regex‑based file name search.
  • Read files: Read text, PDF, and DOCX files with optional character limits.
  • Search file contents: Regex‑based content search with configurable context lines.
  • Allowed paths: Restrict server to only browse and search within configured directories.
  • Exclude paths: Prevent sensitive directories from being accessed.
  • Hide hidden files: Optionally ignore files and directories beginning with a dot.
  • Path masking: Replace configured path segments with tokens for privacy.

Prerequisites

  • Python 3.10 or higher
  • uv - Fast Python package manager

Installation

  1. Clone the repository:
git clone https://github.com/RJTPP/mcp-server-file-search-tool
cd mcp-server-file-search-tool
  1. Create virtual environment and install dependencies:
uv sync

Running the Server

Start the server (default port 6277):

uv run server.py

Claude Desktop Integration

To add this server to Claude Desktop:

mcp install server.py --name "File Search Tool"

Or manually add it to claude_desktop_config.json:

{
  "mcpServers": {
    "File Search Tool": {
      "command": "uv",
      "args": [
        "--directory",
        "/path/to/mcp-sever-file-search-tool/",
        "run",
        "--with",
        "mcp[cli]",
        "mcp",
        "run",
        "server.py"
      ]
    }
  }
}

Configuration

  1. Copy the example configuration:
   cp config_example.json config.json
  1. Edit config.json to customize:
{
  "DEFAULT_TIME_LIMIT": 10,
  "HIDE_HIDDEN_FILES": true,
  "HOST": "127.0.0.1",
  "PORT": 6277,
  "ALLOWED_PATHS": [
    "/path/to/allowed/directory"
  ],
  "EXCLUDE_PATHS": [
    "/path/to/excluded/directory"
  ],
  "PATH_MASKER": {
    "ENABLED": true,
    "MODE": "segment",
    "MASK_TOKEN": "MASK",
    "LOOK_FOR": [
      "path_to_mask"
    ]
  }
}

Required Fields

  • ALLOWED_PATHS is required. The server will not start unless at least one allowed path is configured.

Configuration Field Descriptions

FieldTypeDescription
DEFAULT_TIME_LIMITintMax execution time for searches (in seconds).
HIDE_HIDDEN_FILESboolIf true, ignores files and directories that start with .
HOSTstringIP address the server will bind to (e.g., "127.0.0.1").
PORTintPort number to listen on (e.g., 6277).
ALLOWED_PATHSlist[string]Required. Directories the server is allowed to access and search.
EXCLUDE_PATHSlist[string]Directories to explicitly block, even if inside allowed paths.
PATH_MASKERobjectOptional masking settings for privacy.
PATH_MASKER.ENABLEDboolEnables or disables path masking.
PATH_MASKER.MODE"segment" or "prefix"Masking mode: "segment" replaces matching segments; "prefix" masks full path prefixes.
PATH_MASKER.MASK_TOKENstringThe token to replace matched path segments (e.g., "MASK").
PATH_MASKER.LOOK_FORlist[string]List of path segments to be masked when found in full paths.

Security

[!WARNING] This server does not implement authentication or encryption.
It is designed for local, personal use only. Do not expose the server to untrusted networks or use it in production without adding proper security measures.

License

This project is released under the MIT License.

You are free to use, modify, and distribute this software under the terms of the MIT License. See the LICENSE file for detailed terms and conditions.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for MCP File Search Tool server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/mcp-server-file-search-tool)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related file systems-docs MCP Servers

Alternative and complementary servers in the same category

View all in file systems-docs →

A Model Context Protocol server for global law with read-only tools to find and read provisions by date, trace the law behind each word, search text and changes, and check cases or briefs against law in force.

Repository stats unavailable
Files & Documentation
LoreKeeper MCP server
lorekeeper-rpg-lorekeeper-com•lore-keeper

Hosted MCP server for tabletop RPG worlds that organizes messy notes and documents into a private store and lets MCP apps search lore, read documents, find characters, and optionally generate character or world pictures.

Repository stats unavailable
Files & Documentation

An MCP server that gives AI assistants scoped file system operations inside a project directory, with read-only reference projects plus git and GitHub tools.

Repository stats unavailable
Files & Documentation