digital-drive-mcp
digital-drive-mcp
AIエージェントが Akij Resource Digital Management のGoogle Driveフォルダー(公開リンク)を閲覧・読み取りできるようにするModel Context Protocol (MCP)サーバーです。TypeScript + 公式MCP SDK、Streamable HTTPトランスポートで構築され、Vercelにデプロイできます。
ツール
ツール | 説明 |
| 5つのチームメンバーサブフォルダー(名前 + フォルダーID) |
| 任意のDriveフォルダー内のファイル/サブフォルダー(デフォルトはルート) |
| 5つのサブフォルダーすべてにわたる全ファイルのフラットなリスト |
| ファイルの内容をテキストとして読み取る(Google Docs/Sheets/Slides、Word/Excel/PPT、markdown/HTML) |
| ファイルの直接ダウンロードURL |
Related MCP server: gdrive-mcp-server
ファイルの読み取り方法(認証情報不要)
フォルダーは公開(「リンクを知っている全員」)なので、サーバーはGoogleの公開エンドポイントを使用します:
一覧表示 —
drive.google.com/drive/folders/<id>をスクレイピングし、埋め込まれた_DRIVE_ivdJSONを解析します。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
Your org's AI agents, tasks, runs, search, and brain files as MCP tools and resources.
Read-only MCP tools for AI agent discovery, structured resources, and NIULAI information.
Browse and manage files in your Moxt AI workspace from any MCP client.
OCR, transcription, file extraction, and image generation for AI agents via MCP.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI assistants to securely access and manage Google Drive files and Google Sheets within a specified folder scope, with support for reading various file types including PDFs and Excel.79 npm1MIT
- FlicenseNot gradedqualityDmaintenanceEnables 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.-
- FlicenseNot gradedqualityDmaintenanceEnables LLM agents to list Google Drive files, read/write Google Sheets, and query external REST APIs through MCP tools.-
- FlicenseNot gradedqualityDmaintenanceEnables 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.-