MCP.so
ログイン

MCP Server - File Search Tool

@RJTPP

基本情報

カテゴリ

検索

ライセンス

MIT license

トランスポート

stdio

作者

RJTPP

MCP Server - File Search Tool について

A Model Context Protocol (MCP) server for searching file content with regex across various file types

MCP Server - File Search Tool の設定

以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。

{
  "mcpServers": {
    "mcp-server-file-search-tool": {
      "command": "uv",
      "args": [
        "sync"
      ]
    }
  }
}

MCP Server - File Search Tool のツール

ツール一覧はまだありません

この掲載には表示できるツール一覧がまだありません。サーバーにツールがないという意味ではありません。対応機能はプロジェクトのドキュメントをご確認ください。

ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。

概要

What is MCP Server - File Search Tool 🗂️?

An MCP (Model Context Protocol) server that provides powerful file system search and inspection capabilities via the MCP protocol. It allows users to list directories, search file names, read file contents (including PDF and DOCX), and perform regex‑based content searches with context. Designed for local, personal use.

How to use MCP Server - File Search Tool 🗂️?

After installing Python 3.10+ and uv, clone the repository, run uv sync to install dependencies, then start the server with uv run server.py (default port 6277). Configuration is done via config.json, where ALLOWED_PATHS is required. Can be integrated into Claude Desktop using the mcp install command or by manually editing claude_desktop_config.json.

Key features of MCP Server - File Search Tool 🗂️

  • 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 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.

Use cases of MCP Server - File Search Tool 🗂️

  • Quickly locate files by name or content within allowed project directories.
  • Inspect text, PDF, and DOCX documents from an MCP‑compatible client.
  • Perform regex‑based code or log searches with surrounding context lines.
  • Enable AI assistants to retrieve files only from approved, sandboxed folders.

よくある質問

1

What are the runtime requirements?

Python 3.10 or higher and the `uv` package manager are required.

2

Does the server support authentication or encryption?

No. The README explicitly warns that it does not implement authentication or encryption and is designed for local, personal use only.

3

How do I restrict which directories the server can access?

Set the required `ALLOWED_PATHS` in `config.json`. Optionally, set `EXCLUDE_PATHS` to block specific directories, even if inside allowed paths.

4

What file formats can the server read?

It can read plain text files, PDF files, and DOCX files.

5

Can I hide hidden files (dot‑prefix)?

Yes. Set `HIDE_HIDDEN_FILES` to `true` in the configuration to ignore files and directories starting with `.`.

コメント

「検索」の他のコンテンツ