hxie-pallas

Google Drive MCP Server

Community hxie-pallas
Updated

A google drive mcp servers based on Python

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

MCP Server · Populars

MCP Server · New

    chatmcp

    mcpso

    directory for Awesome MCP Servers

    Community chatmcp
    TBXark

    MCP Proxy Server

    An MCP proxy server that aggregates and serves multiple MCP resource servers through a single HTTP server.

    Community TBXark
    ttommyth

    interactive-mcp

    Ask users questions from your LLM! interactive-mcp: Local, cross-platform MCP server for interactive prompts, chat & notifications.

    Community ttommyth
    lpigeon

    ros-mcp-server

    The ROS MCP Server is designed to support robots in performing complex tasks and adapting effectively to various environments by providing a set of functions that transform natural language commands, entered by a user through an LLM, into ROS commands for robot control.

    Community lpigeon
    emicklei

    melrose-mcp

    interactive programming of melodies, producing MIDI

    Community emicklei