Google Workspace MCP: Full Suite Access
PocketPaw includes a one-click MCP preset that connects your agent to Drive, Gmail, Calendar, Sheets, Docs, Chat, and Admin through the Google Workspace CLI (gws).
Unlike the individual Gmail, Calendar, and Drive built-in tools, this preset uses the official gws CLI which dynamically discovers all Workspace APIs from Google’s Discovery Service — including Sheets, Chat, Admin, and any new APIs Google adds in the future.
This preset requires the gws CLI to be installed and authenticated before installing in PocketPaw. PocketPaw does not manage Google credentials — gws handles its own OAuth flow.
Prerequisites
Install the gws CLI
npm install -g @googleworkspace/cliSet up your GCP project
This configures a Google Cloud project and enables the required Workspace APIs:
gws auth setupFollow the prompts to select or create a GCP project. The command enables Drive, Gmail, Calendar, Sheets, Docs, Chat, and Admin APIs automatically.
Authenticate
gws auth loginOpens your browser for Google OAuth consent. Approve the requested scopes. Tokens are stored locally on your machine — PocketPaw never sees them.
Verify
Confirm everything works:
gws drive files list --page-size 3If this returns files from your Drive, you’re ready.
Install the Preset
From the Dashboard
- Open the PocketPaw web dashboard
- Go to MCP Servers in the sidebar
- Open the Presets catalog
- Find Google Workspace under the Productivity category
- Click Install
No API keys or environment variables are needed — the preset uses your existing gws auth session.
From the Config File
Add to ~/.pocketpaw/mcp.json:
{ "servers": { "google-workspace": { "command": "gws", "args": ["mcp"], "transport": "stdio" } }}Restart PocketPaw to pick up the change.
How It Works
When installed, PocketPaw spawns gws mcp as a subprocess over stdio. The gws CLI starts a Model Context Protocol server that exposes Google Workspace APIs as structured tools. The agent can then call any Workspace API through the MCP session.
PocketPaw Agent → MCP Manager (stdio) → gws mcp (subprocess) → Google Workspace APIs (Drive, Gmail, Calendar, Sheets, Docs, Chat, Admin)Because gws reads Google’s Discovery Service at runtime, it automatically picks up new API endpoints and methods without needing an update.
Example Usage
Once installed, your agent can interact with any Google Workspace service:
User: Search my Drive for the Q4 budget spreadsheetAgent: [calls gws drive.files.list] → Found "Q4 Budget 2026" in Shared Drives
User: Send an email to the team about tomorrow's standupAgent: [calls gws gmail.users.messages.send] → Email sent to [email protected]
User: Create a calendar event for Friday at 2pmAgent: [calls gws calendar.events.insert] → Created "Team Sync" on Friday 2:00–2:30 PM
User: Add a row to the expenses spreadsheetAgent: [calls gws sheets.spreadsheets.values.append] → Added row to "Expenses 2026"Filtering Services
By default, gws mcp exposes all Workspace services. You can limit it to specific services by modifying the args:
{ "servers": { "google-workspace": { "command": "gws", "args": ["mcp", "-s", "drive,gmail,calendar"], "transport": "stdio" } }}Available services: drive, gmail, calendar, sheets, docs, chat, admin, or all (default).
Alternative Authentication
If you prefer not to use the interactive gws auth login flow, the gws CLI supports environment variables:
| Method | Variable | Description |
|---|---|---|
| Credentials file | GOOGLE_WORKSPACE_CLI_CREDENTIALS_FILE | Path to credentials.json or service account JSON |
| Access token | GOOGLE_WORKSPACE_CLI_TOKEN | Pre-fetched OAuth access token |
To pass these through PocketPaw, add them to the server’s env in ~/.pocketpaw/mcp.json:
{ "servers": { "google-workspace": { "command": "gws", "args": ["mcp"], "transport": "stdio", "env": { "GOOGLE_WORKSPACE_CLI_CREDENTIALS_FILE": "/path/to/service-account.json" } } }}Health Check
PocketPaw includes an integration health check that verifies the gws binary is installed. If it’s missing, the health dashboard shows:
Google Workspace CLI — warning gws not found — Google Workspace MCP preset won’t work without it Fix:
npm i -g @googleworkspace/cli
Troubleshooting
”gws: command not found”
The gws CLI isn’t in your PATH. Install it:
npm install -g @googleworkspace/cliThen restart PocketPaw.
OAuth consent error
If you see an OAuth error during gws auth login:
- Open the OAuth consent screen in your GCP project
- Add your email as a test user
- Ensure the client type is Desktop app (not Web)
- Retry
gws auth login
MCP server won’t connect
Verify gws mcp works standalone:
echo '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"test","version":"1.0.0"}}}' | gws mcpYou should get a JSON response with server capabilities. If not, check gws auth login status.
vs. Built-in Google Tools
| Feature | Built-in Tools | gws MCP Preset |
|---|---|---|
| Setup | PocketPaw OAuth flow | gws auth login (external) |
| APIs covered | Gmail, Calendar, Drive, Docs | All Workspace APIs (auto-discovered) |
| Sheets support | No | Yes |
| Chat support | No | Yes |
| Admin support | No | Yes |
| Updates | Requires PocketPaw update | Automatic via Discovery Service |
| Credentials | Managed by PocketPaw | Managed by gws CLI |
Related
MCP Servers
Learn about Model Context Protocol setup and configuration in PocketPaw.
Gmail Integration
Use the built-in Gmail tools for search, read, and send operations.
Google Calendar
Use the built-in Calendar tools for event management.