How to integrate Google Classroom MCP with OpenCode

How to integrate Google Classroom MCP with OpenCode This guide explains how to connect Google Classroom MCP to OpenCode using Composio Connect, which simplifies OAuth, API changes, and reliability concerns. There are two ways to set this up: Via Composio Connect MCP Via the Composio CLI

Google Classroom logoGoogle Classroom
Oauth2

Google Classroom is a free web service for educators and students to manage assignments and communication. It streamlines classroom collaboration and grading, making teaching simpler and more connected.

62 Tools

How to integrate Google Classroom MCP with OpenCode

This guide explains how to connect Google Classroom MCP to OpenCode using Composio Connect, which simplifies OAuth, API changes, and reliability concerns.

There are two ways to set this up:

Also integrate Google Classroom with

Why use Composio?

Composio provides a single MCP server or CLI tool that exposes a set of meta-tools, allowing you to:

  • Connect to 1,000+ apps with on-demand tool loading, so you do not fill your LLM context window with unnecessary tool definitions.
  • Use programmatic tool calling through a remote Bash tool, letting LLMs write their own code to handle complex tool chaining. This reduces back-and-forth for frequent tool calls.
  • Handle large tool responses outside the LLM context to keep conversations lean.

Connect Google Classroom with OpenCode

Option 1: Using Composio CLI

1. Install Composio CLI

Install the Composio CLI, authenticate, and initialize your project:

bash
# Install the Composio CLI
curl -fsSL https://composio.dev/install | bash

# Authenticate with Composio
composio login

During login, you will be redirected to the sign-in page. Finish the flow and you are all set.

Composio CLI authorization screen

2. Authorize Google Classroom

Once the CLI is installed, it is essentially done. Give OpenCode access to your apps with these steps:

  1. Launch OpenCode.
  2. Prompt it to "Authenticate with Google Classroom Composio".
  3. Complete the authentication and authorization flow, and your Google Classroom integration is all set.
  4. Start asking anything you want.

Option 2: Using Composio MCP

You can also connect Google Classroom to OpenCode by adding Composio as an MCP server through the OpenCode CLI.

1. Add the Composio MCP server

bash
opencode mcp add

This launches an interactive prompt.

2. Fill in the fields

FieldValue
Namecomposio
Typeremote
URLhttps://connect.composio.dev/mcp
Require OAuthYes
Have client IDNo
OpenCode MCP server interactive prompt for Composio

Alternatively, you can skip the interactive prompt and paste the configuration directly into your OpenCode config file.

Open your global OpenCode config:

bash
open ~/.config/opencode/opencode.json

Add this under the mcp key and save the file.

bash
{
  "mcp": {
    "composio": {
      "type": "remote",
      "url": "https://connect.composio.dev/mcp",
      "enabled": true
    }
  }
}

3. Authenticate

Authenticate the Composio MCP server you just added:

bash
opencode mcp auth composio

This opens a browser session. Authorize Composio and you are done.

Composio browser authorization for OpenCode MCP

4. Verify installation

bash
opencode mcp list

5. Connect Google Classroom with OpenCode

Now, in the chat, ask the agent to connect to Google Classroom or give it any Google Classroom-related task.

For example, ask it to:

  • "List all active courses for this teacher"
  • "Create a new announcement in math class"
  • "Get details for course ID 12345"

It will prompt you to authenticate and authorize access to Google Classroom.

That is it. Composio tools are now available in OpenCode, and your Google Classroom account is ready to use.

Way Forward

Now that Google Classroom is connected, extend your setup by connecting the other apps you already use every day, so your agent can run true cross-app workflows end to end.

  • Connect Calendar to turn threads into scheduled meetings automatically.
  • Connect Slack or Teams to post summaries, approvals, and alerts where your team works.
  • Connect Notion, Linear, Jira, or Asana to convert requests into tickets, tasks, and docs.
  • Connect Drive, Dropbox, or OneDrive to fetch, file, and share attachments without manual steps.

Start with one workflow you do repeatedly, then keep adding apps as you find new handoffs. With everything behind a single MCP endpoint, your agent can coordinate multiple tools safely and reliably in one conversation.

TOOLS

Supported Tools

Every Google Classroom action and event your agent gets out of the box.

Create Course Alias

Tool to create an alias for a course.

Delete Course Alias

Tool to delete an alias of a course.

List Course Aliases

Tool to list aliases for a course.

Create Announcement

Tool to create an announcement in a course.

Delete Announcement

Tool to delete an announcement.

Get Announcement

Tool to get an announcement.

Get Add-on Context for Announcement

