Skip to main content
Glama
urmi123-ui

Google MCP Server

by urmi123-ui

Google MCP サーバー

FastAPI ベースの MCP スタイルのサーバーで、Google Docs および Gmail と統合し、アクションを実行する前にターミナルでの承認を必要とします。

前提条件

  1. Google Cloud Console でプロジェクトを作成します。

  2. 以下の API を有効にします:

    • Google Docs API

    • Gmail API

  3. OAuth 2.0 クライアント ID 認証情報(デスクトップアプリタイプ)を作成します。

  4. JSON ファイルをダウンロードし、credentials.json にリネームして、このディレクトリ(google-mcp-server/)に配置します。

Related MCP server: Google Docs + Gmail MCP Server

インストール

pip install -r requirements.txt

サーバーの実行

python server.py
# or
uvicorn server:app --reload

使用方法

Google ドキュメントに追記

/append_to_doc に POST リクエストを送信します:

{
    "doc_id": "your_document_id",
    "content": "Text to append\n"
}

Gmail 下書きを作成

/create_email_draft に POST リクエストを送信します:

{
    "to": "example@example.com",
    "subject": "Test Draft",
    "body": "This is a test email body."
}

サーバーはこれらのアクションを実行する前に、ターミナルで承認を求めます。承認するには y と入力して Enter キーを押します。

Related MCP Connectors

Related MCP Servers