Back to Home
domdomegg icon

google-drive-mcp

Verified Safe

by domdomegg

Overview

Facilitates AI systems to perform comprehensive file and folder management in Google Drive, including listing, searching, uploading, downloading, and managing comments and permissions, enabling workflows like content analysis, project scaffolding, and feedback synthesis.

Installation

Run Command
GOOGLE_CLIENT_ID='<YOUR_CLIENT_ID>' GOOGLE_CLIENT_SECRET='<YOUR_CLIENT_SECRET>' MCP_TRANSPORT=http npm start

Environment Variables

  • MCP_TRANSPORT
  • GOOGLE_CLIENT_ID
  • GOOGLE_CLIENT_SECRET
  • GOOGLE_ACCESS_TOKEN
  • PORT
  • MCP_BASE_URL

Security Notes

The server implements a robust OAuth proxy architecture to Google Drive API. It explicitly avoids holding tokens or state, relying on environment variables for Google OAuth credentials (`GOOGLE_CLIENT_ID`, `GOOGLE_CLIENT_SECRET`, `GOOGLE_ACCESS_TOKEN`). The `/authorize` and `/callback` endpoints securely handle redirects by encoding the client's `redirect_uri` within a base64url encoded `state` parameter, mitigating open redirect vulnerabilities. Token validation is performed using Google's `tokeninfo` endpoint and a cache, improving efficiency and preventing processing requests with expired tokens. No `eval`, code obfuscation, or obvious malicious patterns were found in the provided source. The broad `drive` scope is a user configuration choice rather than an inherent server vulnerability.

Similar Servers

Stats

Interest Score30
Security Score9
Cost ClassMedium
Avg Tokens5000
Stars2
Forks1
Last Update2026-01-07

Tags

Google DriveFile ManagementCloud StorageOAuth ProxyAPI Integration