Google MCP
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| GITHUB_TOKEN | No | GitHub 只读桥接的访问令牌(等价于旧 github-mcp 的 GITHUB_PERSONAL_ACCESS_TOKEN)。 | |
| GOOGLE_SCOPES | No | 空格分隔覆盖默认 scope。 | |
| GITHUB_API_BASE | No | GitHub API 端点(企业版)。 | |
| GOOGLE_SHOT_DIR | No | 截图目录。 | |
| GOOGLE_CLIENT_ID | No | Google OAuth 客户端 ID。 | |
| GOOGLE_MCP_CONFIG | No | 配置文件路径(config.json)。 | |
| GOOGLE_BROWSER_HOST | No | 浏览器调试端点主机(默认 127.0.0.1)。 | 127.0.0.1 |
| GOOGLE_BROWSER_PORT | No | 浏览器调试端点端口(默认 9333)。 | 9333 |
| GOOGLE_CLIENT_SECRET | No | Google OAuth 客户端密钥。 | |
| GOOGLE_MCP_TOKEN_FILE | No | token 文件路径。 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
三合一 MCP:GitHub 只读 + Google Workspace(Gmail + Drive + Calendar)+ 浏览器工具。 ★ 浏览器选择器(硬性):任何涉及浏览器的操作(打开网页/登录态页面/点按钮/截图/看流量), 先调 browser_pick 拿到 question + options,原样用 ask_user_question 弹给用户选「Edge MCP」还是「Google MCP」,按选择用 edge_* 或 google_* 工具。不要替用户选,也不要两个都调。 Google 浏览器工具:google_browser(connect/launch/status/login)→ google_tabs → google_goto → google_read/find → google_click/type/screenshot/eval 等,跑在独立端口 9333。 GitHub 只读工具(github_* 前缀):github_status/whoami/search_repositories/get_repository/list_branches/list_commits/get_commit/get_file/list_directory/get_readme/list_issues/get_issue/list_pulls/get_pull/get_pull_diff/list_releases/list_tags/search_code/search_issues,覆盖原 github-mcp 的仓库/Issue/PR/搜索能力。需配置 GITHUB_TOKEN。 Workspace 读工具(gmail_search/gmail_read/drive_search/drive_read/calendar_list/calendar_events)可直接调用。 Workspace 写工具必须两步:先 xxx_draft 拿到确认单与预览,把预览原样展示给用户、拿到明确同意,再 xxx_commit(带 confirmId、hash、consent 原话)。 绝不要在用户没看到预览并点头前调用任何 commit。google_revoke 需要用户明确说「确认撤销 Google 授权」。
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| browser_pickA | 【浏览器 MCP 选择器 · 调用任何浏览器操作前必须先调这个】当任务涉及浏览器操作(打开网页/登录态页面/点按钮/截图/看流量)时,边和 Google(本 MCP)都能做,先用本工具拿到选择问题与选项,原样用 ask_user_question 弹出让用户选「Edge MCP」还是「Google MCP」,用户选 Edge 就去调 edge_* 工具,选 Google 就用本 MCP 的 google_browser/google_* 工具。不要替用户选。 |
| google_authA | 第一次使用/token 失效时,完成 Google OAuth2 授权(打开浏览器,本地 loopback 收 code + PKCE)。授权成功后 token 只存本地,永不回传。 |
| google_statusA | 查看当前 Google 授权状态与服务器信息;不返回任何 token 明文。 |
| google_revokeB | 撤销 Google 授权并删除本地 token(需明确同意)。 |
| gmail_searchB | 搜索/列出邮件(Gmail 搜索语法)。只读。 |
| gmail_readB | 读取一封邮件的头部与正文(优先纯文本)。只读。 |
| gmail_send_draftA | 【第 1 步】准备发送邮件:返回确认单与预览,不真正发送。展示给用户并拿到同意后调用 gmail_send_commit。 |
| gmail_send_commitB | 【第 2 步】用户确认后真正发送邮件。consent 必须是用户对预览说的确认原话。 |
| drive_searchB | 搜索/列出 Google Drive 文件(返回元数据,不下载内容)。只读。 |
| drive_readB | 读取 Google 文档/表格内容为文本(Docs→txt,Sheets→csv)。只读。 |
| calendar_listC | 列出日历(含 id、名称、时区、权限)。只读。 |
| calendar_eventsB | 列出日历事件(支持时间范围与关键词)。只读。 |
| calendar_insert_draftA | 【第 1 步】准备新建日程:返回确认单与预览,不真正创建。展示给用户拿到同意后调用 calendar_insert_commit。 |
| calendar_insert_commitC | 【第 2 步】用户确认后真正创建日程。 |
| calendar_patch_draftB | 【第 1 步】准备修改日程:返回确认单与预览,不真正修改。 |
| calendar_patch_commitC | 【第 2 步】用户确认后真正修改日程。 |
| calendar_delete_draftB | 【第 1 步】准备删除日程:返回确认单与预览,不真正删除。 |
| calendar_delete_commitB | 【第 2 步】用户确认后真正删除日程(不可恢复)。 |
| google_browserA | 连接/启动/关闭 Google MCP 专用的 Chromium/Edge 浏览器(CDP 调试,默认独立端口 9333,与 edge-mcp 的 9222 不是同一个实例)。第一次用先 op=connect(复用已开着的浏览器),连不上再 op=launch(本服务拉独立 profile)。op=status 看状态,op=login 打开 Google 登录页(先 google_auth 拿授权)。 |
| google_tabsB | 标签页:list(含 id/title/url)、open、switch、activate、close。tab_id 为 CDP targetId,其它 google_* 工具可用它精确定位。 |
| google_gotoC | 导航:goto/back/forward/reload。默认等到 load;wait_until 可选 domcontentloaded/networkidle/none。 |
| google_readB | 读页面:mode=outline(默认,可交互元素清单)/text/html/aria。selector 可限定容器。 |
| google_findB | 在页面里找元素(selector/text/role+name/xpath),返回坐标与推荐选择器,点击前确认唯一性。 |
| google_clickB | 真实鼠标点击(先 scrollIntoView)。clear=true 先清空输入框,count=2 双击,button=right 右键。 |
| google_typeC | 向输入框输入文本(CDP insertText,支持中文)。clear=true 先清空,submit=true 回车。 |
| google_keyC | 按特殊键:Enter/Tab/Escape/Backspace/方向键/F1-F12,支持 ctrl/shift/alt/meta。 |
| google_scrollC | 滚动页面(真实 mouseWheel),selector 可指定容器。 |
| google_screenshotC | 截图并以图片返回(JPEG/PNG)。full_page=true 抓整页。 |
| google_evalC | 在当前页面执行 JS(表达式/函数体,支持 await)。返回值走 JSON 序列化。 |
| google_storageC | 读写页面 localStorage/sessionStorage/cookie(cookie 的 httpOnly 字段是关键证据)。 |
| google_consoleC | 读页面 console 输出与 JS 异常。 |
| google_networkC | 查看网络流量(CDP Network),op=log/list/body/clear。抓 XHR 出入参先 log 拿 request_id 再 body。 |
| google_mockC | 拦截并伪造响应(CDP Fetch),用于调试前端如何响应服务端异常。op=set/status/off。 |
| google_waitB | 等页面出现某段文字或某个元素(轮询 250ms),SPA 首屏渲染慢时用。 |
| google_dialogC | 处理页面 JS 弹窗(alert/confirm/prompt/beforeunload):accept=true 确定,false 取消。 |
| google_cdpC | 逃生舱:直接发一条 CDP 命令(scope=browser/page)。如 Page.captureScreenshot、Network.setUserAgentOverride。 |
| github_statusA | 查看 GitHub 只读桥接是否可用(是否配置 token)。只读,不返回 token 值。 |
| github_whoamiA | 查看当前 GitHub token 对应的账号(只读)。 |
| github_search_repositoriesC | 搜索 GitHub 仓库(只读)。 |
| github_get_repositoryB | 读取一个仓库的元数据(只读)。 |
| github_list_branchesC | 列出仓库分支(只读)。 |
| github_list_commitsA | 列出提交历史(只读,支持 sha/path/author/since/until 过滤)。 |
| github_get_commitC | 读取单个提交详情(只读)。 |
| github_get_fileB | 读取仓库中一个文件的内容(只读,二进制会提示)。 |
| github_list_directoryB | 列出仓库中一个目录的内容(只读)。 |
| github_get_readmeC | 读取仓库 README(只读)。 |
| github_list_issuesC | 列出仓库 Issue(只读,不含 PR)。 |
| github_get_issueC | 读取单个 Issue(只读)。 |
| github_list_pullsC | 列出 Pull Request(只读)。 |
| github_get_pullC | 读取单个 Pull Request(只读)。 |
| github_get_pull_diffB | 读取 Pull Request 的 diff/patch(只读,截断到 30000 字符)。 |
| github_list_releasesC | 列出 Release(只读)。 |
| github_list_tagsC | 列出 Tag(只读)。 |
| github_search_codeC | 搜索代码(只读,需 GitHub 代码搜索权限)。 |
| github_search_issuesC | 跨仓库搜索 Issue/PR(只读)。 |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 55 tools
Most tools have clearly distinct purposes, and the draft/commit pairs (gmail_send, calendar_insert/patch/delete) are explicitly labeled as two-step, which removes ambiguity. Minor overlaps exist between escape-hatch tools (google_eval vs google_cdp, google_read outline vs aria) and the two browser entry points (browser_pick vs google_browser), but descriptions explain the difference well enough.
There is a good domain-prefix scheme (google_, gmail_, drive_, calendar_, github_) that makes grouping predictable, but within prefixes the convention is mixed: some tools are verb_noun (github_get_issue, gmail_search), others bare verbs (google_goto, google_click), and others bare nouns (google_tabs, google_console). browser_pick breaks the pattern entirely and the Google prefix covers both Workspace and browser tools.
55 tools is far beyond the 25+ threshold and the server bundles four separate domains: browser automation (~20 tools), Gmail, Drive, Calendar, and a GitHub read-only bridge. Each area individually is reasonably scoped, but the combined surface is heavy and hard for an agent to navigate without misfires.
Browser automation and Calendar CRUD are thorough (with safe draft/commit confirmation), and the GitHub bridge is a complete read-only surface. However, Gmail lacks thread/label/modify/delete operations and Drive is read-only (no upload/create/write), leaving notable gaps in two of the four advertised domains.