Google Classroom MCP Server
Google Classroom MCP サーバー
Claude や MCP プロトコルをサポートするその他の AI アシスタントを通じて Google Classroom データへのアクセスを提供する MCP (Model Context Protocol) サーバー。
設定
前提条件
Node.js (v16 以上)
Google Classroom API が有効になっている Google Cloud Platform プロジェクト
Google Classroom API の OAuth 2.0 クライアント認証情報
インストール
Smithery経由でインストール
Smithery経由で Claude Desktop 用の Google Classroom MCP サーバーを自動的にインストールするには:
npx -y @smithery/cli install @faizan45640/google-classroom-mcp-server --client claude手動でインストールする
このリポジトリをクローンする
依存関係をインストールします:
npm installGoogle OAuth クライアント認証情報を、プロジェクト ルートの
credentials.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"]
}
}Googleで認証する:
node index.js authこれにより、ブラウザ ウィンドウが起動し、OAuth フローが完了し、資格情報がtokens.jsonに保存されます。
claude_desktop_config.json(通常は%APPDATA%\Claude\内) を更新して、Claude がこのサーバーを使用するように設定します。
{
"mcpServers": {
"class": {
"command": "node",
"args": [
"PATH_TO_YOUR_DIRECTORY\\index.js"
]
}
}
}Related MCP server: gscope
使用法
利用可能なツール
サーバーは、Google Classroom とやり取りするためのいくつかのツールを提供します。
1. courses - Google Classroom のすべてのコースを一覧表示します
Use the 'courses' tool to get a list of all your Google Classroom courses2. course-details - 特定のコースの詳細情報を取得する
Use the 'course-details' tool with the courseId parameter to get details and announcements for a specific courseパラメータ:
courseId: コースのID(coursesツールから取得できます)
3. assignments - 特定のコースの課題を取得する
Use the 'assignments' tool with the courseId parameter to get assignments and your submissions for a specific courseパラメータ:
courseId: コースのID(coursesツールから取得できます)
クロードの例題
Google Classroomのコースをすべて表示
ID 123456789 の私の数学コースの詳細をご覧ください
ID 987654321 の歴史コースのすべての課題を表示します
権限
サーバーは次の Google Classroom API 権限を要求します。
classroom.courses.readonly- コース情報にアクセスするclassroom.announcements.readonly- コースのアナウンスにアクセスするclassroom.coursework.me.readonly- 授業や課題にアクセスするにはclassroom.rosters.readonly- クラス名簿にアクセスする
トラブルシューティング
権限エラーが発生した場合は、以下を試してください。
権限を更新するには、再度 auth コマンドを実行します。
node index.js authアプリがテストモードの場合、Google Cloud Console で Google アカウントがテストユーザーとして追加されていることを確認します。
authenticateAndSaveCredentials関数の OAuth スコープをチェックして、ニーズに合致していることを確認します。
注記
このサーバーは、Claude AI または他の MCP 互換アシスタントで使用するように設計されています。
すべての API リクエストは認証された Google アカウントを使用して行われます
トークンの更新はサーバーによって自動的に処理されます
機密性の高い認証情報は
tokens.jsonファイルにローカルに保存されます
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceAn MCP server that integrates with the Dnevnik.ru API to provide AI assistants with access to school schedules, grades, and homework. It enables users to query educational data and manage school-related information through natural language.2MIT
- Flicense-qualityDmaintenanceAn MCP server that enables AI assistants to interact with Google Docs, Sheets, and Drive using the user's own Google account.
- Alicense-qualityDmaintenanceUnified MCP server for Google Classroom, Drive, and Docs, enabling AI assistants to manage courses, assignments, files, and documents.MIT
- Alicense-qualityCmaintenanceAn MCP server that connects AI assistants to university D2L Brightspace and Piazza, enabling query of courses, grades, assignments, deadlines, files, and Piazza posts.7MIT
Related MCP Connectors
Driflyte MCP server which lets AI assistants query topic-specific knowledge from web and GitHub.
An MCP server that integrates with Discord to provide AI-powered features.
An MCP server that gives your AI access to the source code and docs of all public github repos
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/faizan45640/google-classroom-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server