:bookmark: について
**MCPファイルシステムサーバーは、**モデルコンテキストプロトコルを通じてAIモデルに安全なファイルシステムアクセスを提供します。厳格なパス検証を実施し、事前定義されたディレクトリへのアクセスのみを許可します。
:コンピュータ: テクノロジー
:wrench: ツール
:package: インストール
:heavy_check_mark:前提条件
次のソフトウェアをインストールする必要があります:
Node.js (>=18.0.0)
pnpm (>=8.0.0)
Docker (オプション)
Docker Compose (オプション)
:arrow_down:リポジトリのクローン
:arrow_forward:アプリケーションの実行
地域開発
NPMパッケージの使用
Dockerの使用
Docker Composeの使用
:gear: 使用方法
Claude Desktopでの使用
Claude Desktop は、ファイルシステムへのアクセスにこの MCP サーバーclaude_desktop_config.json使用するように設定できます。claude_desktop_config.json に以下の行を追加してください。
ローカルインストールの使用(推奨)
実行可能ファイルがグローバルに利用できるようにしてください。
NPXの使用
Dockerの使用
注: Docker ro使用する場合、すべてのディレクトリはデフォルトで/projectsにマウントされる必要があります。roフラグを追加すると、ディレクトリは読み取り専用になります。
利用可能なツール
MCP ファイルシステム サーバーは次のツールを提供します。
ファイルシステム操作
read_file : ファイルの内容を読み取る
read_multiple_files : 複数のファイルを一度に読み取る
write_file : ファイルを作成または上書きする
edit_file : 差分プレビューで正確な編集を行う
create_directory : ディレクトリを再帰的に作成する
list_directory : ディレクトリの内容を一覧表示する
directory_tree : 再帰ツリービューを取得する
move_file : ファイルを移動または名前変更する
search_files : パターンに一致するファイルを検索する
get_file_info : ファイルのメタデータを取得する
list_allowed_directories : アクセス可能なディレクトリを表示する
システムおよびネットワーク運用
get_metrics : サーバーのパフォーマンスメトリックを表示する (v0.3.0+)
execute_command : システムコマンドを安全に実行する (v0.3.1+)
curl_request : 外部 API への HTTP リクエストを実行する (v1.2.0 で導入予定)
curl_request ツールの使用 (v1.2.0 で登場)
curl_requestツールを使用すると、外部 API に HTTP リクエストを送信できます。
より詳細な例については、 docs/curl-tool-examples.mdファイルを参照してください。
:sparkles: 機能
コア機能
セキュアアクセス: 厳格なパス検証により不正アクセスを防止
ファイル操作: ファイルの読み取り、書き込み、編集、移動
ディレクトリ操作: ディレクトリの作成、一覧表示、ツリービューの取得、検索
メタデータ アクセス: ファイルとディレクトリの情報を表示する
コマンド実行: 厳格な検証によりシステムコマンドを安全に実行
Docker サポート: Docker と Docker Compose による簡単なデプロイ
v0.3.0の新機能
構造化ログ: さまざまなレベル (デバッグ、情報、警告、エラー) での詳細なログ記録
パフォーマンス メトリック: 操作数、エラー、実行時間を追跡します
構成管理: JSON 構成ファイルのサポート
パスキャッシュ: 頻繁にアクセスされるパスのパフォーマンスが向上
エラー処理の改善: 構造化された情報を持つ特殊なエラータイプ
ファイルサイズ検証: 過度に大きなファイルの読み込みを防止
CLI の改善: ヘルプ コマンド、バージョン情報、構成生成
設定オプション
次のようにして構成ファイルを作成できます。
構成例:
:writing_hand:著者
ライセンス
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
Tools
事前定義されたディレクトリ内で制御されたファイルシステム アクセスを提供する安全なモデル コンテキスト プロトコル サーバー。これにより、AI モデルは厳密なパス検証を使用してファイルおよびディレクトリ操作を実行できます。
Related MCP Servers
- -security-license-qualityA Model Context Protocol (MCP) server that allows AI models to safely access and interact with local file systems, enabling reading file contents, listing directories, and retrieving file metadata.Last updated -610MIT License
- Asecurity-licenseAqualityA Model Context Protocol server that provides secure and intelligent interaction with files and filesystems, offering smart context management and token-efficient operations for working with large files and complex directory structures.Last updated -2148MIT License
- -security-license-qualityA redesigned Model Context Protocol server that enables AI models to access filesystems through privacy-preserving path aliases with an optimized 6-function API interface.Last updated -1MIT License
- Asecurity-licenseAqualityA server implementing the Model Context Protocol that provides filesystem operations (read/write, directory management, file movement) through a standardized interface with security controls for allowed directories.Last updated -93MIT License