Enables searching for files in Google Drive, retrieving file content and metadata, with OAuth authentication and token persistence.
Google Drive MCP Server
A server that provides MCP (Machine Control Protocol) interface to interact with Google Drive files and folders.
Features
Search for files in Google Drive
Get file content and metadata
OAuth authentication with token persistence
HTTP and stdio transport modes
Requirements
Python 3.12 or higher
Google Drive API credentials
Setup
Create a virtual environment:
Install the package in editable mode:
Set up Google Drive API credentials:
Go to the Google Cloud Console
Create a new project or select an existing one
Enable the Google Drive API for your project
Go to "Credentials" in the left sidebar
Click "Create Credentials" and select "OAuth client ID"
Choose "Desktop app" as the application type
Download the credentials file and save it as
credentials.json
Set up Google Drive authentication:
Usage
Run the server:
Claude Desktop Integration
To integrate with Claude Desktop, add the following configuration to your claude_desktop_config.json
:
Replace the paths with your actual paths:
command
: Path to the gdrive-mcp executable in your virtual environmentargs[1]
: Path to your tokens.json file (generated during authentication setup)
Development
The project uses:
Python 3.12+
Google Drive API
MCP server framework
FastMCP for HTTP transport
Rich for terminal formatting
Development dependencies can be installed with:
License
MIT License
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
A server that provides a Machine Control Protocol (MCP) interface to search, access, and interact with Google Drive files and folders, enabling AI assistants to work with Google Drive content.
Related MCP Servers
- -securityAlicense-qualityThis MCP server integrates with Google Drive to allow listing, reading, and searching over files.Last updated -63469,683MIT License
- -securityAlicense-qualityThis MCP server integrates with Google Drive to allow listing, reading, and searching files, as well as the ability to read and write to Google Sheets.Last updated -1302MIT License
- -securityFlicense-qualityAn MCP server that provides access to Google's API Discovery Service, allowing agents to discover and interact with Google APIs through natural language commands.Last updated -
- -securityFlicense-qualityAn MCP server that enables interaction with Google Cloud Filestore API, allowing management of Filestore instances, backups, and shares through natural language commands.Last updated -