Integrations
Provides access to Google Classroom data, allowing users to list courses, get course details and announcements, and retrieve assignments and submissions from their Google Classroom account.
Google Classroom MCP Server
An MCP (Model Context Protocol) server that provides access to Google Classroom data through Claude and other AI assistants that support the MCP protocol.
Setup
Prerequisites
- Node.js (v16 or higher)
- A Google Cloud Platform project with the Google Classroom API enabled
- OAuth 2.0 client credentials for the Google Classroom API
Installation
Installing via Smithery
To install Google Classroom MCP Server for Claude Desktop automatically via Smithery:
Installing Manually
- Clone this repository
- Install dependencies:
- Place your Google OAuth client credentials in a file named
credentials.json
in the project root:
- Authenticate with Google:
This will launch a browser window to complete the OAuth flow and save your credentials to tokens.json
.
- Configure Claude to use this server by updating
claude_desktop_config.json
(typically in%APPDATA%\Claude\
):
Usage
Available Tools
The server provides several tools for interacting with Google Classroom:
1. courses
- List all your Google Classroom courses
2. course-details
- Get detailed information about a specific course
Parameters:
courseId
: The ID of the course (can be obtained from thecourses
tool)
3. assignments
- Get assignments for a specific course
Parameters:
courseId
: The ID of the course (can be obtained from thecourses
tool)
Example Prompts for Claude
- Show me all my Google Classroom courses
- Get details for my Math course with ID 123456789
- Show me all assignments for my History course with ID 987654321
Permissions
The server requests the following Google Classroom API permissions:
classroom.courses.readonly
- To access course informationclassroom.announcements.readonly
- To access course announcementsclassroom.coursework.me.readonly
- To access your coursework and assignmentsclassroom.rosters.readonly
- To access class rosters
Troubleshooting
If you encounter permission errors, try:
- Running the auth command again to refresh permissions:Copy
- Ensuring your Google account is added as a test user in the Google Cloud Console if your app is in testing mode
- Checking the OAuth scopes in the
authenticateAndSaveCredentials
function to ensure they match your needs
Notes
- This server is designed to be used with Claude AI or other MCP-compatible assistants
- All API requests are made using your authenticated Google account
- Token refresh is handled automatically by the server
- Sensitive credentials are stored locally in the
tokens.json
file
This server cannot be installed
An MCP server that enables AI assistants to access and interact with Google Classroom data, allowing users to view courses, course details, and assignments through natural language commands.