MCP ファイルサーバー
標準化されたインターフェースを通じてファイル システム操作を提供するモデル コンテキスト プロトコル (MCP) サーバー実装。
概要
MCPファイルサーバーは、AIモデルが標準化されたAPIを介してローカルファイルシステム上でファイル操作を実行できるようにします。モデルコンテキストプロトコルSDKを使用して構築されており、ファイルの読み取り、作成、一覧表示のためのツールを提供します。
特徴
- ファイルの作成: 指定した内容で新しいファイルを作成します
- ファイルの読み取り: 既存のファイルの内容を読み取る
- ディレクトリの内容の一覧表示: 詳細情報を含むファイルとディレクトリの一覧表示
- パフォーマンス監視: エラー追跡とパフォーマンス監視のための組み込み Sentry 統合
インストール
使用法
MCP ファイル サーバーを起動します。
サーバーは、MCP プロトコルを使用して stdin/stdout を介して通信します。
利用可能なツール
ファイルを作成する
指定されたパスに指定されたコンテンツを含む新しいファイルを作成します。
パラメータ:
filePath
: ファイルを作成するパスcontent
: ファイルに書き込むコンテンツ
戻り値:
- ファイルパスとサイズ情報を含む成功メッセージ
ファイルの読み取り
指定されたパスにあるファイルの内容を読み取ります。
パラメータ:
filePath
: 読み取るファイルへのパス
戻り値:
- ファイルの内容
リストファイル
指定されたパスにあるファイルとディレクトリを一覧表示します。
パラメータ:
path
: 内容をリストするディレクトリパス
戻り値:
- ファイル名、サイズ、タイプを含むマークダウンテーブル
環境変数
SENTRY_DSN
: エラー追跡用の Sentry データ ソース名 (オプション)
依存関係
@modelcontextprotocol/sdk
: MCP SDK パッケージzod
: スキーマ検証@sentry/node
: エラー追跡とパフォーマンス監視
例
MCP プロトコルを通じてこれらのツールを呼び出す方法の例:
You must be authenticated.
local-only server
The server can only run on the client's local machine because it depends on local resources.
標準化されたモデル コンテキスト プロトコル インターフェースを介して、AI モデルがローカル ファイル システムでファイル システム操作 (ファイルの読み取り、作成、一覧表示) を実行できるようにします。
Related Resources
Related MCP Servers
- -securityFlicense-qualityA Model Context Protocol server that extends AI capabilities by providing file system access and management functionalities to Claude or other AI assistants.Last updated -3TypeScript
- -securityAlicense-qualityA comprehensive MCP (Model Context Protocol) server for file system operations, providing Claude and other AI assistants with access to local files and directories.Last updated -PythonMIT License
- -securityAlicense-qualityA secure Model Context Protocol server that provides controlled filesystem access within predefined directories, enabling AI models to perform file and directory operations with strict path validation.Last updated -267TypeScriptMIT License
- -securityAlicense-qualityEnables AI applications to interact with decentralized storage through a standardized Model Context Protocol interface, allowing file uploads, retrievals, and identity management.Last updated -7TypeScriptApache 2.0