Skip to main content
Glama

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
手動でインストールする
  1. このリポジトリをクローンする
  2. 依存関係をインストールします:
npm install
  1. Google 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"] } }
  1. Googleで認証する:
node index.js auth

これにより、ブラウザ ウィンドウが起動し、OAuth フローが完了し、資格情報がtokens.jsonに保存されます。

  1. claude_desktop_config.json (通常は%APPDATA%\Claude\内) を更新して、Claude がこのサーバーを使用するように設定します。
{ "mcpServers": { "class": { "command": "node", "args": [ "PATH_TO_YOUR_DIRECTORY\\index.js" ] } } }

使用法

利用可能なツール

サーバーは、Google Classroom とやり取りするためのいくつかのツールを提供します。

1. courses - Google Classroom のすべてのコースを一覧表示します
Use the 'courses' tool to get a list of all your Google Classroom courses
2. 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ツールから取得できます)

クロードの例題

  1. Google Classroomのコースをすべて表示
  2. ID 123456789 の私の数学コースの詳細をご覧ください
  3. ID 987654321 の歴史コースのすべての課題を表示します

権限

サーバーは次の Google Classroom API 権限を要求します。

  • classroom.courses.readonly - コース情報にアクセスする
  • classroom.announcements.readonly - コースのアナウンスにアクセスする
  • classroom.coursework.me.readonly - 授業や課題にアクセスするには
  • classroom.rosters.readonly - クラス名簿にアクセスする

トラブルシューティング

権限エラーが発生した場合は、以下を試してください。

  1. 権限を更新するには、再度 auth コマンドを実行します。
    node index.js auth
  2. アプリがテストモードの場合、Google Cloud Console で Google アカウントがテストユーザーとして追加されていることを確認します。
  3. authenticateAndSaveCredentials関数の OAuth スコープをチェックして、ニーズに合致していることを確認します。

注記

  • このサーバーは、Claude AI または他の MCP 互換アシスタントで使用するように設計されています。
  • すべての API リクエストは認証された Google アカウントを使用して行われます
  • トークンの更新はサーバーによって自動的に処理されます
  • 機密性の高い認証情報はtokens.jsonファイルにローカルに保存されます
-
security - not tested
A
license - permissive license
-
quality - not tested

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

AI アシスタントが Google Classroom データにアクセスして操作できるようにする MCP サーバー。ユーザーは自然言語コマンドを使用してコース、コースの詳細、課題を表示できます。

  1. 設定
    1. 前提条件
    2. インストール
  2. 使用法
    1. 利用可能なツール
    2. クロードの例題
  3. 権限
    1. トラブルシューティング
      1. 注記

        Related MCP Servers

        • -
          security
          F
          license
          -
          quality
          MCP 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 -
        • -
          security
          F
          license
          -
          quality
          An 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 -
          Python
          • Linux
          • Apple
        • -
          security
          F
          license
          -
          quality
          An MCP (Multi-Agent Conversation Protocol) Server that provides a standardized interface for interacting with Google's Cloud Vision API, enabling AI agents to analyze images and extract visual information through natural language.
          Last updated -
          Python
        • -
          security
          F
          license
          -
          quality
          This 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 -
          Python
          • Linux
          • Apple

        View all related MCP servers

        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