Skip to main content
Glama

MCP Filesystem Python

MIT License
19
  • Apple
  • Linux

MCP ファイルシステム Python

指定されたディレクトリ内のファイルへの安全な読み取り専用アクセスを提供するモデル コンテキスト プロトコル (MCP) サーバー。

特徴

  • `file://` URI スキームを使用してファイルを MCP リソースとして公開します
  • MCPツールを通じてファイル検索機能を提供する
  • .gitignore パターンを尊重
  • パストラバーサル保護を含むセキュリティ機能
  • MIMEタイプの検出

インストール

UVの使用:

uv add mcp-filesystem-python

使用法

サーバーを実行します。

uv run src/filesystem/server.py /path/to/directory

クロードデスクトップ統合

設定例

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`

必ず次の点に注意してください:

  1. パスを実際のパスに置き換えます
  2. macOS/Linuxの場合はスラッシュ(`/`)、Windowsの場合はバックスラッシュ(`\\`)を使用します
  3. 絶対パスを使用する(相対パスではない)

発達

  1. リポジトリをクローンする
  2. 仮想環境の作成と要件の同期、 uv sync

ライセンス

マサチューセッツ工科大学

-
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.

このサーバーは、MCP を介してディレクトリ ファイルへの安全な読み取り専用アクセスを提供し、ファイル検索、.gitignore 準拠、パス トラバーサル保護、および 'file://' URI スキームを使用した MIME タイプ検出をサポートします。

  1. 特徴
    1. インストール
      1. 使用法
        1. クロードデスクトップ統合
          1. 設定例
        2. 発達
          1. ライセンス

            Related MCP Servers

            • -
              security
              A
              license
              -
              quality
              A secure MCP server enabling read-only access and file search capabilities within a specified directory, while respecting .gitignore patterns.
              Last updated -
              Python
              MIT License
              • Apple
              • Linux
            • -
              security
              F
              license
              -
              quality
              This 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.
              Last updated -
              4
              JavaScript
            • A
              security
              A
              license
              A
              quality
              An MCP server that enables secure terminal command execution, directory navigation, and file system operations through a standardized interface for LLMs.
              Last updated -
              10
              58
              Python
              MIT License
              • Apple
            • A
              security
              F
              license
              A
              quality
              A MCP server that allows searching for files in the filesystem based on path fragments, returning file metadata including name, path, size, and creation date.
              Last updated -
              1
              Python
              • Apple

            View all related MCP servers

            MCP directory API

            We provide all the information about MCP servers via our MCP API.

            curl -X GET 'https://glama.ai/api/mcp/v1/servers/punkpeye/mcp-filesystem-python'

            If you have feedback or need assistance with the MCP directory API, please join our Discord server