modelcontextprotocol/server-google-drive logo

modelcontextprotocol/server-google-drive

Free

官方参考实现,集成 Google Drive,用于列出、读取和搜索文件。

FreeFree tier
Type
Open Source

About modelcontextprotocol/server-google-drive

This MCP (Model Context Protocol) server integrates with Google Drive, enabling AI assistants to list, read, and search over files. It provides a search tool (accepting a query string, returning file names and MIME types) and file resources accessible via gdrive:///file_id. All file types are supported; Google Workspace files (Docs, Sheets, Presentations, Drawings) are automatically exported to Markdown, CSV, Plain text, or PNG respectively. Other files are provided in their native format. Authentication uses OAuth 2.0 with Google Drive read-only scope. The server can be run via Docker or NPX, and is configured as an MCP server for use with desktop apps or VS Code. This repository is archived (read-only as of May 2025).

Key Features

Search tool: query Google Drive and return file names and MIME types
File resources accessible via gdrive:/// URI scheme
Automatic export of Google Workspace files (Docs→Markdown, Sheets→CSV, Presentations→Plain text, Drawings→PNG)
Supports all file types in their native format
OAuth 2.0 authentication with Google Drive read-only scope
Runs via Docker or NPX for easy integration
Configurable as MCP server for desktop app or VS Code

Pros & Cons

Pros
  • Open source and free to use
  • Supports all Google Drive file types with automatic conversion
  • Simple setup via Docker or NPX with clear documentation
  • Uses OAuth for secure, read-only access
Cons
  • Repository is archived and no longer actively maintained
  • Requires manual Google Cloud project setup and OAuth configuration
  • Only supports read-only scope (no write/modify operations)

Best For

Enable AI assistants to list and search files in Google DriveRead and retrieve content from Google Docs, Sheets, and other files programmaticallyIntegrate Google Drive file access into MCP-compatible desktop clients or VS Code

FAQ

What file types are supported?
All file types are supported. Google Workspace files (Docs, Sheets, Presentations, Drawings) are automatically exported to Markdown, CSV, Plain text, or PNG respectively. Other files are provided in their native format.
How do I authenticate with Google Drive?
You need to create a Google Cloud project, enable the Google Drive API, configure an OAuth consent screen, create an OAuth Client ID for Desktop App, and download the JSON key file. Then run `node ./dist auth` to complete the OAuth flow, which saves credentials for future use.
Can I use this server with Docker?
Yes. First authenticate using a Docker command that mounts your OAuth keys file, then configure your MCP client to use the docker run command with the credentials volume.
Is this server still maintained?
The repository was archived by the owner on May 29, 2025, and is now read-only. No further updates are expected.