Skip to main content
Glama

MCP Filesystem Python

MIT License
6
  • 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 6 months ago
              Python
              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 6 months ago
              1
              4
              TypeScript
              MIT License
            • A
              security
              A
              license
              A
              quality
              A Node.js server that allows browsing Git repositories through MCP, providing tools to view directory structures and read important files from repositories.
              Last updated 5 months ago
              2
              JavaScript
              MIT License
              • Linux
              • Apple
            • -
              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 4 months ago
              5
              1
              JavaScript

            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