drive-mcp
Provides tools for listing, searching, reading, renaming, and moving files in Google Drive.
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., "@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 |
| Recursively list files in a folder and subfolders |
| Search Google Drive by filename |
| Read file contents from Google Drive |
| Rename a Google Drive file |
| Move a Google Drive file to another folder |
| List items in OneDrive root |
| List items in a OneDrive folder by path |
| Search OneDrive by filename |
| Read file contents from OneDrive |
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 installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- 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/henrysouchien/drive-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server