Skip to main content
MCP Server

File access and search capabilities for Google Drive

Share
850 stars TypeScript MIT Updated: 2025-04-08

Send to Your Agent

Copy this prompt and paste it into Claude, Cursor, or any MCP client to install instantly.

Install the Google Drive MCP server for me.

Server: Google Drive
Description: File access and search capabilities for Google Drive
Install command: npx -y @modelcontextprotocol/server-gdrive

Environment variables needed:
- GOOGLE_DRIVE_CREDENTIALS: Google Drive OAuth credentials JSON (required)

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

Please install this MCP server and confirm when ready.

Paste into any AI agent with MCP support — works with Claude Desktop, Cursor, Cline, and more.

Quick Install

Config file: ~/Library/Application Support/Claude/claude_desktop_config.json

  1. Open Claude Desktop app
  2. Go to Settings → Developer → Edit Config
  3. Paste the config below into the file
  4. Restart Claude Desktop
{
  "mcpServers": {
    "google-drive": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-gdrive"
      ],
      "env": {
        "GOOGLE_DRIVE_CREDENTIALS": "{\"client_id\":\"...\",\"client_secret\":\"...\"}"
      }
    }
  }
}

Add this to your ~/Library/Application Support/Claude/claude_desktop_config.json

Installation Methods

npx Run directly with npx
npx -y @modelcontextprotocol/server-gdrive

Tools (3)

search_files

Search for files in Google Drive

read_file

Read the contents of a Google Drive file

list_folder

List files in a Google Drive folder

Environment Variables

GOOGLE_DRIVE_CREDENTIALS Required

Google Drive OAuth credentials JSON

Example: {"client_id":"...","client_secret":"..."}

Compatibility

Claude Desktop
Cursor
Cline
VS Code
Devin (formerly Windsurf)

About

A Model Context Protocol server that provides access to Google Drive. This server enables LLMs to search, read, and list files stored in Google Drive.

Key Features

  • File search — Search across all Google Drive files
  • File reading — Read contents of Google Docs, Sheets, and text files
  • Folder browsing — List contents of Drive folders
  • Document access — Extract text from Google Workspace documents

Authentication

Requires Google Drive OAuth credentials. Set up OAuth 2.0 at: https://console.cloud.google.com/apis/credentials

Use Cases

  • Document analysis — "Read this Google Doc and summarize the key points"
  • File organization — "List all files in the Project X folder"
  • Content search — "Find all documents mentioning 'budget'"
  • Data extraction — "Extract the data from this Google Sheet"
  • Archive management — "Show me all files modified last month"

Related Resources

Compare LLM Pricing

This server works with Claude, GPT-4o, and other models. Compare API costs side-by-side to find the cheapest option for your workflow.