integration · google

Google Workspace — every API, one OAuth.

Google publishes machine-readable discovery docs for every Workspace API. wmcp.sh ingests them and your agent can read Gmail, schedule Calendar events, edit Sheets, search Drive — all from one Google sign-in. No SDKs to wrangle, no per-API token plumbing.

Last updated 2026-05-28 · works with Claude, OpenAI, LangChain, and any MCP client

vs. the alternatives

CapabilityGoogle API client libsPipedreamwmcp.sh
Setup timeInstall client lib per API + OAuth dancePipedream account + per-workflow authSign in once with Google
APIs coveredOne lib per APIManual workflow per APIGmail + Cal + Drive + Sheets + Docs — one client
MCP shapeWrap each call yourselfPer-workflowNative MCP tools
Token refreshYou handle itPipedream handles itWorker handles it (encrypted vault)
Multi-userYou wire per-user OAuthPer-account workflowConnected vault per wmcp user
CostFree libsFree tier + paid workflowsFree 100/day + $29/mo Pro

Tools your agent calls

All MCP-shaped — consumed directly by Claude tool_use, OpenAI function-calling, or LangChain.

ToolTypeReturns
gmail.users.messages.listLive actionInbox listing
gmail.users.messages.sendLive actionSent message ID
calendar.events.listLive actionEvents in a date range
calendar.events.insertLive actionCreated event
drive.files.listLive actionFile metadata + IDs
drive.files.get (export)Live actionFile content
sheets.spreadsheets.values.getLive actionCell range values
sheets.spreadsheets.values.updateLive actionUpdated range

TypeScript — agent schedules a calendar event

import { WmcpClient } from "@wmcp/sdk";
import { toAnthropicTools, executeToolUse } from "@wmcp/sdk/anthropic";
import Anthropic from "@anthropic-ai/sdk";

const client = new WmcpClient({ apiKey: process.env.WMCP_API_KEY });
const spec   = "https://calendar-json.googleapis.com/$discovery/rest?version=v3";
const tools  = (await client.tools(spec))
  .filter(t => t.name.includes("events"));

const anthropic = new Anthropic();
const msg = await anthropic.messages.create({
  model: "claude-opus-4-7",
  max_tokens: 1024,
  tools: toAnthropicTools(tools),
  messages: [{ role: "user", content: "Book 'sync w/ alex' tomorrow 2-3pm PT in my primary calendar." }],
});

for (const block of msg.content) {
  if (block.type === "tool_use") {
    // Worker auto-injects your connected Google OAuth token
    const result = await executeToolUse(client, spec, block);
    console.log(result);
  }
}

Frequently asked

Which Google APIs are covered?
All Google APIs that publish a discovery doc — that's effectively every Workspace + Cloud API. Common ones: Gmail, Calendar, Drive, Sheets, Docs, People, Tasks, Forms, Chat. Cloud APIs (Storage, BigQuery, Compute) work too via their own discovery URLs.
What scopes does wmcp.sh request on Google sign-in?
openid email profile plus gmail.modify, calendar, drive, spreadsheets. Broad enough to cover most agent use cases without re-OAuth. Reduce in Google Cloud Console if you want tighter scope per integration.
How is the OAuth refresh token stored?
Encrypted with AES-GCM-256 in Cloudflare KV, keyed off your wmcp user ID. The encryption key is a worker secret you control (TOKEN_ENC_KEY). The refresh token's used internally by the worker — your agent code never sees it.
Is Google's API rate-limiting a concern?
Yes — Google enforces per-project + per-user quotas. wmcp.sh respects 429 responses and surfaces them to your agent. Sustained heavy use should be on Google's paid quota tier on your own Cloud project.
Verification status (testing vs production)?
Until wmcp.sh's Google Cloud project is verified (sensitive scopes like Gmail need verification), the OAuth consent screen stays in Testing mode — capped at 100 users. We've started the verification process; production-eligible by mid-2026.

SaaS agent-readiness

Google Workspace OAuth is the example. If you're a SaaS founder thinking about agent traffic, see the founder-level checklist.

→ /agent-ready/saas  ·  cornerstone  ·  done-for-you ($499+)

Need this done for you?

Skip the wiring — we build, deploy, and monitor.

Custom adapter + hosted MCP at mcp.yourbrand.com + verified badge. From $499 one-time setup.

See /managed → Submit (free)