Set up Google Classroom in Metorial for AI agents
Share Google Classroom with your team in Claude, ChatGPT and Cursor through Metorial: OAuth sign-in, 19 tools (5 read-only).
To give your team Google Classroom in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Google Classroom integration in a Metorial portal, and each person signs in to Google Classroom with their own account. Agents can manage courses, rosters, and assignments in Google Classroom. The integration has 19 tools, 5 read-only, 12 write and 2 destructive, plus 4 triggers.
What you'll learn
- How an admin shares Google Classroom in a portal and how each person connects
- The 26 OAuth scopes Google Classroom can request, and what each one allows
- How to keep the 5 read-only tools and reject the other 14
Before you start
- A portal with at least one access group
- An account with Google Classroom for each person who connects
- For the CLI steps: the Metorial CLI, signed in to your portal
Sign-in method
| Method | Type | What a person provides |
|---|---|---|
| Google OAuth | OAuth | Signs in to Google Classroom |
Google OAuth
People sign in to Google Classroom and approve the scopes you allow. The integration can request:
| Scope | Name | What it allows |
|---|---|---|
https://www.googleapis.com/auth/classroom.courses | Manage Courses | Create, edit, and delete classes |
https://www.googleapis.com/auth/classroom.courses.readonly | View Courses | View classes |
https://www.googleapis.com/auth/classroom.rosters | Manage Rosters | Manage class rosters |
https://www.googleapis.com/auth/classroom.rosters.readonly | View Rosters | View class rosters |
https://www.googleapis.com/auth/classroom.coursework.me | Manage Own Coursework | Manage own coursework and grades |
https://www.googleapis.com/auth/classroom.coursework.me.readonly | View Own Coursework | View own coursework and grades |
https://www.googleapis.com/auth/classroom.coursework.students | Manage Student Coursework | Manage coursework and grades for students in classes you teach |
https://www.googleapis.com/auth/classroom.coursework.students.readonly | View Student Coursework | View coursework and grades for students in classes you teach |
https://www.googleapis.com/auth/classroom.courseworkmaterials | Manage Coursework Materials | Manage classwork materials |
https://www.googleapis.com/auth/classroom.courseworkmaterials.readonly | View Coursework Materials | View classwork materials |
https://www.googleapis.com/auth/classroom.announcements | Manage Announcements | Manage announcements |
https://www.googleapis.com/auth/classroom.announcements.readonly | View Announcements | View announcements |
https://www.googleapis.com/auth/classroom.topics | Manage Topics | Manage topics |
https://www.googleapis.com/auth/classroom.topics.readonly | View Topics | View topics |
https://www.googleapis.com/auth/classroom.guardianlinks.students | Manage Guardians | Manage guardians for students |
https://www.googleapis.com/auth/classroom.guardianlinks.students.readonly | View Guardians | View guardians for students |
https://www.googleapis.com/auth/classroom.guardianlinks.me.readonly | View Own Guardians | View own guardians |
https://www.googleapis.com/auth/classroom.profile.emails | View Profile Emails | View email addresses of people in classes |
https://www.googleapis.com/auth/classroom.profile.photos | View Profile Photos | View profile photos of people in classes |
https://www.googleapis.com/auth/classroom.push-notifications | Push Notifications | Receive notifications about Classroom data changes |
https://www.googleapis.com/auth/classroom.addons.teacher | Manage Add-ons (Teacher) | Manage add-on attachments as a teacher |
https://www.googleapis.com/auth/classroom.addons.student | View Add-ons (Student) | View/update add-on attachments as a student |
https://www.googleapis.com/auth/classroom.student-submissions.me.readonly | View Own Submissions | View own submissions and grades |
https://www.googleapis.com/auth/classroom.student-submissions.students.readonly | View Student Submissions | View student submissions in classes you teach |
https://www.googleapis.com/auth/userinfo.profile | User Profile Info | View basic profile information |
https://www.googleapis.com/auth/userinfo.email | User Email | View email address |
The read-only tools need only https://www.googleapis.com/auth/classroom.profile.emails, https://www.googleapis.com/auth/classroom.rosters, https://www.googleapis.com/auth/classroom.coursework.students and https://www.googleapis.com/auth/classroom.courses.readonly. Allow just those in the Scopes picker when you create your own auth credentials, and the connection cannot change anything.
Use your own Google Classroom OAuth app
With your own OAuth app, people see your company's name on the Google Classroom consent screen, and the client ID and secret belong to you.
Start the credentials in Metorial
In the dashboard, select Settings, then Organization Settings. Under Integrations and MCP, select Provider Auth, then Create Auth Credentials. Choose Google Classroom and copy the Redirect URI.
Register the app
In the Google Cloud console, enable the API behind Google Classroom under APIs & Services, Library. Then go to Google Auth platform, Clients, click Create Client, choose Web application, and paste the redirect URI from Metorial under Authorized redirect URIs. Google shows the client secret only when you create the client.
The Google Workspace guide covers the consent screen and the OAuth client in Google Cloud step by step.
Finish in Metorial
Copy the app's client ID and client secret. Back in Metorial, enter a Name, the Client ID and the Client Secret, review Scopes, and select Create. Then pick these credentials for the Google Classroom integration.
Admin: share Google Classroom in a portal
In the dashboard
Open Shared Resources
Open Workforce, choose the portal, and select Shared Resources under Access.
Share a new integration
Select Share a Resource, then New Integration, and choose Google Classroom. For how members connect, choose Each person connects, so everyone signs in to Google Classroom as themselves.
Limit the tools
Under Tool Filters, set the write and destructive groups to Reject if agents should only read from Google Classroom.
Choose who gets it
Add the access groups that should see Google Classroom. When a person asks for access from the portal, the request appears under Access Requests.
With the CLI
The CLI cannot create the per-user Google Classroom integration. Once it exists, check which groups have it:
Employee: connect Google Classroom
In the portal
Open Google Classroom in the catalog
Sign in to your portal and open Google Classroom. The status reads Available.
Authenticate
Under Quick setup, select Authenticate. A Google Classroom sign-in tab opens. Sign in and approve the permissions listed.
Confirm
The status changes to Configured. If it later reads Needs reconnect, select Reconnect and sign in again.
With the CLI
catalog search prints the catalog item ID.
Add it to your AI client
metorial install adds your Google Classroom connection to a local MCP client such as Claude Code, Cursor or Codex. metorial list prints the integration ID and metorial client list the client identifiers.
For a client that takes a server URL, such as ChatGPT, metorial install custom <integration-id> creates an installation token and shows the endpoint details.
Make it read-only
Open the integration's Tool Filters and set the write and destructive groups to Reject. Agents keep the 5 read-only tools, such as get_course and list_roster, and lose the 12 write tools, such as create_course or manage_roster, and the 2 destructive tools, such as delete_course or delete_coursework.
Employees see the result on the integration's page in the portal under Tool access. For the full walkthrough, see Tool permissions.
Check it worked
metorial tools lists the 19 tools, minus any you rejected. list_courses takes no input. It lists courses in Google Classroom.
To see every input a tool takes, run metorial schema <integration-id> <tool-key>.
Tools
Read-only tools (5)
get_user_profile: Retrieve a user profile from Google Classroom by user ID or email address. NeedsuserId.list_roster: List teachers and/or students enrolled in a Google Classroom course. NeedscourseId.list_coursework: List coursework (assignments, questions) in a Google Classroom course. NeedscourseId.list_courses: List courses in Google Classroom.get_course: Retrieve detailed information about a specific Google Classroom course by its ID or alias. NeedscourseId.
Write tools (12)
manage_submissions: List, grade, turn in, return, or reclaim student submissions for coursework in Google Classroom. NeedscourseId,courseWorkIdandaction.create_coursework: Create an assignment, quiz, or other coursework in a Google Classroom course. NeedscourseId,titleandworkType.manage_coursework_materials: Create, list, update, or delete coursework materials in a Google Classroom course. NeedscourseIdandaction.update_course: Update an existing Google Classroom course. NeedscourseId.manage_guardians: List, invite, and remove guardians for students in Google Classroom. NeedsstudentIdandaction.manage_roster: Add or remove teachers and students from a Google Classroom course. NeedscourseIdandaction.create_course: Create a new course in Google Classroom. Needsname.manage_topics: Create, list, update, or delete topics in a Google Classroom course. NeedscourseIdandaction.manage_invitations: Create, list, accept, or delete course invitations in Google Classroom. Needsaction.manage_announcements: Create, list, update, or delete announcements in a Google Classroom course. NeedscourseIdandaction.manage_rubrics: Create, list, update, or delete rubrics for coursework in Google Classroom. NeedscourseId,courseWorkIdandaction.update_coursework: Update selected teacher-editable fields on coursework created by the same Google OAuth developer project.
Destructive tools (2)
delete_course: Delete a Google Classroom course. NeedscourseId.delete_coursework: Delete coursework created by the same Google OAuth developer project.
Triggers
Google Classroom has 4 triggers, which fire on events in Google Classroom:
coursework_changes: Triggers when coursework (assignments, questions) is created or updated in courses you teach.course_roster_changes: Triggers when students or teachers are added to or removed from a course.inbound_webhookannouncement_changes: Triggers when announcements are created or updated in courses you teach.
Next steps
- Claude Code, Cursor, Codex and ChatGPT: connect each client to your portal and use Google Classroom there
- Create custom OAuth credentials: the Provider Auth screens in more detail
- Tool permissions: tool filters and what employees see
- Google Workspace guide: the consent screen and the OAuth client in Google Cloud
- Google Classroom on metorial.com: the integration overview