google-drive-mcp

horison-ai/google-drive-mcp

3.1

If you are the rightful owner of google-drive-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.

Comprehensive Model Context Protocol server for Google Drive integration.

Google Drive MCP Server

Comprehensive Model Context Protocol server for Google Drive integration.

Features

This MCP server provides complete Google Drive functionality with 18+ operations:

File Operations

  • drive_list_files - List files with filters and pagination
  • drive_get_file - Get file metadata
  • drive_read_file - Download and read file content
  • drive_create_file - Create a new file
  • drive_update_file - Update file content
  • drive_delete_file - Move file to trash
  • drive_copy_file - Create a copy of a file
  • drive_export_file - Export Google Docs to PDF, DOCX, etc.

Folder Operations

  • drive_create_folder - Create a new folder
  • drive_move_file - Move file or folder to another parent
  • drive_list_folder_contents - List all files in a folder

Search

  • drive_search - Advanced search with query filters

Sharing & Permissions

  • drive_share_file - Share file with users or groups
  • drive_list_permissions - List all permissions for a file
  • drive_remove_permission - Remove a permission

Comments

  • drive_add_comment - Add a comment to a file
  • drive_list_comments - List all comments on a file
  • drive_resolve_comment - Mark comment as resolved

Metadata

  • drive_update_metadata - Update file name, description, etc.

Installation

pip install -e .

Usage

Configure as MCP server in claude_desktop_config.json:

{
  "mcpServers": {
    "google-drive": {
      "command": "python",
      "args": ["/path/to/google-drive-mcp/server.py"],
      "env": {
        "CONNECTIVITY_SERVICE_URL": "http://localhost:8001",
        "CONNECTIVITY_SERVICE_API_KEY": "your-api-key"
      }
    }
  }
}

Architecture

This server fetches OAuth credentials from the connectivity-service, then uses the Google Drive API directly for all operations. It does not store credentials locally.