Skip to main content

Google Drive MCP Server for managing files and folders via the Model Context Protocol

Project description

Google Drive MCP Server

An MCP server for managing files and folders in Google Drive, integrating seamlessly with AI assistants using the Model Context Protocol.

Features

  • List Files/Folders: Search and list files with advanced query support.
  • Get Metadata: Retrieve detailed information about specific files or folders.
  • Manage Folders: Create new folders and organize content.
  • Organize Content: Move, copy, and delete (or trash) files.
  • Export: Export Google Docs, Sheets, and Slides to formats like PDF or DOCX.

Installation

Prerequisites

  • Python 3.9 or higher.
  • A Google Cloud Project with the Drive API enabled.
  • OAuth2 credentials (Client ID and Client Secret).

Local Setup

  1. Install dependencies:

    pip install -e .
    
  2. Run the server:

    python main.py --access-token <TOKEN> --refresh-token <REFRESH_TOKEN> --client-id <CLIENT_ID> --client-secret <CLIENT_SECRET>
    

Configuration

Add the following to your MCP host configuration (e.g., mcp-config.json):

{
  "mcpServers": {
    "barie-google-drive-mcp": {
      "command": "uvx",
      "args": [
        "--from",
        "/path/to/google_drive",
        "barie-google-drive-mcp",
        "--access-token",
        "YOUR_ACCESS_TOKEN",
        "--refresh-token",
        "YOUR_REFRESH_TOKEN",
        "--client-id",
        "YOUR_CLIENT_ID",
        "--client-secret",
        "YOUR_CLIENT_SECRET"
      ]
    }
  }
}

Tools

  • list_files: Search and list files.
  • get_file_metadata: Get file details.
  • create_folder: Create a new folder.
  • delete_file: Delete or trash a file.
  • move_file: Move a file to a new folder.
  • copy_file: Copy a file.
  • export_file: Export Google workspace files.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

barie_google_drive_mcp-0.1.1.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

barie_google_drive_mcp-0.1.1-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file barie_google_drive_mcp-0.1.1.tar.gz.

File metadata

  • Download URL: barie_google_drive_mcp-0.1.1.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for barie_google_drive_mcp-0.1.1.tar.gz
Algorithm Hash digest
SHA256 2af492072b11f61e340e41a98dbc79fa16704e55919ebcfd7d3f709810dfd8d4
MD5 eb92eb28345eb03d07eb26926829a071
BLAKE2b-256 072838d70fe3be0a7e68e4598c34adbdc9885cac8cd88bb77b7baa3c8b7d7a02

See more details on using hashes here.

File details

Details for the file barie_google_drive_mcp-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for barie_google_drive_mcp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 330d2ac96208e5c048aae999d8c8fe8d81e2c097d6ad76af011dfd77c07ff3bf
MD5 63a29226100683df04e71b332030b112
BLAKE2b-256 08139b54b996ec542e9444fa899928ed833c59506ace49cdfd575a2f8a1e9970

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page