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
Provides a comprehensive Model Context Protocol (MCP) server that enables AI assistants to programmatically interact with Google Docs (reading, writing, formatting, structuring) and manage Google Drive files (discovery, folder management, file operations, document creation).
mcp-gsheets
Integrate Google Sheets API for reading, writing, and managing spreadsheets directly from Model Context Protocol (MCP) clients.
filesystem-mcp
Provides secure, efficient, and token-optimized filesystem operations for AI agents via the Model Context Protocol.
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.