Tool to get metadata for Classroom add-ons in the context of a specific announcement post.

List Announcements

Tool to list announcements in a course.

Modify Announcement Assignees

Tool to modify assignee mode and options of an announcement.

Patch Announcement

Tool to update fields of an announcement.

Delete Add-on Attachment

Tool to delete an add-on attachment from a course announcement.

Get Add-on Attachment

Tool to get an add-on attachment from an announcement.

List Add-on Attachments

Tool to list all add-on attachments created under an announcement.

Delete Add-on Attachment

Tool to delete an add-on attachment from course work.

Get Add-on Context for Course Work

Tool to get metadata for Classroom add-ons in the context of a specific course work.

List Add-on Attachments on Course Work Material

Tool to list all add-on attachments under a course work material post.

Delete Course Work Material

Tool to delete a course work material.

Modify CourseWork Assignees

Tool to modify assignee mode and options of coursework.

Patch Course Work

Tool to update one or more fields of a course work.

List Course Work Rubrics

Tool to list rubrics for a specific coursework.

Create Course

Tool to create a new course.

Delete Course

Tool to delete a course.

Get Course

Tool to get details for a specific course.

Get Grading Period Settings

Tool to retrieve grading period settings for a course.

List Courses

Tool to list all courses accessible to the authenticated user.

Patch Course

Tool to update one or more fields of a Classroom course.

List Post Add-on Attachments

Tool to list all add-on attachments created under a post.

Get Add-on Context for Post

Tool to get metadata for Classroom add-ons in the context of a specific post.

Add Student to Course

Tool to add a student to a course.

Delete Course Student

Tool to delete a student from a course.

Get Course Student

Tool to retrieve a specific student of a course.

List Student Guardians

Tool to list guardians of a student in a course.

List Course Students

Tool to list students in a course.

Delete Course Teacher

Tool to delete a teacher from a course.

Get Teacher

Tool to get teacher enrollment.

List Course Teachers

Tool to list teachers in a course.

Create Course Topic

Tool to create a course topic.

Delete Course Topic

Tool to delete a course topic.

Get Course Topic

Tool to get a course topic.

List Course Topics

Tool to list topics in a course.

Patch Course Topic

Tool to update fields of a course topic.

Update Course

Tool to update a course.

Patch Course Work Material

Tool to update fields of a course work material.

Create CourseWork

Tool to create a CourseWork item in a course.

Delete CourseWork

Tool to delete a specific CourseWork.

Get CourseWork

Tool to get details of a specific coursework.

List CourseWork

Tool to list coursework in a course.

Create Course Work Material

Tool to create course work material.

Get Coursework Material

Tool to get a coursework material.

List CourseWorkMaterials

Tool to list course work materials in a course.

List Student Submissions

Tool to list student submissions for a specific coursework.

Reclaim Student Submission

Tool to reclaim a student submission for editing.

Get CourseWork Add-on Attachment

Tool to get an add-on attachment from course work.

Get Add-on Context for Course Work Material

Tool to get metadata for Classroom add-ons in the context of a specific course work material.

Create Invitation

Tool to create an invitation for a user to a course.

Delete Invitation

Tool to delete an invitation.

Get Invitation

Tool to retrieve an invitation by its identifier.

List Invitations

Tool to list invitations that the requesting user is permitted to view.

List Course Student Groups

Tool to list student groups in a course.

List CourseWork Add-on Attachments

Tool to list all add-on attachments created by an add-on under a course work.

Create Registration

Tool to create a registration for push notifications from Google Classroom.

Get User Profile

Tool to retrieve a user profile by user ID.

FAQ

Frequently asked questions

With a standalone Google Classroom MCP server, the agents and LLMs can only access a fixed set of Google Classroom tools tied to that server. However, with the Composio Tool Router, agents can dynamically load tools from Google Classroom and many other apps based on the task at hand, all through a single MCP endpoint.

Yes, you can. OpenCode fully supports MCP integration. You get structured tool calling, message history handling, and model orchestration while Tool Router takes care of discovering and serving the right Google Classroom tools.

Yes, absolutely. You can configure which Google Classroom scopes and actions are allowed when connecting your account to Composio. You can also bring your own OAuth credentials or API configuration so you keep full control over what the agent can do.

All sensitive data such as tokens, keys, and configuration is fully encrypted at rest and in transit. Composio is SOC 2 Type 2 compliant and follows strict security practices so your Google Classroom data and credentials are handled as safely as possible.

Start with Google Classroom.It takes 30 seconds.

Managed auth, hosted MCP servers, and every Google Classroom tool your agent needs.Free to start.

Start building