mcp-server-gdrive
0
The Google Drive MCP Server is designed to interface with the Google Drive API, providing a standardized protocol for file and folder management. It offers comprehensive features such as file operations, sharing capabilities, and error handling, supporting both local and Docker-based deployments.
Google Drive MCP Server
A Model Context Protocol (MCP) server for interacting with Google Drive API. This server provides a standardized interface for AI systems to access and manipulate files in Google Drive.
Features
- File Operations: List, upload, download, and delete files
- Folder Management: Create folders and organize content
- File Sharing: Share files with specific users and manage permissions
- Pagination Support: Handle large file listings efficiently
- Comprehensive Error Handling: Detailed error reporting for easier debugging
Prerequisites
- Python 3.8+
- Google Cloud project with Drive API enabled
- Service account with appropriate permissions
Setup
1. Google Cloud Setup
- Create a project in Google Cloud Console
- Enable the Google Drive API
- Create a service account with appropriate permissions
- Download the service account JSON key file
2. Local Setup
Clone the repository and install dependencies.
3. Docker Setup
Alternatively, use Docker to build and run the server.
Running the Server
Support for both local execution and Docker execution is provided.
MCP Tools
- File Operations: List files, get file info, upload, and download files
- Folder Operations: Create folders
- Sharing: Share files
- Debugging: Debug the API connection
Security Considerations
- Protect sensitive credentials
- Use environment variables for sensitive configurations