# Google Classroom — Pipedream Connect

> Google Classroom helps educators create engaging learning experiences they can personalize, manage, and measure.

- API slug: `google_classroom` (use in MCP headers and tool keys)
- Auth: OAuth (Pipedream-managed)
- Categories: Learning & Education
- Website: https://classroom.google.com
- Managed OAuth scopes: `https://www.googleapis.com/auth/userinfo.email` · `https://www.googleapis.com/auth/userinfo.profile` · `https://www.googleapis.com/auth/classroom.courses.readonly` · `https://www.googleapis.com/auth/classroom.coursework.students` · `https://www.googleapis.com/auth/classroom.coursework.me` · `https://www.googleapis.com/auth/classroom.announcements.readonly`
- This page (HTML): https://pipedream.com/apps/google-classroom
- Tools: 2 actions · 4 triggers

## Connect via MCP (recommended)

- Endpoint: `https://remote.mcp.pipedream.net/v3`
- Headers: `Authorization: Bearer <token>` · `x-pd-project-id` · `x-pd-environment` · `x-pd-external-user-id` · `x-pd-app-slug: google_classroom`

```ts
import { Client } from "@modelcontextprotocol/sdk/client/index.js"
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js"
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const accessToken = await pd.rawAccessToken

const transport = new StreamableHTTPClientTransport(
  new URL("https://remote.mcp.pipedream.net/v3"),
  {
    requestInit: {
      headers: {
        Authorization: `Bearer ${accessToken}`,
        "x-pd-project-id": process.env.PIPEDREAM_PROJECT_ID!,
        "x-pd-environment": "production",
        "x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
        "x-pd-app-slug": "google_classroom",
      },
    },
  },
)

const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)

const { tools } = await mcp.listTools()

// e.g. run Get Assignment:
const result = await mcp.callTool({
  name: "google_classroom-get-assignment",
  arguments: {
    courseStates: ["Course States"],
    course: "Course",
  },
})
```

Docs: [MCP guide](https://pipedream.com/docs/connect/mcp/developers.md)

## API proxy

For a Google Classroom endpoint with no pre-built tool, the proxy forwards your request with the connected user's credentials attached.

```bash
# The path segment is the target URL, URL-safe base64 encoded:
# https://www.googleapis.com/oauth2/v1/userinfo

curl "https://api.pipedream.com/v1/connect/{project_id}/proxy/aHR0cHM6Ly93d3cuZ29vZ2xlYXBpcy5jb20vb2F1dGgyL3YxL3VzZXJpbmZv?external_user_id={external_user_id}&account_id=apn_xxxxxxx" \
  -H "Authorization: Bearer {access_token}" \
  -H "x-pd-environment: production"
```

Docs: [API proxy guide](https://pipedream.com/docs/connect/api-proxy.md)

## SDK

```ts
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "google_classroom-get-assignment",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    google_classroom: { authProvisionId: "apn_xxxxxxx" },
    courseStates: ["Course States"],
    course: "Course",
  },
})
```

Docs: [Managed auth guide](https://pipedream.com/docs/connect/managed-auth/quickstart.md) · [Tools guide](https://pipedream.com/docs/connect/components.md)

## Actions (2)

### `google_classroom-get-assignment` — Get Assignment (Read-only)

Retrieve information about an assignment. See the docs here

Full schema: https://pipedream.com/apps/google-classroom/actions/get-assignment.md

### `google_classroom-list-assignments` — List Assignments (Read-only)

Retrieve a list of assignments for a course. See the documentation

Full schema: https://pipedream.com/apps/google-classroom/actions/list-assignments.md

## Triggers (4)

### `google_classroom-assignment-done` — Assignment Done (Polling)

Emit new event when an assignment in a course is marked as done.

Full schema: https://pipedream.com/apps/google-classroom/triggers/assignment-done.md

### `google_classroom-new-announcement` — New Announcement (Polling)

Emit new event when an announcement is created.

Full schema: https://pipedream.com/apps/google-classroom/triggers/new-announcement.md

### `google_classroom-new-assignment` — New Assignment (Polling)

Emit new event when an assignment is added to a course.

Full schema: https://pipedream.com/apps/google-classroom/triggers/new-assignment.md

### `google_classroom-new-due-date` — New Due Date (Polling)

Emit new event when an assignment's due date is created or updated'.

Full schema: https://pipedream.com/apps/google-classroom/triggers/new-due-date.md

---

- All apps: https://pipedream.com/apps — index: https://pipedream.com/llms.txt
- Pipedream docs for agents: https://pipedream.com/docs/llms.txt
