← 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 build2
Register it in Claude Code
claude mcp add gdrive-mcp-server -- node /path/to/gdrive-mcp-server/dist/index.jsReplace 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 credentialsNoGDRIVE_OAUTH_PATHPath to OAuth client keysNoGDRIVE_ENABLE_RESOURCESSet to true to enable MCP resource handlersNoGDRIVE_ENABLE_SHEETSSet to true to enable the sheets_read toolNoGDRIVE_ENABLE_UPLOADSet to true to enable the upload toolNoGDRIVE_DOWNLOAD_DIRDirectory where the download and export_pdf tools save filesNoAvailable Tools (6)
Once configured, Google Drive MCP Server gives your AI agent access to:
searchSearch for files in Google Drive by full-text query.queryreadRead file contents inline, including converting Google Docs to Markdown and Sheets to CSV.fileIddownloadSave files to a local directory.fileIdsheets_readRead Google Sheets with A1 range notation, returned as formatted markdown tables.fileIdrangeuploadPush local files to Drive.filePathfolderIdexport_pdfExport Google Workspace files as PDF.fileIdTry 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.jsKeep 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.