This guide walks you through everything needed to get Google Drive Forge working from scratch.
- Python 3.10+ installed on your system
- A Google Account (personal or Workspace)
- 5-10 minutes for initial setup
- Go to the Google Cloud Console
- Click Select a project → New Project
- Enter a project name (e.g.,
drive-forge-mcp) - Click Create
- Wait for the project to be created, then select it
- In your new project, go to APIs & Services → Library
- Search for "Google Drive API"
- Click on Google Drive API
- Click Enable
Before creating credentials, you must configure the OAuth consent screen:
- Go to APIs & Services → OAuth consent screen
- Select External (unless you have a Workspace account and want internal-only)
- Click Create
- Fill in the required fields:
- App name:
Drive Forge MCP - User support email: Your email
- Developer contact email: Your email
- App name:
- Click Save and Continue
- On the Scopes page, click Add or Remove Scopes
- Find and select:
https://www.googleapis.com/auth/drive(full Drive access)
- Click Update → Save and Continue
- On the Test users page, click Add Users
- Add your Google email address
- Click Save and Continue → Back to Dashboard
Note: For personal use, your app will remain in "Testing" mode. This is fine — it just means only the test users you added can authorize it.
- Go to APIs & Services → Credentials
- Click Create Credentials → OAuth client ID
- For Application type, select Desktop app
- Enter a name (e.g.,
Drive Forge Desktop) - Click Create
- A dialog will appear with your Client ID and Client Secret
- Click Download JSON
- Rename the downloaded file to
credentials.json - Move it to a secure location (e.g.,
~/.config/google-drive-forge/credentials.json)
pip install google-drive-forgeThe first time you run Google Drive Forge, it will open a browser for OAuth authorization:
# Set the path to your credentials
export GOOGLE_DRIVE_CREDENTIALS=~/.config/google-drive-forge/credentials.json
# Run the MCP server (it will open your browser)
google-drive-forge- A browser window will open
- Sign in with the Google account you added as a test user
- Click Continue (past the "unverified app" warning)
- Click Allow to grant Drive access
- A
token.jsonfile will be created in the same directory ascredentials.json
If you're running on a headless server:
export GOOGLE_DRIVE_CREDENTIALS=/path/to/credentials.json
export GOOGLE_DRIVE_HEADLESS_AUTH=true
google-drive-forgeThis will print a URL to the console. Copy it, open it in any browser, complete the authorization, and paste the resulting code back into the terminal.
Add Google Drive Forge to your MCP client configuration:
{
"mcpServers": {
"google-drive-forge": {
"command": "google-drive-forge",
"env": {
"GOOGLE_DRIVE_CREDENTIALS": "/path/to/credentials.json"
}
}
}
}| Variable | Description | Default |
|---|---|---|
GOOGLE_DRIVE_CREDENTIALS |
Path to credentials.json |
./credentials.json |
GOOGLE_DRIVE_HEADLESS_AUTH |
Enable console-based OAuth | false |
GOOGLE_DRIVE_PYTHON_PATH |
Custom Python executable | System default |
GOOGLE_DRIVE_SKILLS_DIR |
Directory for forged skills | ./skills |
- Make sure you added your email as a test user in the OAuth consent screen
- Delete
token.jsonand run the authentication flow again
- Verify
credentials.jsonis the correct file from Google Cloud Console
- Ensure you selected the
drivescope during OAuth consent screen setup
- Keep
credentials.jsonandtoken.jsonprivate — they grant access to your Google Drive - Don't commit them to git — add them to
.gitignore - Revoke access anytime at Google Account Permissions
Once setup is complete, see:
- Quick Start Guide — Basic usage examples
- Tool Reference — All available MCP tools
- Agentic Integration — Advanced autonomous features