Skip to main content
Glama

digital-drive-mcp

一个模型上下文协议(MCP)服务器,让 AI 代理可以浏览和读取 Akij Resource Digital Management Google Drive 文件夹(公开链接)。使用 TypeScript + 官方 MCP SDK 构建,采用 Streamable HTTP 传输,可部署在 Vercel 上。

工具

工具

描述

list_team_folders

5 个团队成员子文件夹(名称 + 文件夹 ID)

list_folder

任何 Drive 文件夹中的文件/子文件夹(默认为根目录)

list_all_files

所有 5 个子文件夹中每个文件的扁平化列表

read_file

以文本形式读取文件内容(Google 文档/表格/幻灯片、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.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 服务账号 + 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.
      -