Skip to main content
Glama

MCP Filesystem Python

by mtunell

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.

.gitignore パターンを尊重しながら、指定されたディレクトリ内での読み取り専用アクセスとファイル検索機能を有効にする安全な MCP サーバー。

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

            Related MCP Servers

            • -
              security
              A
              license
              -
              quality
              This server offers secure, read-only access to directory files via the MCP, supporting file searching, .gitignore compliance, path traversal protection, and MIME type detection using the 'file://' URI scheme.
              Last updated -
              6
              MIT License
              • Apple
              • Linux
            • A
              security
              A
              license
              A
              quality
              An MCP server that provides access to project files and their contents, allowing users to retrieve file data from specified project directories with error handling and configuration options.
              Last updated -
              1
              4
              TypeScript
              MIT License
            • -
              security
              F
              license
              -
              quality
              An MCP server that allows Claude AI to perform filesystem operations including reading, writing, listing, moving files, and searching directories within specified allowed paths.
              Last updated -
              5
              1
              JavaScript
            • A
              security
              A
              license
              A
              quality
              An MCP server that provides tools for reading, writing, and editing files on the local filesystem.
              Last updated -
              1
              1,387
              Python
              Apache 2.0
              • 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/mtunell/mcp-filesystem-python'

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