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 プロトコルを通じてこれらのツールを呼び出す方法の例:
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
- -securityAlicense-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 -139JavaScriptMIT License
- -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 -2966TypeScript
- -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 -10TypeScriptApache 2.0
- AsecurityAlicenseAqualityA Model Context Protocol server that provides AI agents with secure access to local filesystem operations, enabling reading, writing, and managing files through a standardized interface.Last updated -1043615TypeScriptApache 2.0
Appeared in Searches
- Tools to Enhance Cursor AI Performance
- MCP servers to enhance agent-based medical project performance
- How to organize or locate my project file
- Developing and redeveloping web frontend and Python backend projects, including frontend-backend integration and debugging
- A system or tool for reading, writing, and interacting with local storage