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 分