About Google Drive MCP Server
Google Drive MCP Server provides an MCP interface for searching Google Drive files and retrieving their content and metadata. It is for MCP clients that need Drive access, with OAuth token persistence and HTTP or stdio transport.
Key features
- 01Search Google Drive files
- 02Retrieve file content
- 03Retrieve file metadata
- 04OAuth authentication with saved tokens
- 05HTTP and stdio transport
Use cases
- 01Find files in Google Drive
- 02Read a file's contents
- 03Inspect file metadata
MCP support
Exposes Google Drive file search and retrieval to MCP clients through HTTP or stdio transport.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEGoogle 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:
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
- Install the package in editable mode:
pip install -e .
-
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:
python -m gdrive_mcp_server.auth_setup --credentials /path/to/your/credentials.json --token /path/to/your/tokens.json
Usage
Run the server:
# Standard mode
gdrive-mcp
# HTTP mode
gdrive-mcp --http
Claude Desktop Integration
To integrate with Claude Desktop, add the following configuration to your claude_desktop_config.json:
"mcpServers": {
"google_drive": {
"command": "/path/to/your/venv/bin/gdrive-mcp",
"args": [
"--token",
"/path/to/your/tokens.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:
pip install -e ".[dev]"
License
MIT License
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.