@enterpret/google-drive-mcp

中文文档
0.3.4发布于 2026/10/27MITES Module构建来源已验证近 30 天下载 2428

Enterpret-managed Google Drive MCP for drive.file-authorized content, based on piotr-agier/google-drive-mcp

原始使用文档

@enterpret/google-drive-mcp

Enterpret's stdio-only Google Drive MCP for app-authorized content in one marked Enterpret folder and resources directly authorized through the host's Google Picker flow. V1 covers My Drive and items shared directly with the connected user when Google exposes them to the active drive.file bearer after Picker selection or app creation. Shared Drive product support is outside the validated and supported V1 scope. This package is a constrained additive build of piotr-agier/google-drive-mcp and uses only the OAuth scope https://www.googleapis.com/auth/drive.file.

Source and issue tracking live in aavaz-ai/google-drive-mcp. The original upstream documentation is preserved separately so npm users see the narrower Enterpret contract on this page.

Runtime contract

The host must run Node.js 22.13.0 or later and supply one short-lived access token:

GOOGLE_DRIVE_OAUTH_BEARER='access-token' npx @enterpret/google-drive-mcp

The executable accepts only stdio startup, --help, and --version. It does not implement the Picker UI itself, browser OAuth, token refresh or persistence, HTTP/team/service-account modes, multiple accounts, Calendar, raw Drive queries, binary/local/base64 transfer, public/domain sharing, ownership transfer, or permanent deletion.

The server exposes exactly 27 tools for creation, authorized and workspace-only discovery, bounded reads and updates, organization, reversible trash/restore, and restricted permission management. Every caller-supplied item or parent ID is re-fetched through files.get; successful resources are classified in memory as workspace descendants or directly authorized resources. External folders are metadata and destination-only. Google Docs reads include all tabs and nested tabs in document order, with labels for multi-tab documents and bounded pagination using next_offset. Whole-content replacements remain single-tab only; multi-tab updates are rejected. Google Sheets reads and updates require an explicit bounded A1 cell or rectangular range. Sheet reads preserve Google's sparse row arrays without padding, so trailing empty rows and cells may be omitted and returned row lengths may differ; create and update values remain rectangular.

Writes are dispatched once. If a dispatched write cannot be proven complete, the tool returns WRITE_UNKNOWN_OUTCOME; callers must not replay it automatically. Provider bodies, bearer values, file contents, and recipients are not included in errors or logs.

Reading file contents

File formatReaderOutput
Native Google Docsread_google_docText across tabs and nested tabs
Native Google Sheetsread_google_sheetValues in an explicit bounded range
Native Google Slidesread_google_presentationSlide text
TXT, Markdown, CSVread_text_fileUTF-8 text
PDF, DOCX, XLSX, PPTX, ODT, ODS, ODP, RTFread_text_fileExtracted text, not a layout-preserving rendering

File selection and canDownload permission are required before reading. Listing a file does not prove its contents are readable. Binary documents have a 10 MiB download limit, a 100,000-character extracted-text limit, and bounded complexity and parsing time. Use next_offset to page through the extracted text; each page rechecks authorization. Larger documents fail explicitly rather than silently returning only their beginning.

Scanned/image-only PDFs, image interpretation, audio/video, archives, legacy .doc/.xls/.ppt, and password-protected documents are not supported. Images, charts, formulas' calculation logic, and visual layout are not reproduced by text extraction. No OCR, remote conversion service, broader OAuth scope, or file conversion write is performed. Native Sheets/Slides behavior is unchanged by binary-document support.

See ENTERPRET.md for the complete managed contract and README_UPSTREAM.md for the preserved upstream documentation. Third-party provenance is recorded in THIRD_PARTY_NOTICES.md.

版本与发布记录

@enterpret/google-drive-mcp 共发布 6 个版本,首次发布于 2026/07/22;过去 12 个月发布了 6 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
0.3.4latest2026/10/2717 天前
0.3.32026/10/2222 天前
0.3.22026/10/2222 天前
0.3.12026/07/293 个月前
0.3.02026/07/233 个月前
0.2.02026/07/223 个月前

关于 @enterpret/google-drive-mcp 的常见问题

@enterpret/google-drive-mcp 是什么?

Enterpret-managed Google Drive MCP for drive.file-authorized content, based on piotr-agier/google-drive-mcp

如何安装 @enterpret/google-drive-mcp?

在项目目录运行 npm install @enterpret/google-drive-mcp,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 google-drive-mcp,可以用 npx google-drive-mcp 直接运行。

@enterpret/google-drive-mcp 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/enterpret__google-drive-mcp 是否存在。

@enterpret/google-drive-mcp 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@enterpret/google-drive-mcp 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=22.13.0。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@enterpret/google-drive-mcp 可以商用吗?

@enterpret/google-drive-mcp 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@enterpret/google-drive-mcp 的下载量有多少?

根据 npm 官方下载统计,@enterpret/google-drive-mcp 在 2026/10/14 – 2026/11/12 这 30 天内被下载 2,428 次,日均约 81 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@enterpret/google-drive-mcp 还在维护吗?

最新版本 0.3.4 发布于 2026/10/27(17 天前);至今共发布 6 个版本,其中过去 12 个月发布了 6 个;首次发布于 2026/07/22。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。