MCP ファイルシステム Python
指定されたディレクトリ内のファイルへの安全な読み取り専用アクセスを提供するモデル コンテキスト プロトコル (MCP) サーバー。
特徴
`file://` URI スキームを使用してファイルを MCP リソースとして公開します
MCPツールを通じてファイル検索機能を提供する
.gitignore パターンを尊重
パストラバーサル保護を含むセキュリティ機能
MIMEタイプの検出
インストール
UVの使用:
使用法
サーバーを実行します。
クロードデスクトップ統合
設定例
Claude Desktop の設定例は `examples` ディレクトリにあります。
`examples/claude_desktop_config.json`: macOS/Linux の例
`examples/claude_desktop_config_windows.json`: Windows の例
これらのファイルは次の場所に配置する必要があります。
macOS: `~/ライブラリ/アプリケーションサポート/Claude/claude_desktop_config.json`
Windows: `%AppData%\Claude\claude_desktop_config.json`
必ず次の点に注意してください:
パスを実際のパスに置き換えます
macOS/Linuxの場合はスラッシュ(`/`)、Windowsの場合はバックスラッシュ(`\\`)を使用します
絶対パスを使用する(相対パスではない)
発達
リポジトリをクローンする
仮想環境の作成と要件の同期、
uv sync
ライセンス
This server cannot be installed
local-only server
The server can only run on the client's local machine because it depends on local resources.
このサーバーは、MCP を介してディレクトリ ファイルへの安全な読み取り専用アクセスを提供し、ファイル検索、.gitignore 準拠、パス トラバーサル保護、および 'file://' URI スキームを使用した MIME タイプ検出をサポートします。
Related Resources
Related MCP Servers
- -security-license-qualityThis MCP server integrates with Google Drive to allow listing, reading, and searching over files.Last updated -63471,513MIT License
- -security-license-qualityA secure MCP server enabling read-only access and file search capabilities within a specified directory, while respecting .gitignore patterns.Last updated -MIT License
- -security-license-qualityThis MCP server enforces pre-read checks and detailed commit documentation to prevent unauthorized file modifications, ensuring write and diff operations are preceded by explicit reads.
- Asecurity-licenseAqualityAn MCP server that enables secure terminal command execution, directory navigation, and file system operations through a standardized interface for LLMs.Last updated -1084MIT License