Skip to main content
Glama
AlexanderVTr

Cursor MCP File Organizer

by AlexanderVTr

カーソルMCPファイルオーガナイザー

Cursor IDE を使用してダウンロード フォルダー内のファイルを整理するためのモデル コンテキスト プロトコル (MCP) サーバー。

特徴

  • ダウンロードフォルダ内のファイルを種類別に自動的に整理します

  • 複数のファイル カテゴリをサポートします:

    • 画像 (jpg、jpeg、png、gif、webp、svg など)

    • ドキュメント(pdf、doc、docx、txt など)

    • アーカイブ(zip、rar、7z、tar など)

    • コード ファイル (js、ts、py、java など)

    • メディア ファイル (mp4、mp3、wav など)

    • デザインファイル(psd、ai、スケッチなど)

    • データベース (sql、sqlite など)

    • フォント(ttf、otf、woff など)

  • 設定可能な組織ルール

  • リアルタイムファイルシステム監視

  • ライブアップデートのための SSE (Server-Sent Events) サポート

Related MCP server: Google Drive MCP Server

前提条件

  • Node.js (v14以上)

  • タイプスクリプト

  • カーソルIDE

インストール

  1. リポジトリをクローンします。

git clone https://github.com/AlexanderVTr/cursor-mcp-file-organizer.git
cd cursor-mcp-file-organizer
  1. 依存関係をインストールします:

npm install
  1. プロジェクトをビルドします。

npm run build

構成

  1. カーソル IDE MCP 設定を構成します。

{
  "mcpServers": {
    "file-organizer": {
      "url": "http://localhost:3001",
      "port": 3001,
      "enabled": true,
      "description": "File organization MCP server"
    }
  }
}
  1. mcp-config.jsonで組織ルールをカスタマイズします。

{
  "version": "1.0",
  "rules": {
    "downloads": {
      "path": "~/Downloads",
      "organizeBy": {
        "images": {
          "extensions": [".jpg", ".jpeg", ".png", ".gif", ".webp", ".svg"],
          "destination": "~/Downloads/Pictures"
        }
        // ... other categories
      }
    }
  }
}

使用法

  1. サーバーを起動します。

npm start
  1. カーソル IDE を使用してコマンドを送信します。

// Example command to organize files
{
  command: "organizeFiles",
  args: {
    path: "~/Downloads"
  }
}

利用可能なコマンド

  • listDir : ディレクトリの内容を一覧表示する

  • readFile : ファイルの内容を読み取る

  • writeFile : ファイルにコンテンツを書き込む

  • moveFile : ファイルを新しい場所に移動する

  • createDir : ディレクトリを作成する

  • organizeFiles : ファイルを種類別に整理する

発達

# Run in development mode with hot reload
npm run dev

# Build the project
npm run build

# Start the server
npm start

プロジェクト構造

cursor-mcp-file-organizer/
├── src/
│   ├── server.ts      # Main server implementation
│   └── organizer.ts   # File organization logic
├── dist/             # Compiled JavaScript
├── package.json      # Dependencies and scripts
├── tsconfig.json     # TypeScript configuration
└── mcp-config.json   # Organization rules

貢献

  1. リポジトリをフォークする

  2. 機能ブランチを作成します( git checkout -b feature/amazing-feature

  3. 変更をコミットします ( git commit -m 'Add some amazing feature' )

  4. ブランチにプッシュする ( git push origin feature/amazing-feature )

  5. プルリクエストを開く

ライセンス

このプロジェクトは MIT ライセンスに基づいてライセンスされています - 詳細については LICENSE ファイルを参照してください。

謝辞

  • MCPプロトコルのCursor IDEチーム

  • 優れたツールとライブラリを提供するNode.jsコミュニティ

-
security - not tested
F
license - not found
-
quality - not tested

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

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/AlexanderVTr/cursor-mcp-file-organizer'

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