The Google Classroom MCP Server is a specialized tool that integrates Google Classroom data with Claude AI and other AI assistants that support the Model Context Protocol (MCP). This server allows users to access and manage their Google Classroom courses, assignments, and announcements directly through AI-powered assistants.
shell
npm install
credentials.json
in the project root:json
{
"web": {
"client_id": "YOUR_CLIENT_ID",
"project_id": "YOUR_PROJECT_ID",
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
"token_uri": "https://oauth2.googleapis.com/token",
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
"client_secret": "YOUR_CLIENT_SECRET",
"redirect_uris": ["http://localhost:3000/auth/google/callback"]
}
}
shell
node index.js auth
claude_desktop_config.json
:json
{
"mcpServers": {
"class": {
"command": "node",
"args": ["PATH_TO_YOUR_DIRECTORY\\index.js"]
}
}
}
courses
- List all your Google Classroom coursesUse the courses
tool to get a list of all your Google Classroom courses.
course-details
- Get detailed information about a specific courseUse the course-details
tool with the courseId
parameter to get details and announcements for a specific course.
Parameters:
- courseId
: The ID of the course (can be obtained from the courses
tool)
assignments
- Get assignments for a specific courseUse the assignments
tool with the courseId
parameter to get assignments and your submissions for a specific course.
Parameters:
- courseId
: The ID of the course (can be obtained from the courses
tool)
The server requests the following Google Classroom API permissions:
- classroom.courses.readonly
- To access course information
- classroom.announcements.readonly
- To access course announcements
- classroom.coursework.me.readonly
- To access your coursework and assignments
- classroom.rosters.readonly
- To access class rosters
If you encounter permission errors, try:
1. Running the auth command again to refresh permissions:
shell
node index.js auth
2. Ensuring your Google account is added as a test user in the Google Cloud Console if your app is in testing mode.
3. Checking the OAuth scopes in the authenticateAndSaveCredentials
function to ensure they match your needs.
tokens.json
file.No description, website, or topics provided.
No releases published
No packages published