Google Mcp

io.github.matiasbattocchia由 GitHub 帳號 matiasbattocchia 發布v0.1.2更新於 Oct 24, 2026

Streamable HTTP MCP server for Google Calendar and Sheets with OAuth login.

已驗證Streamable HTTP可網頁執行效率與工作流資料與分析

概覽

AI 產生的概覽

託管式 MCP 伺服器,透過代理 OAuth 登入與 API 金鑰,讓 AI 助理讀取和管理你的 Google 日曆活動與 Google 試算表。

可以做什麼
列出日曆、依日期篩選列出活動,並查詢空閒/忙碌時段(不向助理揭露活動細節);建立、更新和刪除日曆活動;列出已授權的試算表,讀取試算表中介資料、工作表結構與欄位統計;依條件或依語意搜尋列,讀取和寫入範圍,附加列並建立新試算表。
適用情境
當你希望助理處理 Google 日曆和選定的 Google 試算表,又不想建立 Google Cloud 專案或執行本機伺服器時適用,例如安排行程或查詢、更新試算表資料。
執行需求
需要能連上網路的遠端端點 g.mcp.openbsp.dev。需要 Google 帳號登入並授予日曆與試算表權限,然後向服務方取得 API 金鑰,以 Bearer 權杖形式放在 Authorization 標頭中。不需本機執行環境或環境變數。
安裝前請注意
伺服器持有可代表你操作 Google 帳號的 OAuth 權杖;服務方以明文保存 API 金鑰,OAuth 權杖則加密保存。它可建立、更新和刪除日曆活動,並可寫入試算表。你的 Google 資料會經過第三方託管伺服器。可透過刪除 API 金鑰或在 Google 帳號中移除授權來撤銷;舊金鑰在撤銷前一直有效。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Google Mcp,將其新增到工作區。
  2. 連接 Authorization token 憑證。它們會被私密儲存,絕不會在公開頁面上展示。
  3. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.github.matiasbattocchia%2Fgoogle-mcp/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "google": {
      "type": "http",
      "url": "https://g.mcp.openbsp.dev/mcp",
      "headers": {
        "Authorization": "Bearer <YOUR_TOKEN>"
      }
    }
  }
}

README

OpenBSP MCP for Google Workspace

A public Model Context Protocol (MCP) server that lets AI assistants access your Google Calendar and Sheets.

Live at: https://g.mcp.openbsp.dev

Why this exists

Most Google MCP servers require you to create your own Google Cloud project, set up OAuth credentials, and run a local server. This is tedious and error-prone.

This project is different. It's a hosted public server with proxy OAuth. You just:

  1. Click "Login with Google"
  2. Get an API key
  3. Add it to your MCP client

No Google Cloud setup. No local servers. No environment variables. Just connect and go.

What you can do

Once connected, ask your AI assistant to:

  • List and search your calendar events
  • Create, update, or delete events
  • Read and write to Google Sheets
  • Create new spreadsheets

How it works

┌──────────────┐     ┌──────────────────┐     ┌──────────────┐│  AI Client   │────▶│  OpenBSP MCP     │────▶│  Google APIs ││  (Claude)    │◀────│  Server          │◀────│              │└──────────────┘     └──────────────────┘     └──────────────┘
  1. You select which Google products to connect (Calendar, Sheets)
  2. You authenticate with Google and grant permissions
  3. You receive an API key to configure your MCP client
  4. Your AI assistant can now access your Google data

Privacy & Security

What we store

DataPurposeProtection
API KeyAuthenticate your MCP clientStored as-is (random 256-bit value)
OAuth TokensAccess Google APIs on your behalfAES-256-GCM encrypted
ScopesRemember which products you authorizedNot encrypted

OAuth tokens are encrypted at rest using AES-256-GCM. The encryption key is stored separately from the database, so a database breach alone cannot expose your Google tokens.

