🔌

Google Drive MCP

Productivity720

Access, search, and manage Google Drive files and folders.

Claude DesktopCursorWindsurf

Overview

Access, search, and manage Google Drive files and folders.

Setup

Run with npx:

npx -y @modelcontextprotocol/server-google-drive

Configuration

GOOGLE_APPLICATION_CREDENTIALS path to OAuth credentials JSON

Documentation

Google Drive MCP

Overview

The Google Drive MCP server enables AI agents to access, search, and manage files and folders in Google Drive. This is essential for building AI assistants that can work with documents, spreadsheets, presentations, and other cloud-stored files.

Features

  • Search Files: Find files by name, content, or metadata
  • Read Files: Download and read file contents
  • Upload Files: Create new files in Drive
  • Organize: Create folders and move files
  • Share: Manage sharing permissions
  • List Contents: Browse folder structures

Installation

npx -y @modelcontextprotocol/server-google-drive

Configuration

{
  "mcpServers": {
    "google-drive": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-google-drive"],
      "env": {
        "GOOGLE_APPLICATION_CREDENTIALS": "/path/to/credentials.json"
      }
    }
  }
}

OAuth Setup

  1. Go to Google Cloud Console
  2. Enable the Google Drive API
  3. Create OAuth 2.0 credentials
  4. Download credentials JSON

Available Tools

ToolDescription
list_filesList files in a folder
search_filesSearch files by query
read_fileRead file contents
create_fileCreate a new file
update_fileUpdate file contents
delete_fileDelete a file
create_folderCreate a new folder
move_fileMove file to different folder

Usage Examples

Search for Documents

Find all PDF files containing "quarterly report" in my Drive.

Read a Document

Read the contents of my "Project Notes" Google Doc.

Create a File

Create a new text file called "meeting-notes.txt" with today's date.

Pros

  • ✅ Full Google Drive integration
  • ✅ Search across all files
  • ✅ Support for multiple file types
  • ✅ Folder organization

Cons

  • ❌ Requires OAuth setup
  • ❌ File size limits for reading
  • ❌ Binary files may have limited support

Resources