Skip to main content
Glama

mcp-gdrive

MCP server for Google Drive — list, search, read, write, create, and upload files.

Setup

1. Google Cloud credentials

  1. Go to Google Cloud Console

  2. Create a project (or select an existing one)

  3. Enable the Google Drive API

  4. Create OAuth 2.0 credentials (Application type: Desktop app)

  5. Download the credentials JSON and save it as credentials.json in the project root — or set GDRIVE_CLIENT_ID and GDRIVE_CLIENT_SECRET environment variables

2. Install dependencies

npm install

3. Authorize

npm run auth

This opens a browser for Google sign-in. Tokens are saved to .gdrive-token.json (git-ignored).

4. Configure your MCP client

Add to your Claude Desktop / Claude Code config:

{
  "mcpServers": {
    "gdrive": {
      "command": "node",
      "args": ["/absolute/path/to/mcp-gdrive/src/index.js"]
    }
  }
}

Related MCP server: Google Drive MCP Server

Tools

Tool

Description

list_files

List files, optionally in a specific folder

search_files

Full-text search across Drive

read_file

Read file content (exports Google Docs as text, Sheets as CSV)

create_file

Create a new file with text content

write_file

Update an existing file's content

upload_file

Upload a local file to Drive

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.

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/rofe/mcp-gdrive'

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