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 サーバーを自動的にインストールするには:
手動でインストールする
このリポジトリをクローンする
依存関係をインストールします:
Google OAuth クライアント認証情報を、プロジェクト ルートの
credentials.jsonという名前のファイルに配置します。
Googleで認証する:
これにより、ブラウザ ウィンドウが起動し、OAuth フローが完了し、資格情報がtokens.jsonに保存されます。
claude_desktop_config.json(通常は%APPDATA%\Claude\内) を更新して、Claude がこのサーバーを使用するように設定します。
使用法
利用可能なツール
サーバーは、Google Classroom とやり取りするためのいくつかのツールを提供します。
1. courses - Google Classroom のすべてのコースを一覧表示します
2. course-details - 特定のコースの詳細情報を取得する
パラメータ:
courseId: コースのID(coursesツールから取得できます)
3. assignments - 特定のコースの課題を取得する
パラメータ:
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
Related Resources
Related MCP Servers
- -security-license-qualityMCP server that enables AI assistants to perform SEO automation tasks including keyword research, SERP analysis, and competitor analysis through Google Ads API integration.Last updated -1
- -security-license-qualityAn MCP server that provides access to Google's API Discovery Service, allowing agents to discover and interact with Google APIs through natural language commands.Last updated -
- -security-license-qualityThis MCP Server provides a natural language interface to interact with Google's Policy Analyzer API, allowing users to analyze policies and evaluate compliance through conversations.Last updated -
- -security-license-qualityAn MCP server that enables users to query documents from Google Drive using AI assistance, providing tools for searching vector databases and generating answers based on document content.Last updated -