Google Drive MCP Server
About
A server that provides an MCP (Model Context Protocol) interface to interact with Google Drive files and folders. It supports searching files, retrieving file content and metadata, and uses OAuth authentication with token persistence. Designed for developers integrating Google…
Details
- Author
- hxie-pallas
- GitHub stars
- 8
- Downloads
- 604
- Categories
- Other, API
Jump to
- Search for files in Google Drive
- Get file content and metadata
- OAuth authentication with token persistence
- HTTP and stdio transport modes
- Python 3.12+ support
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
Google Drive MCP ServerCommand (node, npx, python, etc.)Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
Install the package after creating a Python 3.12+ virtual environment. Obtain Google Drive API credentials (OAuth client ID for Desktop app) from the Google Cloud Console and save as credentials.json. Run the authentication setup script (python -m gdrive_mcp_server.auth_setup --credentials /path/to/credentials.json --token /path/to/tokens.json) to generate a token file. Then start the server with gdrive-mcp (stdio mode) or gdrive-mcp --http (HTTP mode). For Claude Desktop integration, add the command and token path to claude_desktop_config.json.
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"google drive mcp server": {
"gdrive-mcp-server": {
"command": "python",
"args": [
"-m",
"venv",
"venv"
]
}
}
}
}
McpServers
{
"gdrive-mcp-server": {
"command": "python",
"args": [
"-m",
"venv",
"venv"
]
}
}
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
1. Create a virtual environment:
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
2. Install the package in editable mode:
pip install -e .
3. 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
4. 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:
```bash
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.




