← Back to Google Drive MCP Server

Install Google Drive MCP Server

Pick your client, copy the command, done.

Manual setup required. The maintainer's config contains paths only you know — edit the placeholders below before adding it to Claude Code.
1

Prepare the server locally

Run this once before adding it to Claude Code.

git clone https://github.com/dylancaponi/gdrive-mcp-server.git
cd gdrive-mcp-server
npm install
npm run build
2

Register it in Claude Code

claude mcp add gdrive-mcp-server -- node /path/to/gdrive-mcp-server/dist/index.js

Replace any placeholder paths in the command with the real path on your machine.

Environment Variables

Set these before running Google Drive MCP Server.

VariableDescriptionRequired
GDRIVE_CREDENTIALS_PATHPath to saved OAuth credentialsNo
GDRIVE_OAUTH_PATHPath to OAuth client keysNo
GDRIVE_ENABLE_RESOURCESSet to true to enable MCP resource handlersNo
GDRIVE_ENABLE_SHEETSSet to true to enable the sheets_read toolNo
GDRIVE_ENABLE_UPLOADSet to true to enable the upload toolNo
GDRIVE_DOWNLOAD_DIRDirectory where the download and export_pdf tools save filesNo

Available Tools (6)

Once configured, Google Drive MCP Server gives your AI agent access to:

searchSearch for files in Google Drive by full-text query.
query
readRead file contents inline, including converting Google Docs to Markdown and Sheets to CSV.
fileId
downloadSave files to a local directory.
fileId
sheets_readRead Google Sheets with A1 range notation, returned as formatted markdown tables.
fileIdrange
uploadPush local files to Drive.
filePathfolderId
export_pdfExport Google Workspace files as PDF.
fileId

Try It Out

After setup, try these prompts with your AI agent:

Search for the 'Q3 Financial Report' in my Google Drive.
Read the contents of the Google Doc with ID 1abc123 and summarize the key points.
Download the spreadsheet 'Project Roadmap' to my local machine.
Export the document 'Meeting Notes' as a PDF.
Read the data from the 'Sales' sheet in the spreadsheet with ID 1xyz789.
Prerequisites & system requirements
  • An MCP-compatible client (Claude Code, Cursor, Windsurf, Claude Desktop, or Codex)
  • Node.js 18+ with npm/npx installed
Alternative installation methods

Claude Code CLI

claude mcp add --scope user gdrive -- node /path/to/gdrive-mcp-server/dist/index.js

Keep this setup from going cold

Save the docs, env vars, and workflow around Google Drive MCP Server in Conare so Claude Code, Codex, and Cursor remember it next time.

Remember this setup