Overview
Google Drive is a server integration tool that enables users to access, list, read, and search over files stored in Google Drive.
To use Google Drive, set up a Google Cloud project, enable the Google Drive API, and configure OAuth to authenticate your application. Once set up, you can search for files using specific queries.
- Search functionality for finding files in Google Drive using queries. - Ability to access and read various file types, including Google Workspace files converted into different formats (e.g., Docs to Markdown, Sheets to CSV). - Supported authentication flow for secure file access.
- Quickly finding specific documents among a large collection of files.
- Accessing various file formats seamlessly through a single integration point.
- Building applications that require file handling capabilities powered by Google Drive data.
Add to your AI client
Use these steps to connect Google Drive in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"gdrive": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-gdrive"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"gdrive": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-gdrive"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"gdrive": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-gdrive"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"gdrive": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-gdrive"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"gdrive": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-gdrive"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"gdrive": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-gdrive"
]
}
}
}FAQ
What types of files can I access with Google Drive?
You can access any file type supported by Google Drive, including Google Workspace files and others in their native formats.
Do I need to create a Google Cloud project to use this?
Yes, a Google Cloud project must be created, and the Google Drive API needs to be enabled.
Is there a cost associated with using Google Drive API?
The Google Drive API can be used within the free tier of Google Cloud services, but usage limits apply.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":39,"uuid":"688ce7de-d738-44a8-a12c-82a7cfa9722f","name":"gdrive","title":"Google Drive","description":"File access and search capabilities for Google Drive","avatar_url":"https://r2.trys.ai/imgs/2wdynqwsi-1733449718112.png","created_at":"$D2024-12-05T16:27:19.593Z","updated_at":"$D2024-12-13T07:45:54.717Z","status":"created","author_name":"","author_avatar_url":"","tags":"gdrive,file-access,file-search","category":"cloud-storage","is_featured":false,"sort":1,"url":"https://github.com/modelcontextprotocol/servers/blob/main/src/gdrive","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":null,"user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]