mcp-google-drive

mcp-google-drive

MCP server for Google Drive integration with file management, search, sharing, and full CRUD operations.

Category
Visit Server

README

MCP Google Drive

Advanced MCP server for Google Drive integration with full CRUD operations, file management, and sharing capabilities.

โœจ Features

  • File Management: Create, read, update, delete files and folders
  • Search & Discovery: Advanced search with multiple criteria
  • Sharing & Permissions: Manage file sharing and access control
  • Content Operations: Upload, download, and modify file content
  • Drive Operations: List drives, manage shared drives
  • Type Safety: Full TypeScript support with Zod validation
  • Error Handling: Comprehensive error handling and logging

๐Ÿš€ Quick Setup

Prerequisites

  • Node.js 18+
  • Google Service Account with Drive API enabled
  • Service Account JSON key file

Installation

npm install mcp-google-drive

Environment Setup

Set your Google Service Account credentials:

export GOOGLE_SERVICE_ACCOUNT_KEY='{"type":"service_account",...}'

๐Ÿ”ง Cursor MCP Integration

Automatic Integration

The MCP server is designed to work seamlessly with Cursor. Add this configuration to your ~/.cursor/mcp.json:

{
  "mcpServers": {
    "mcp-google-drive": {
      "command": "npx",
      "args": ["mcp-google-drive@1.3.2"],
      "env": {
        "GOOGLE_SERVICE_ACCOUNT_KEY": "your-service-account-json",
        "MCP_MODE": "stdio",
        "LOG_LEVEL": "info",
        "DISABLE_CONSOLE_OUTPUT": "false"
      },
      "cwd": "/path/to/your/project"
    }
  }
}

Troubleshooting Cursor Integration

If MCP tools are not working in Cursor:

  1. Restart Cursor after updating mcp.json
  2. Check MCP Status: Command Palette โ†’ "MCP: Show Servers"
  3. Verify Connection: Command Palette โ†’ "MCP: Test Connection"
  4. Check Logs: Look for MCP server startup messages

Manual Server Start

If automatic integration fails, you can start the server manually:

# In your project directory
npm run start

# Or globally
npx mcp-google-drive

๐Ÿ› ๏ธ Available Tools

File Operations

  • search_files - Search files with advanced criteria
  • get_file - Get file metadata and content
  • create_file - Create new files and folders
  • update_file - Update file content and metadata
  • delete_file - Delete files and folders
  • copy_file - Copy files to new locations
  • move_file - Move files between folders

Drive Management

  • get_drive_info - Get drive information
  • list_shared_drives - List available shared drives

Sharing & Permissions

  • get_file_permissions - Get file sharing settings
  • share_file - Share files with users
  • get_file_revisions - Get file version history

๐Ÿ“š Documentation

๐Ÿงช Development

Build

npm run build

Development Mode

npm run dev

Linting

npm run lint
npm run lint:fix

๐Ÿ“„ License

MIT License - see LICENSE for details.

๐Ÿค Contributing

Contributions welcome! Please read our contributing guidelines and submit pull requests.

๐Ÿ“ž Support

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured