mcp-google-drive
This MCP server enables AI assistants to interact with Google Drive by searching, managing, sharing, and performing content operations on files and folders.
Search & Discovery: Use
search_filesandlist_fileswith advanced queries, filters, ordering, pagination, and trash inclusion.File Operations: Create, read, update, delete, copy, and move files; create folders; retrieve file content or metadata.
Content Handling: Upload new content, update existing file content, and export files in different formats or encodings.
Sharing & Permissions: View permissions, share files with users by email and role, and include permission details when fetching files.
Version History: Retrieve file revision history with configurable result limits.
Drive Management: Get drive information and list available shared drives.
Advanced MCP server for Google Drive integration with full CRUD operations, file management, search, sharing, and drive management capabilities.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-google-drive search for files with 'budget' in name"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Google Drive
Official open-source package in the TaskKit ecosystem, maintained by TrαΊ§n Minh Long. It provides an MCP server for Google Drive file search, management, sharing, and content operations.
TaskKit open-source catalog Β· npm Β· GitHub
β¨ Features
File Management: Create, read, update, delete files and folders
Search & Discovery: Advanced search with multiple criteria
Sharing & Permissions: Manage file sharing and access control
Content Operations: Upload, download, and modify file content
Drive Operations: List drives, manage shared drives
Type Safety: Full TypeScript support with Zod validation
Error Handling: Comprehensive error handling and logging
Related MCP server: Google Drive MCP Server
π Quick Setup
Prerequisites
Node.js 20+
Google Service Account with Drive API enabled
Service Account JSON key file
Installation
npm install mcp-google-driveEnvironment Setup
Set your Google Service Account credentials:
export GOOGLE_SERVICE_ACCOUNT_KEY='{"type":"service_account",...}'π§ Cursor MCP Integration
Automatic Integration
The MCP server is designed to work seamlessly with Cursor. Add this configuration to your ~/.cursor/mcp.json:
{
"mcpServers": {
"mcp-google-drive": {
"command": "npx",
"args": ["mcp-google-drive@latest"],
"env": {
"GOOGLE_SERVICE_ACCOUNT_KEY": "your-service-account-json",
"MCP_MODE": "stdio",
"LOG_LEVEL": "info",
"DISABLE_CONSOLE_OUTPUT": "false"
},
"cwd": "/path/to/your/project"
}
}
}Troubleshooting Cursor Integration
If MCP tools are not working in Cursor:
Restart Cursor after updating
mcp.jsonCheck MCP Status: Command Palette β "MCP: Show Servers"
Verify Connection: Command Palette β "MCP: Test Connection"
Check Logs: Look for MCP server startup messages
Manual Server Start
If automatic integration fails, you can start the server manually:
# In your project directory
npm run start
# Or globally
npx mcp-google-driveπ οΈ Available Tools
File Operations
search_files- Search files with advanced criteriaget_file- Get file metadata and contentcreate_file- Create new files and foldersupdate_file- Update file content and metadatadelete_file- Delete files and folderscopy_file- Copy files to new locationsmove_file- Move files between folders
Drive Management
get_drive_info- Get drive informationlist_shared_drives- List available shared drives
Sharing & Permissions
get_file_permissions- Get file sharing settingsshare_file- Share files with usersget_file_revisions- Get file version history
π Documentation
π§ͺ Development
Build
npm run buildDevelopment Mode
npm run devLinting
npm run lint
npm run lint:fixπ License
MIT License - see LICENSE for details.
π€ Contributing
Contributions welcome! Please read our contributing guidelines and submit pull requests.
Release validation runs on Node.js 20 and 22. npm publication is performed manually from a maintainer-controlled authenticated session so that account and 2FA checks remain under the publisher's control.
π Support
Issues: GitHub Issues
Discussions: GitHub Discussions
TaskKit: Official open-source catalog
Founder: TrαΊ§n Minh Long
Documentation: README and Setup Guide
Available Tools
15 toolscopy_fileC
Copy a file to a new location
Inputs: fileId (required), name, parentId.
create_fileB
Create a new file in Google Drive
Inputs: name (required), mimeType (required), content (required), parentId, +1 more.
create_folderC
Create a new folder in Google Drive
Inputs: name (required), parentId, description.
delete_fileC
Delete a file from Google Drive
Inputs: fileId (required), permanent.
get_drive_infoC
Get information about a drive
Inputs: driveId.
get_fileA
Get file metadata and optionally content
Inputs: fileId (required), includeContent, includePermissions.
get_file_contentC
Get file content in various formats
Inputs: fileId (required), mimeType, encoding.
get_file_permissionsC
Get permissions for a file
Inputs: fileId (required).
get_file_revisionsC
Get revision history of a file
Inputs: fileId (required), maxResults.
list_filesB
List files in Google Drive with optional filtering
Inputs: pageSize, pageToken, orderBy, q, +2 more.
move_fileC
Move a file to a new location
Inputs: fileId (required), parentId (required), removeFromParents.
search_filesC
Search for files in Google Drive using Google's search syntax
Inputs: query (required), maxResults, fileType, orderBy, +1 more.
update_fileC
Update an existing file in Google Drive
Inputs: fileId (required), name, description, content.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 15 tools
Most tools have clearly distinct purposes, but get_file and get_file_content overlap somewhat, as do list_files and search_files. Descriptions help differentiate them.
All tool names follow a consistent verb_noun pattern (e.g., create_file, list_files, delete_file), with no exceptions.
15 tools is well-scoped for a Google Drive server, covering file operations, folders, sharing, permissions, and search without being excessive.
Core CRUD, sharing, permissions, and search are covered. Missing features like trash or copy folder are minor gaps that do not hinder typical workflows.
Maintenance
Related MCP Connectors
An MCP server that provides read access to your cloud storage providers, bank accounts and more.
A MCP server that works with Google Calendar to manage event listing, reading, and updates.
One MCP server for the services your AI needs: memory, files, Microsoft 365, kanban and more.
Notes, files, GitHub, and Drive through one MCP connection.
Related MCP Servers
- -licenseNot gradedqualityBmaintenanceThis MCP server integrates with Google Drive to allow listing, reading, and searching over files.5,582 npm91,952MIT
- AlicenseNot gradedqualityDmaintenanceThis MCP server integrates with Google Drive to allow listing, reading, and searching files, as well as the ability to read and write to Google Sheets.554 npm2MIT
- AlicenseNot gradedqualityBmaintenanceMCP server for Google Drive that enables listing, searching, uploading, downloading, and managing files and folders, as well as handling comments and permissions.154 npm7MIT
- AlicenseAqualityCmaintenanceMCP server for interacting with Google Drive using a service account, restricted to a specific root folder. Supports file operations like search, list, create, update, and read.427 npm1MIT