Readonly Filesystem MCP Server

Integrations

  • Implemented as a Node.js server supporting readonly filesystem operations including reading files, directory listing, file searching, and metadata retrieval.

読み取り専用ファイルシステム MCP サーバー

読み取り専用ファイルシステム操作用のモデルコンテキストプロトコル(MCP)を実装したNode.jsサーバー。modelcontextprotocol /server-filesystemからのクローンです。

特徴

  • ファイルを読む
  • ディレクトリの一覧
  • ファイルを検索
  • ファイルのメタデータを取得する

注意: サーバーは、 argsで指定されたディレクトリ内でのみ操作を許可します。

API

リソース

  • file://system : ファイルシステム操作インターフェース

ツール

  • 読み取りファイル
    • ファイルの完全な内容を読み取る
    • 入力:
      • path (文字列): 読み取るファイルパス
      • from (数値): オプション。読み取り開始行番号。デフォルトは0です。
      • to (数値): オプション。終了行番号。設定されていない場合は、ファイルの末尾まで読み取ります。
    • UTF-8エンコードでファイルの内容(全体または一部)を読み取ります
  • 複数のファイルを読み取る
    • 複数のファイルを同時に読み取る
    • 入力: paths (文字列[])
    • 読み取りに失敗しても操作全体が停止することはない
  • リストディレクトリ
    • [FILE]または[DIR]プレフィックスを持つディレクトリの内容を一覧表示します
    • 入力: path (文字列)
  • 検索ファイル
    • ファイル/ディレクトリを再帰的に検索する
    • 入力:
      • path (文字列): 開始ディレクトリ
      • pattern (文字列): 検索パターン
      • excludePatterns (string[]): パターンを除外します。glob形式がサポートされています。
    • 大文字と小文字を区別しないマッチング
    • 一致するフルパスを返します
  • ファイル情報を取得する
    • 詳細なファイル/ディレクトリのメタデータを取得する
    • 入力: path (文字列)
    • 戻り値:
      • サイズ
      • 作成時間
      • 修正時間
      • アクセス時間
      • タイプ(ファイル/ディレクトリ)
      • 権限
  • 許可されたディレクトリの一覧
    • サーバーがアクセスを許可されているすべてのディレクトリを一覧表示します
    • 入力不要
    • 戻り値:
      • このサーバーが読み取り/書き込みできるディレクトリ

Claude Desktopでの使用

これをclaude_desktop_config.jsonに追加します:

注: サンドボックス化されたディレクトリを/projectsにマウントすることで、サーバーに提供できます。ro フラグro追加すると、ディレクトリはサーバーによって読み取り専用になります。

NPX

{ "mcpServers": { "filesystem": { "command": "npx", "args": [ "-y", "@danielsuguimoto/readonly-server-filesystem", "/Users/username/Desktop", "/path/to/other/allowed/dir" ] } } }

ライセンス

このMCPサーバーはMITライセンスに基づいてライセンスされています。つまり、MITライセンスの条件に従って、ソフトウェアを自由に使用、改変、配布することができます。詳細については、プロジェクトリポジトリのLICENSEファイルをご覧ください。

-
security - not tested
A
license - permissive license
-
quality - not tested

local-only server

The server can only run on the client's local machine because it depends on local resources.

安全な読み取り専用ファイルシステム操作のためのモデルコンテキストプロトコルを実装した Node.js サーバー。これにより、Claude はファイルの読み取り、ディレクトリの一覧表示、ファイルの検索、指定されたディレクトリ内のファイルメタデータの取得を行うことができます。

  1. 特徴
    1. API
      1. リソース
      2. ツール
    2. Claude Desktopでの使用
      1. NPX
    3. ライセンス

      Related MCP Servers

      • -
        security
        A
        license
        -
        quality
        Node.js server implementing Model Context Protocol (MCP) for filesystem operations.
        Last updated -
        24,780
        44,603
        JavaScript
        MIT License
        • Linux
        • Apple
      • -
        security
        F
        license
        -
        quality
        Node.js server implementing Model Context Protocol for filesystem operations, allowing Claude to read, write, and manipulate files and directories in specified locations.
        Last updated -
        24,780
        JavaScript
      • A
        security
        A
        license
        A
        quality
        A Node.js implementation of the Model Context Protocol that provides secure shell command execution capabilities, allowing AI models like Claude to run shell commands in a controlled environment with built-in security measures.
        Last updated -
        1
        110
        25
        JavaScript
        MIT License
        • Apple
      • -
        security
        A
        license
        -
        quality
        Node.js server implementing Model Context Protocol that enables seamless interaction between Windows and Linux distributions under WSL, allowing file operations like reading, writing, searching, and managing files across the WSL filesystem from Windows.
        Last updated -
        49
        1
        JavaScript
        MIT License

      View all related MCP servers

      ID: b03yztjzhk