Back to Home
piotr-agier icon

google-drive-mcp

Verified Safe

by piotr-agier

Overview

Provides an MCP server for secure integration and file management with Google Drive, Docs, Sheets, and Slides for AI clients.

Installation

Run Command
npx @piotr-agier/google-drive-mcp

Environment 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

Stats

Interest Score38
Security Score9
Cost ClassMedium
Avg Tokens1000
Stars11
Forks9
Last Update2025-12-06

Tags

Google DriveMCPFile ManagementDocument AutomationAI Integration