Skip to main content
Glama

Google Drive MCP Server

by hxie-pallas

Google Drive MCP Server

A server that provides MCP (Machine Control Protocol) interface to interact with Google Drive files and folders.

Features

  • Search for files in Google Drive
  • Get file content and metadata
  • OAuth authentication with token persistence
  • HTTP and stdio transport modes

Requirements

  • Python 3.12 or higher
  • Google Drive API credentials

Setup

  1. Create a virtual environment:
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
  1. Install the package in editable mode:
pip install -e .
  1. Set up Google Drive API credentials:
    • Go to the Google Cloud Console
    • Create a new project or select an existing one
    • Enable the Google Drive API for your project
    • Go to "Credentials" in the left sidebar
    • Click "Create Credentials" and select "OAuth client ID"
    • Choose "Desktop app" as the application type
    • Download the credentials file and save it as credentials.json
  2. Set up Google Drive authentication:
python -m gdrive_mcp_server.auth_setup --credentials /path/to/your/credentials.json --token /path/to/your/tokens.json

Usage

Run the server:

# Standard mode gdrive-mcp # HTTP mode gdrive-mcp --http

Claude Desktop Integration

To integrate with Claude Desktop, add the following configuration to your claude_desktop_config.json:

"mcpServers": { "google_drive": { "command": "/path/to/your/venv/bin/gdrive-mcp", "args": [ "--token", "/path/to/your/tokens.json" ] } }

Replace the paths with your actual paths:

  • command: Path to the gdrive-mcp executable in your virtual environment
  • args[1]: Path to your tokens.json file (generated during authentication setup)

Development

The project uses:

  • Python 3.12+
  • Google Drive API
  • MCP server framework
  • FastMCP for HTTP transport
  • Rich for terminal formatting

Development dependencies can be installed with:

pip install -e ".[dev]"

License

MIT License

-
security - not tested
A
license - permissive license
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

A 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.

  1. Features
    1. Requirements
      1. Setup
        1. Usage
          1. Claude Desktop Integration
            1. Development
              1. License

                Related MCP Servers

                • -
                  security
                  A
                  license
                  -
                  quality
                  This MCP server integrates with Google Drive to allow listing, reading, and searching files, as well as the ability to read and write to Google Sheets.
                  Last updated -
                  935
                  2
                  JavaScript
                  MIT License
                • -
                  security
                  F
                  license
                  -
                  quality
                  An MCP server that provides access to Google's API Discovery Service, allowing agents to discover and interact with Google APIs through natural language commands.
                  Last updated -
                  Python
                  • Linux
                  • Apple
                • -
                  security
                  F
                  license
                  -
                  quality
                  An MCP server that enables interaction with Google Cloud Filestore API, allowing management of Filestore instances, backups, and shares through natural language commands.
                  Last updated -
                  Python
                • -
                  security
                  F
                  license
                  -
                  quality
                  An MCP server that enables natural language interaction with Google's Discovery Engine API, allowing users to search, recommend, and manage data through conversational interfaces.
                  Last updated -
                  Python

                View all related MCP servers

                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/hxie-pallas/gdrive-mcp-server'

                If you have feedback or need assistance with the MCP directory API, please join our Discord server