Skip to main content
Glama
YerayRodri
by YerayRodri

google-drive-mcp

MCP server to browse and manage Google Drive: search files, read Docs/Sheets content, move/rename files and folders.

Tools (9)

Tool

What it does

list_folder

List the contents of a folder (root by default)

search_files

Search files by name, type or content

get_file_metadata

Metadata of a file (name, type, dates, owner)

read_doc_content

Read a Google Doc's content as text

read_sheet_as_csv

Read a Google Sheet as CSV

get_folder_path

Full folder breadcrumb path to a file

move_file

Move a file to another folder

rename_file

Rename a file or folder

create_folder

Create a new folder

Related MCP server: MCP Google Drive Server

Setup

  1. Create a Google Cloud project (or reuse one) and enable the Google Drive API.

  2. Create an OAuth 2.0 Client ID of type "Desktop app" and download it as client_secret.json.

  3. If the app is in "Testing" mode, add your Google account(s) as test users.

  4. Install dependencies:

    python3 -m venv .venv
    source .venv/bin/activate
    pip install -r requirements.txt
  5. Run the OAuth flow once per account you want to expose:

    CLIENT_SECRET_PATH=~/.config/google-drive-mcp/client_secret.json \
    TOKEN_OUT=~/.config/google-drive-mcp/token.json \
      python3 setup_auth.py

    This opens a browser — log in and grant access. Repeat with a different TOKEN_OUT for each additional account.

MCP client configuration

{
  "mcpServers": {
    "google-drive": {
      "command": "/path/to/.venv/bin/python3",
      "args": ["/path/to/google-drive-mcp/server.py"],
      "env": {
        "GOOGLE_DRIVE_TOKEN_PATH": "~/.config/google-drive-mcp/token.json"
      }
    }
  }
}

Env var

Default

Purpose

GOOGLE_DRIVE_TOKEN_PATH

~/.config/google-drive-mcp/token.json

Path to the OAuth token for this account

Notes

  • Scope used is https://www.googleapis.com/auth/drive (read + write) — needed for move_file, rename_file and create_folder to work. A drive.readonly token will fail on those three.

License

MIT — see LICENSE.

A
license - permissive license
-
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

View all related MCP servers

Related MCP Connectors

  • Search, browse, and read your Dropbox files. Find documents by name or content, list folders, and…

  • Search and reason over your Obsidian-style Markdown vault, right from ChatGPT.

  • Securely search and manage workspace context files for AI agents and teams.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/YerayRodri/google-drive-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server