Google Drive MCP Integration
Guide for integrating Google Drive file management with PraisonAI agents using MCP
Add Google Drive Tool to AI Agent
Quick Start
Install Dependencies
Make sure you have Node.js installed, as the MCP server requires it:
Set up Google Drive Credentials
Set your Google Drive credentials path as an environment variable in your terminal:
Create a file
Create a new file gdrive_agent.py
with
the following code:
Run the Agent
Execute your script:
Requirements
- Python 3.10 or higher
- Node.js installed on your system
- Google Drive API credentials (OAuth keys)
- OpenAI API key (for the agent’s LLM)