MCP server for Google Drive and Sheets
## Google Drive MCP Server: Workspace Storage Integration The **Google Drive MCP Server** integrates Google cloud storage directly into Google Antigravity, enabling AI assistants to manage files, folders, and Google Workspace documents programmatically. This integration brings comprehensive Google storage capabilities to your development workflow. ### Why Google Drive MCP? - **Workspace Integration**: Native support for Docs, Sheets, Slides, and other Google formats - **Real-Time Collaboration**: Multiple users can edit documents simultaneously - **Powerful Search**: Full-text search across all document content - **Sharing Controls**: Granular permissions with link sharing, domain restrictions, and expiration - **Generous Storage**: Large storage quotas included with Google Workspace ### Key Features #### 1. File Management ```python from anthropic import Anthropic client = Anthropic() response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Upload this CSV file to Drive and convert it to a Google Sheet" }], tools=[{ "name": "gdrive_files", "description": "Manage Drive files" }] ) ``` #### 2. Folder Organization ```python # Organize folders response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Create a shared team drive for the new project with standard folder structure" }], tools=[{"name": "gdrive_folders", "description": "Manage folders"}] ) ``` #### 3. Document Search ```python # Search documents response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Find all Google Docs mentioning quarterly review from the last month" }], tools=[{"name": "gdrive_search", "description": "Search content"}] ) ``` #### 4. Permissions Management ```python # Manage sharing response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Share this folder with the client email as viewer and generate a share link" }], tools=[{"name": "gdrive_permissions", "description": "Manage permissions"}] ) ``` ### Configuration ```json { "mcpServers": { "google-drive": { "command": "npx", "args": ["-y", "@anthropic/mcp-google-drive"], "env": { "GOOGLE_CLIENT_ID": "your-client-id", "GOOGLE_CLIENT_SECRET": "your-client-secret", "GOOGLE_REFRESH_TOKEN": "your-refresh-token" } } } } ``` ### Use Cases **Document Automation**: Create, update, and organize Google Workspace documents programmatically. **Team Collaboration**: Set up shared drives and manage team access to project files. **Data Pipeline**: Integrate file uploads and downloads into data processing workflows. **Backup and Archive**: Automate file organization and archival processes. The Google Drive MCP Server brings Workspace storage integration directly into your development workflow, enabling powerful document and file automation.
{
"mcpServers": {
"google-drive": {
"mcpServers": {
"gdrive": {
"env": {
"CLIENT_ID": "YOUR_GOOGLE_CLIENT_ID",
"CLIENT_SECRET": "YOUR_GOOGLE_CLIENT_SECRET",
"GDRIVE_CREDS_DIR": "/path/to/config"
},
"args": [
"-y",
"@isaacphi/mcp-gdrive"
],
"command": "npx"
}
}
}
}
}