mcp-google-drive
by Longtran2404
README.md
# MCP Google Drive
Official open-source package in the [TaskKit](https://www.taskkit.vn) ecosystem, maintained by [TrαΊ§n Minh Long](https://www.taskkit.vn/tran-minh-long). It provides an MCP server for Google Drive file search, management, sharing, and content operations.
[TaskKit open-source catalog](https://www.taskkit.vn/ma-nguon-mo) Β· [npm](https://www.npmjs.com/package/mcp-google-drive) Β· [GitHub](https://github.com/Longtran2404/mcp-google-drive)
## β¨ 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
## π Quick Setup
### Prerequisites
- Node.js 20+
- Google Service Account with Drive API enabled
- Service Account JSON key file
### Installation
```bash
npm install mcp-google-drive
```
### Environment Setup
Set your Google Service Account credentials:
```bash
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`:
```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:
1. **Restart Cursor** after updating `mcp.json`
2. **Check MCP Status**: Command Palette β "MCP: Show Servers"
3. **Verify Connection**: Command Palette β "MCP: Test Connection"
4. **Check Logs**: Look for MCP server startup messages
### Manual Server Start
If automatic integration fails, you can start the server manually:
```bash
# In your project directory
npm run start
# Or globally
npx mcp-google-drive
```
## π οΈ Available Tools
### File Operations
- `search_files` - Search files with advanced criteria
- `get_file` - Get file metadata and content
- `create_file` - Create new files and folders
- `update_file` - Update file content and metadata
- `delete_file` - Delete files and folders
- `copy_file` - Copy files to new locations
- `move_file` - Move files between folders
### Drive Management
- `get_drive_info` - Get drive information
- `list_shared_drives` - List available shared drives
### Sharing & Permissions
- `get_file_permissions` - Get file sharing settings
- `share_file` - Share files with users
- `get_file_revisions` - Get file version history
## π Documentation
- [Google Drive API Reference](https://developers.google.com/drive/api/reference/rest/v3)
- [MCP Protocol Specification](https://modelcontextprotocol.io/)
- [Service Account Setup Guide](https://github.com/Longtran2404/mcp-google-drive/blob/master/GOOGLE_SERVICE_ACCOUNT_SETUP.md)
## π§ͺ Development
### Build
```bash
npm run build
```
### Development Mode
```bash
npm run dev
```
### Linting
```bash
npm run lint
npm run lint:fix
```
## π License
MIT License - see [LICENSE](./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](https://github.com/Longtran2404/mcp-google-drive/issues)
- **Discussions**: [GitHub Discussions](https://github.com/Longtran2404/mcp-google-drive/discussions)
- **TaskKit**: [Official open-source catalog](https://www.taskkit.vn/ma-nguon-mo)
- **Founder**: [TrαΊ§n Minh Long](https://www.taskkit.vn/tran-minh-long)
- **Documentation**: [README](./README.md) and [Setup Guide](https://github.com/Longtran2404/mcp-google-drive/blob/master/GOOGLE_SERVICE_ACCOUNT_SETUP.md)
TDQS
B3.4/5.0
Scored across 15 tools
Disambiguation4/5
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.
Naming Consistency5/5
All tool names follow a consistent verb_noun pattern (e.g., create_file, list_files, delete_file), with no exceptions.
Tool Count5/5
15 tools is well-scoped for a Google Drive server, covering file operations, folders, sharing, permissions, and search without being excessive.
Completeness4/5
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
ActivityMaintained
ResponsivenessUnresponsive