Skip to main content
Glama

digital-drive-mcp

AIエージェントが Akij Resource Digital Management のGoogle Driveフォルダー(公開リンク)を閲覧・読み取りできるようにするModel Context Protocol (MCP)サーバーです。TypeScript + 公式MCP SDK、Streamable HTTPトランスポートで構築され、Vercelにデプロイできます。

ツール

ツール

説明

list_team_folders

5つのチームメンバーサブフォルダー(名前 + フォルダーID)

list_folder

任意のDriveフォルダー内のファイル/サブフォルダー(デフォルトはルート)

list_all_files

5つのサブフォルダーすべてにわたる全ファイルのフラットなリスト

read_file

ファイルの内容をテキストとして読み取る(Google Docs/Sheets/Slides、Word/Excel/PPT、markdown/HTML)

download_url

ファイルの直接ダウンロードURL

Related MCP server: gdrive-mcp-server

ファイルの読み取り方法(認証情報不要)

フォルダーは公開(「リンクを知っている全員」)なので、サーバーはGoogleの公開エンドポイントを使用します:

  • 一覧表示 — drive.google.com/drive/folders/<id> をスクレイピングし、埋め込まれた _DRIVE_ivd JSONを解析します。

  • Google Docs/Sheets/Slides — docs.google.com/.../export?format=txt|csv でエクスポートします。

  • Officeファイル(.xlsx/.docx/.pptx) — ダウンロードして fflate でメモリ内で解析します(ZIP + XML → テキスト)。

  • テキスト/HTML/Markdown — ダウンロードしてそのまま返します。

ローカル開発

npm install
npm run dev        # HTTP server on http://localhost:3000/mcp
# or
npm run stdio

デプロイ

vercel --prod
# endpoint: https://<project>.vercel.app/api/mcp

接続

{
  "mcp": {
    "digital-drive-mcp": {
      "type": "remote",
      "url": "https://<project>.vercel.app/api/mcp",
      "enabled": true
    }
  }
}

Driveフォルダーが非公開にされた場合、一覧表示/読み取りは失敗します — Google Service Account + Drive APIに切り替えるか、フォルダーを共有したままにしてください。

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables MCP-compatible AI assistants to interact with a user's Google Drive, including listing, searching, reading, creating, updating, and deleting files, with authentication via Google OAuth.
      -
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables LLM agents to list Google Drive files, read/write Google Sheets, and query external REST APIs through MCP tools.
      -
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables interacting with Google Drive folders through an MCP server, allowing listing, searching, and reading files using tools like list_files, search_files, get_file, and read_file.
      -