Google Drive MCP Server

List, search, read, and create Google Drive files from your AI assistant

By Anthropic (official) official google files cloud

The Google Drive MCP Server connects Claude and other MCP-compatible agents to your Google Drive via the official Google Drive API. List folder contents, search across your Drive, read file contents, and create new files — all from within your AI chat session. By default the server operates read-only; write access requires an opt-in flag.

Installation & Configuration

This server uses uvx (part of the uv Python toolchain). Install uv first if you don't have it: curl -LsSf https://astral.sh/uv/install.sh | sh

Add this block to your claude_desktop_config.json:

{
  "mcpServers": {
    "gdrive": {
      "command": "uvx",
      "args": ["mcp-server-gdrive"],
      "env": {
        "GDRIVE_CREDENTIALS_FILE": "/path/to/credentials.json"
      }
    }
  }
}

To enable write access, add "--allow-writes" to the args array.

Getting your credentials file:

Config file location:

Available Tools (4)

Use Cases

Gotchas

Security Note

The OAuth credentials grant access to everything in your Google Drive. In read-only mode the risk is limited to data exposure. With --allow-writes enabled, the server can create and modify files. Store the credentials JSON file outside version control and restrict filesystem permissions (chmod 600).

Source & Documentation

GitHub Repository: https://github.com/modelcontextprotocol/servers/tree/main/src/gdrive

Protocol: Model Context Protocol (MCP) — modelcontextprotocol.io

MCP Setup Pack — $15
20 ready-to-paste server configs + installer + doctor script
Get the Pack →
← Back to MCP Server Directory