drive-mcp
Provides tools for listing, searching, reading, renaming, and moving files in Google Drive.
Click on "Deploy 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., "@drive-mcpsearch Google Drive for 'meeting notes'"
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.
drive-mcp
MCP server for Google Drive and OneDrive operations.
Tools
Tool | Description |
| List files in a Google Drive folder by name or |
| Recursively list files in a folder and subfolders |
| List Shared Drives visible to the account |
| Search Google Drive by filename (includes Shared Drives) |
| Read file contents from Google Drive |
| Download a Drive file (or export Docs/Sheets/Slides) to a local path |
| Create/overwrite a text file in Google Drive |
| Create a Google Doc (optionally seeded with text) |
| Create a Google Drive folder (optional parent, dry-run, undo) |
| Rename a Google Drive file |
| Move a Google Drive file to another folder |
| Copy a Google Drive file |
| Move a Google Drive file/folder to trash |
| Share a file/folder with a user email ( |
| Undo a prior mutating gdrive_* operation via restore token |
| List items in OneDrive root |
| List items in a OneDrive folder by path |
| Search OneDrive by filename |
| Read file contents from OneDrive |
Most mutating Google Drive tools accept optional file_id / folder_id arguments
(preferred when known) and support dry_run=True previews. Successful mutations
that can be reversed return a restore_token for gdrive_undo.
Related MCP server: Google Drive MCP Server
Setup
Prerequisites
Python 3.10+
Google account with Drive API enabled
Microsoft account with Graph API access
Installation
git clone https://github.com/<your-user>/drive-mcp.git
cd drive-mcp
python3 -m venv venv
source venv/bin/activate
pip install -e .Authentication
Google Drive credentials: place OAuth desktop client JSON at
drive_credentials.json.OneDrive credentials: defaults in
src/onedrive.pyuse a public device-flow app registration.Bootstrap auth once:
source venv/bin/activate
python -c "from src import google_drive; google_drive.authenticate()"
python -c "from src import onedrive; onedrive.authenticate()"Claude Code Configuration
Add to ~/.claude.json:
{
"mcpServers": {
"drive-mcp": {
"type": "stdio",
"command": "/path/to/drive-mcp/venv/bin/python",
"args": ["/path/to/drive-mcp/run_server.py"]
}
}
}Development
source venv/bin/activate
python -c "from src.server import mcp; print([t.name for t in mcp._tool_manager._tools.values()])"
python run_server.pyLicense
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
An MCP server that provides read access to your cloud storage providers, bank accounts and more.
Notes, files, GitHub, and Drive through one MCP connection.
Notes, files, GitHub, and Drive through one MCP connection.
Notes, files, GitHub, and Drive through one MCP connection.
Related MCP Servers
- -licenseNot gradedqualityAmaintenanceThis MCP server integrates with Google Drive to allow listing, reading, and searching over files.4,066 npm90,196MIT
- AlicenseNot gradedqualityDmaintenanceA 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.8MIT
- AlicenseBqualityDmaintenanceMCP server for Google Drive integration with file management, search, sharing, and full CRUD operations.15844 npm2MIT
- FlicenseNot gradedqualityCmaintenanceA read-only Google Drive MCP server that allows searching files, reading file content (with auto-export for Google Docs, Sheets, Slides), and retrieving file metadata via OAuth authentication.8 npm2-