
Product
Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
@chinchillaenterprises/mcp-google-drive
Advanced tools
Multi-tenant Google Drive MCP server with account management and credential persistence
MCP server for Google Drive integration - Read and list files from Google Drive with comprehensive search and navigation capabilities.
mcp-google-drive
is a Model Context Protocol (MCP) server that enables Claude to interact with Google Drive. This server provides read-only access to files, folders, and drive metadata, making it perfect for document analysis, content search, and file organization tasks.
Before using this MCP server, you need:
https://www.googleapis.com/auth/drive.readonly
https://www.googleapis.com/auth/drive.metadata.readonly
# Install globally
npm install -g @chinchillaenterprises/mcp-google-drive
# Or use with npx
npx @chinchillaenterprises/mcp-google-drive
claude mcp add google-drive -s user \
-e GOOGLE_CLIENT_ID=your-client-id \
-e GOOGLE_CLIENT_SECRET=your-client-secret \
-e GOOGLE_REFRESH_TOKEN=your-refresh-token \
-- npx @chinchillaenterprises/mcp-google-drive
# Clone and build
cd mcp-google-drive
npm install
npm run build
# Add to Claude
claude mcp add google-drive-dev -s user \
-e GOOGLE_CLIENT_ID=your-client-id \
-e GOOGLE_CLIENT_SECRET=your-client-secret \
-e GOOGLE_REFRESH_TOKEN=your-refresh-token \
-- node /absolute/path/to/mcp-google-drive/dist/index.js
Edit your Claude configuration file:
{
"mcpServers": {
"google-drive": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@chinchillaenterprises/mcp-google-drive"],
"env": {
"GOOGLE_CLIENT_ID": "your-client-id",
"GOOGLE_CLIENT_SECRET": "your-client-secret",
"GOOGLE_REFRESH_TOKEN": "your-refresh-token"
}
}
}
}
Variable | Required | Description |
---|---|---|
GOOGLE_CLIENT_ID | Yes | OAuth 2.0 client ID from Google Cloud Console |
GOOGLE_CLIENT_SECRET | Yes | OAuth 2.0 client secret |
GOOGLE_REFRESH_TOKEN | Yes | Long-lived refresh token for authentication |
Create OAuth 2.0 Client ID:
Get Refresh Token:
# Use Google's OAuth playground or create a simple script
# Scopes needed: drive.readonly, drive.metadata.readonly
Security Note: Keep your credentials secure and never commit them to version control
List all accessible shared drives.
Parameters:
pageSize
(optional): Maximum number of drives to return (default: 10)pageToken
(optional): Page token for paginationExample:
List all my shared drives
Show me the team drives I have access to
Get drive metadata and quota information.
Parameters:
driveId
(required): ID of the shared drive (use 'root' for My Drive)Example:
Get info about my main drive
Show me the storage quota for drive ID abc123
List files with pagination and folder support.
Parameters:
pageSize
(optional): Maximum number of files to return (default: 20)pageToken
(optional): Page token for paginationdriveId
(optional): Specific drive ID to list fromorderBy
(optional): Sort order (e.g., 'name', 'modifiedTime desc')Example:
List all files in my drive
Show me the 10 most recently modified files
List files ordered by name
Get file metadata by ID.
Parameters:
fileId
(required): Google Drive file IDExample:
Get details for file ID xyz789
Show me metadata for this document
Search files by name, type, or content.
Parameters:
query
(required): Search query (supports Drive query syntax)pageSize
(optional): Maximum number of results (default: 20)pageToken
(optional): Page token for paginationdriveId
(optional): Specific drive ID to search inExample:
Search for files containing "project proposal"
Find all PDF files
Search for spreadsheets modified this week
Advanced Query Examples:
name contains 'report'
- Files with "report" in namemimeType = 'application/pdf'
- Only PDF filesmodifiedTime > '2024-01-01'
- Recently modified files'user@example.com' in owners
- Files owned by specific userRead text file contents (docs, sheets, etc.).
Parameters:
fileId
(required): Google Drive file IDmimeType
(optional): Export MIME type for Google Workspace filesSupported Export Types:
Example:
Read the contents of document ID abc123
Get the text from this Google Doc
Export this spreadsheet as CSV
List contents of a specific folder.
Parameters:
folderId
(required): Folder ID (use 'root' for root folder)pageSize
(optional): Maximum number of items (default: 20)pageToken
(optional): Page token for paginationExample:
List files in the root folder
Show me what's in folder ID folder123
List contents of my Projects folder
Get folder structure/hierarchy.
Parameters:
folderId
(optional): Starting folder ID (default: 'root')maxDepth
(optional): Maximum depth to traverse (default: 3)Example:
Show me my folder structure
Get the folder tree starting from Projects folder
Display folder hierarchy 2 levels deep
List who has access to a file.
Parameters:
fileId
(required): File or folder IDExample:
Show who has access to this document
List permissions for file ID abc123
Who can view this folder?
Get sharing settings for a file.
Parameters:
fileId
(required): File or folder IDExample:
Get sharing settings for this presentation
Show me how this file is shared
Is this document publicly accessible?
"List all my Google Drive files"
"Search for documents containing 'quarterly report'"
"Show me spreadsheets modified this month"
"Show me what's in my Projects folder"
"Get the folder structure of my drive"
"List all files in the Marketing folder"
"Read the contents of the meeting notes document"
"Get the text from the project proposal"
"Export the budget spreadsheet as CSV"
"Who has access to the financial reports folder?"
"Show me all publicly shared files"
"List files shared with external users"
"Invalid credentials" error:
"File not found" error:
"Quota exceeded" error:
Export format errors:
Run Claude with debug flag to see detailed logs:
claude --mcp-debug
# Clone the repository
git clone https://github.com/chinchillaenterprises/ChillMCP.git
cd ChillMCP/mcp-google-drive
# Install dependencies
npm install
# Build
npm run build
# Run in development mode
npm run dev
# Run with test credentials
GOOGLE_CLIENT_ID=test-id \
GOOGLE_CLIENT_SECRET=test-secret \
GOOGLE_REFRESH_TOKEN=test-token \
npm run dev
MIT License - see the parent repository for details.
For issues and feature requests, please visit the ChillMCP repository.
Built with ❤️ by Chinchilla Enterprises
FAQs
Multi-tenant Google Drive MCP server with account management and credential persistence
We found that @chinchillaenterprises/mcp-google-drive demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.