Skip to main content

Autonomous Google Drive MCP with Skill Forge Capabilities

Project description

Google Drive Forge Icon

Google Drive Forge

MCP License: MIT Python 3.10+

Transform your AI agent from a simple file explorer into an Autonomous Power-User. This isn't just a Google Drive connector; it's a cognitive layer for your cloud storage.


💎 The "Intelligent" Edge

Most MCP servers just list files. This one reasons about them.

Feature Description Benefit
🔨 The Forge On-the-fly Python "Skill" creation and execution. Solve complex tasks like "Archive all PDFs older than 30 days".
🩹 Path Healing Fuzzy, human-like path resolution (e.g., /Work/Drafts). No more hunting for obscure File IDs.
🧠 Auto-Recovery Intercepts 404s and suggests correct paths/files. Agent remains autonomous even when it makes mistakes.
🔍 Smart Read Auto-detection of MIME types and content conversion. Seamless interaction with Sheets, Docs, and PDFs.
📜 Audit Log Transparent tracking of all autonomous decisions. Complete visibility into what your agent is doing.

🛠 Features Breakdown

📂 Standard Operations

  • Discovery: list_files, search_files, list_folder.
  • Management: create_folder, upload_file, trash_file.
  • Metadata: Deep metadata inspection for any file object.

⚡ The Forge (Agent Skills)

Empower your agent to expand its own capabilities. Using the Agent Skills standard, the agent can:

  • create_skill: Write Python logic to perform multi-step Drive operations.
  • list_skills: Browse its library of forged capabilities.
  • run_skill: Execute its custom logic with full API access.

🧭 Autonomous Navigation

  • resolve_path: Converts /Project/2026/Budget.xlsx into a working ID, healing broken paths automatically.
  • smart_read: A high-level tool that handles resolution, downloading, and decoding in one step.

� Getting Started

1. Requirements

  • Python 3.10 or higher.
  • A Google Cloud Project with the Drive API enabled.

2. Deep Dive Into Setup

For a step-by-step walkthrough on generating your credentials.json and token.json, please refer to our: 👉 Comprehensive Setup Guide

3. Quick Configuration

Add this to your MCP host configuration (e.g., Antigravity):

"google-drive": {
  "command": "python",
  "args": ["/path/to/server.py"],
  "env": {
    "GOOGLE_DRIVE_CREDENTIALS": "/path/to/credentials.json",
    "GOOGLE_DRIVE_HEADLESS_AUTH": "false",
    "GOOGLE_DRIVE_PYTHON_PATH": "/usr/bin/python3"
  }
}

⚙️ Environment Variables

Variable Description Default
GOOGLE_DRIVE_CREDENTIALS Path to your credentials.json. ./credentials.json
GOOGLE_DRIVE_HEADLESS_AUTH Set to true for console-based OAuth on servers. false
GOOGLE_DRIVE_PYTHON_PATH Path to a specific Python executable or venv. sys.executable
GOOGLE_DRIVE_SKILLS_DIR Where to store forged AI Skills. ./skills

🛡️ Security Implications

Please Read Carefully: This MCP server implements The Forge, which allows AI agents to write and execute arbitrary Python code on your machine.

  • Local Use Only: This tool is designed for local power-users.
  • Sandbox: It does not currently implement a sandbox for executed scripts. Only use it with agents you trust to handle your local filesystem.

Contributing & Extension

We believe in open autonomy. If you have ideas for new core skills or improvements to the path-healing engine:

  1. Check the Contributing Guide.
  2. Explore the skills/ directory for examples of forged logic.
  3. Submit a PR!

⚖️ License

Distributed under the MIT License. See LICENSE for more information.


Built with ❤️ for the next generation of AI Agents.

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

google_drive_forge-0.2.0.tar.gz (402.1 kB view details)

Uploaded Source

Built Distribution

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

google_drive_forge-0.2.0-py3-none-any.whl (17.7 kB view details)

Uploaded Python 3

File details

Details for the file google_drive_forge-0.2.0.tar.gz.

File metadata

  • Download URL: google_drive_forge-0.2.0.tar.gz
  • Upload date:
  • Size: 402.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.10

File hashes

Hashes for google_drive_forge-0.2.0.tar.gz
Algorithm Hash digest
SHA256 722c01b95e625334098b291e0f84b3cfe4d18807e4821c005549806e6c7b367b
MD5 fda507a1b2d74ed9a4c0a870236a3381
BLAKE2b-256 8895b89af85feb46a1af15690455ac83f6429cb431e4843fcc6ce53a27920035

See more details on using hashes here.

File details

Details for the file google_drive_forge-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for google_drive_forge-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f7dd89c30c352fa01dc1eba7daaf7f989bd7dd30ae6a5982992b2c3aed10624b
MD5 7b49ddf92c4e9a3cc15e45aa34b66eff
BLAKE2b-256 fb2c6df7f194d8d492b60c87c750d8549f86de26d0580478f85f45b1cb9ec328

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