Google Drive MCP Server
Enables searching for files in Google Drive, retrieving file content and metadata, with OAuth authentication and token persistence.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Google Drive MCP Serverfind my recent presentations about Q4 planning"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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
Related MCP server: mcp-google-gdrive
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\activateInstall 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.jsonUsage
Run the server:
# Standard mode
gdrive-mcp
# HTTP mode
gdrive-mcp --httpClaude 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
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseBqualityDmaintenanceAn MCP server that enables integration with Google Drive through a service account to list files and retrieve detailed file metadata. It allows users to browse and inspect Drive contents using natural language via the Model Context Protocol.2
- Alicense-qualityDmaintenanceAn MCP server that enables AI assistants to list, read, create, and manage files in Google Drive. It features automatic conversion of Google Workspace formats into Markdown, CSV, and plain text for seamless integration with AI workflows.35MIT
- AlicenseAqualityAmaintenanceMCP server for interacting with Google Drive using a service account, restricted to a specific root folder. Supports file operations like search, list, create, update, and read.4396MIT
- Flicense-qualityBmaintenanceMCP server for semantic search over Google Drive documents, enabling AI tools to search, list, and retrieve document content.
Related MCP Connectors
Personal assistant MCP server with search, execute, packages, jobs, secrets, and integrations.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
MCP server for Google search results via SERP API
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/hxie-pallas/gdrive-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server