What we DON'T store

  • Your Google password
  • Your email content
  • Your calendar events or spreadsheet data
  • Any personal information

Data retention

  • API keys: Stored until you revoke them (or until expiration if set)
  • OAuth tokens: Stored alongside your API key
  • Temporary auth states: Deleted after 10 minutes

How to revoke access

Option 1: Delete your API key

bash
curl -X DELETE https://g.mcp.openbsp.dev/key/YOUR_API_KEY

Option 2: Revoke from Google

  1. Go to Google Account Security
  2. Find "OpenBSP MCP" in the list
  3. Click "Remove Access"

Both options will immediately invalidate your API key.

Setup for MCP Clients

After authenticating, add this to your MCP client configuration:

json
{  "mcpServers": {    "google-mcp": {      "url": "https://g.mcp.openbsp.dev/mcp",      "headers": {        "Authorization": "Bearer YOUR_API_KEY"      }    }  }}

Programmatic integration

MCP clients can automate the setup by redirecting users to:

https://g.mcp.openbsp.dev/auth/google?products=calendar,sheets&callback=YOUR_CALLBACK_URL

After authentication, the user is redirected to your callback with credentials in the URL fragment:

YOUR_CALLBACK_URL#api_key=gmc_xxx&url=https://g.mcp.openbsp.dev/mcp&[email protected]&files=Budget.xlsx,Sales.xlsx
ParameterDescription
api_keyThe generated API key
urlThe MCP endpoint URL
emailThe Google account email that authorized access
filesComma-separated file names (only when Sheets authorized and files selected)

Available Tools

Calendar

Scopes requested:

  • calendar.events - read and write events
  • calendar.calendarlist.readonly - list your calendars (read-only)
ToolDescription
list_calendarsList all your calendars
list_eventsGet events with optional date filters
check_availabilityCheck busy/free times (no event details exposed)
create_eventCreate a new calendar event
update_eventUpdate an existing event
delete_eventDelete an event

Sheets

Scope requested:

  • drive.file - access only files you select or files created by the app
ToolDescription
list_authorized_filesList files the user has authorized for access
get_spreadsheetGet spreadsheet metadata, sheets, and tables
get_sheet_schemaGet column names and inferred types
describe_sheetGet statistical summary of all columns
search_rowsSearch for rows matching filter criteria
semantic_searchAI-powered semantic search over rows (finds by meaning, not exact match)
read_sheetRead data from a range (e.g., "A1:D10")
write_sheetWrite data to a range
append_rowsAppend rows (supports Tables with tableId for footer-aware append)
create_spreadsheetCreate a new spreadsheet

The drive.file scope only grants access to files the user explicitly selects during authentication (via Google Drive Picker) or files created by the app. Use list_authorized_files to discover which spreadsheets are available.

Tables support: The get_spreadsheet tool returns table metadata including tableId. Pass this to append_rows for proper table-aware appending that respects footers and auto-expands the table.

Semantic search: The semantic_search tool uses AI embeddings to find rows by meaning. Powered by TAG.

Self-Hosting

Want to run your own instance? See DEPLOY.md for instructions.

FAQ

Is this official? No, this is an independent open-source project. It is not affiliated with Google or Anthropic.

Is it safe? We only request the minimum permissions needed. Your data flows directly between Google and your AI client through our server - we don't store or log it.

Can I see the code? Yes! This project is open source. Review the code, run your own instance, or contribute improvements.

What if I lose my API key? Generate a new one by authenticating again. Old keys remain valid unless you revoke them.

Does it cost anything? This public instance is free. If you self-host, you'll pay for Cloudflare Workers (generous free tier available).

來源:README.md,提交 66972ac

工具

0
該伺服器需要 API 金鑰等憑證,因此 SourceWeft 無法在沒有憑證的情況下讀取其工具,也未收錄。

版本歷史

1
  1. v0.1.2最新Sep 16, 2026

評分

已滿足適用檢查項的 85%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分