Google Drive MCP Server Configuration & Usage Guide
Installationnpx
Risk LevelMedium Risk
API KeyRequired
Clients2 supported
Google Drive 文件访问,支持搜索、读取和管理云端文件
Supported Clients
- Claude Desktop
- Cursor
Installation Command
npx -y @modelcontextprotocol/server-gdriveConfiguration Example
{
"mcpServers": {
"google-drive": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-gdrive"
],
"env": {
"GOOGLE_CLIENT_ID": "<your-client-id>",
"GOOGLE_CLIENT_SECRET": "<your-client-secret>"
}
}
}
}Environment variable required:GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET。Do not commit these values to public repositories.
Permission Scope & Security Notes
通过 OAuth 访问 Google Drive 文件,Required Google Cloud 项目凭据
- network-access
- credential-required
- file-read
Risk Score:4/10
Common Errors
- OAuth 认证失败
- 确认 Client ID 和 Secret 正确,且已启用 Drive API
- 权限不足
- OAuth 授权时确认勾选了 Drive 文件访问权限
Sources
Recently Verified:2026-05-18。Client versions and configuration formats may change. Please refer to official documentation before use.