@renzo.johnson/google-drive-mcp
v26.11.15
Published
Google Drive MCP server for Claude Code, Cursor and any MCP client. List, search, share and organize Google Drive files. mcprush.com-b208c35095d7271e2b66ec8c
Downloads
589
Maintainers
Readme
Google Drive MCP
Google Drive MCP server for Claude Code, Cursor and any MCP client. List, search, share and organize Google Drive files.
npx -y @renzo.johnson/google-drive-mcpThe server speaks MCP over stdio. It needs Node.js 22 or newer. Prefer VS Code? Install the Google Drive MCP extension: it signs you in with a wizard and registers the server with 8 AI agents.
Sign in
The server uses the first credential it finds:
- An OAuth user: set
GOOGLE_OAUTH_CLIENT_ID,GOOGLE_OAUTH_CLIENT_SECRETandGOOGLE_OAUTH_REFRESH_TOKEN. Set all three or none; a partial set stops the server with an error naming what is missing. GOOGLE_APPLICATION_CREDENTIALS: path to a service-account key or anauthorized_userJSON file.- Application Default Credentials from the gcloud CLI:
gcloud auth application-default login --scopes=https://www.googleapis.com/auth/drive.file,https://www.googleapis.com/auth/drive.readonlyThe OAuth refresh token (or service account) needs these scopes:
https://www.googleapis.com/auth/drive.filehttps://www.googleapis.com/auth/drive.readonly
Claude Code
Add it from the command line:
claude mcp add google-drive-mcp -- npx -y @renzo.johnson/google-drive-mcpOr add it to .mcp.json in your project (or ~/.claude.json for every project).
Cursor
Add it to ~/.cursor/mcp.json (or .cursor/mcp.json in a project).
Configuration
Claude Code and Cursor use the same JSON shape:
With Application Default Credentials (gcloud):
{
"mcpServers": {
"google-drive-mcp": {
"command": "npx",
"args": [
"-y",
"@renzo.johnson/google-drive-mcp"
]
}
}
}With an OAuth user:
{
"mcpServers": {
"google-drive-mcp": {
"command": "npx",
"args": [
"-y",
"@renzo.johnson/google-drive-mcp"
],
"env": {
"GOOGLE_OAUTH_CLIENT_ID": "your-client-id.apps.googleusercontent.com",
"GOOGLE_OAUTH_CLIENT_SECRET": "your-client-secret",
"GOOGLE_OAUTH_REFRESH_TOKEN": "your-refresh-token"
}
}
}
}With a service-account key:
{
"mcpServers": {
"google-drive-mcp": {
"command": "npx",
"args": [
"-y",
"@renzo.johnson/google-drive-mcp"
],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "/path/to/service-account.json"
}
}
}
}Available Tools (4)
Drive (2 tools)
| Tool | What It Does | Example Prompt |
|------|-------------|----------------|
| drive_list | List files in Drive or folder | "Show me files in my Drive" |
| drive_search | Search files by content or name | "Find the Q4 report" |
Drive Admin (mega-tool)
| Action | Description |
|--------|-------------|
| create_folder | Create a new folder |
| move / copy / rename | File operations |
| delete | Delete a file (requires confirm) |
| share / unshare | Manage sharing permissions |
| get_permissions | View current permissions |
Safety
Destructive actions (delete, trash, clear) require confirm: true to execute. The AI agent will be warned and must explicitly confirm before proceeding.
Privacy
The server sends no telemetry. It talks only to Google APIs, with your own credentials.
Links
By Renzo Johnson | MIT License
