Skip to main content
Glama

ORCA Drive MCP

一个通过 Streamable HTTP 暴露 Google Drive 文件夹的模型上下文协议 (MCP) 服务器,部署为 Vercel 无服务器函数。

它通过一个小型 Google Apps Script Web 应用读取 Google Drive,因此无需 Google Cloud Console 或服务账号。

工具

工具

描述

list_files

列出文件夹中的文件(默认为 DRIVE_FOLDER_ID)

search_files

按名称子字符串搜索文件

get_file

按 ID 获取单个文件的元数据

read_file

读取文件的文本内容(JSON、CSV、TXT 等)

Related MCP server: mcp-server-drive

1. 创建 Apps Script 后端

  1. 前往 https://script.google.com 并创建一个新项目。

  2. 删除占位代码并粘贴 apps-script.js 的内容。

  3. 点击部署 > 新部署:

    • 类型:Web 应用

    • 以身份执行:我

    • 谁可以访问:任何人

  4. 点击部署,授权脚本(允许其访问您的 Drive)。

  5. 复制以 /exec 结尾的 Web 应用 URL(例如 https://script.google.com/macros/s/AKfycb.../exec)。

在浏览器中打开一次 /exec URL 并授权,以便脚本可以访问您的 Drive 文件。

2. 配置环境变量

将 .env.example 复制为 .env(本地开发)并在 Vercel 中设置相同的值(项目 > 设置 > 环境变量):

变量

描述

APPS_SCRIPT_URL

步骤 1 中的 Apps Script /exec URL

DRIVE_FOLDER_ID

要列出的默认文件夹 ID

3. 本地运行

npm install
vercel dev

使用 MCP Inspector 测试:

npx @modelcontextprotocol/inspector

使用传输方式 Streamable HTTP 和 URL http://localhost:3000/。

4. 部署到 Vercel

vercel --prod

您的端点将是 https://<project>.vercel.app/。

5. 连接客户端

Claude Desktop(claude_desktop_config.json):

{
  "mcpServers": {
    "orca-drive": {
      "type": "http",
      "url": "https://<project>.vercel.app/"
    }
  }
}

Related MCP Connectors

Related MCP Servers

  • F
    license
    Not graded
    quality
    C
    maintenance
    A read-only Google Drive MCP server that allows searching files, reading file content (with auto-export for Google Docs, Sheets, Slides), and retrieving file metadata via OAuth authentication.
    13 npm
    2
    -
  • 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.
    -