google-drive-mcp
Verified Safeby piotr-agier
Overview
Provides an MCP server for secure integration and file management with Google Drive, Docs, Sheets, and Slides for AI clients.
Installation
npx @piotr-agier/google-drive-mcpEnvironment Variables
- GOOGLE_DRIVE_OAUTH_CREDENTIALS
- GOOGLE_DRIVE_MCP_TOKEN_PATH
- DEBUG
Security Notes
The server implements robust security measures including strong input validation (Zod schemas) for all tool arguments, secure OAuth 2.0 authentication (Desktop app type), and storage of tokens with restrictive file permissions (0600) in an XDG-compliant location. It avoids hardcoded secrets and uses reputable Google API client libraries. The OAuth flow runs on a local Express server on localhost, which gracefully shuts down after successful authentication, minimizing network attack surface. Comprehensive logging and error handling are present. The project structure and clear code facilitate auditability.
Similar Servers
google-docs-mcp
Allows AI assistants to programmatically interact with Google Docs, Sheets, and Drive for document management, editing, formatting, and file organization.
mcp-gsheets
A Model Context Protocol (MCP) server for Google Sheets API integration, enabling reading, writing, and managing Google Sheets documents directly from MCP clients like Claude Code, Claude Desktop, or Cursor.
mcp-server-google-workspace
Provides programmatic control over Google Workspace applications (Sheets, Docs, Drive, Gmail, Calendar, Slides) through a Model Context Protocol (MCP) server for AI automation.
Google-Workspace-MCP
Seamlessly integrates Google Drive, Sheets, and Docs with Claude AI and other AI agents through the Model Context Protocol (MCP) for automation.