Gemini Local MCP — Development skill for Claude Code
Connect cloud Gemini App to your local Windows workspace and CLI agents (Claude Code, agy, Codex) via Tailscale Funnel + OAuth 2.1 + FastMCP.
How to install Gemini Local MCP
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open guge0/gemini-local-mcp and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Gemini Local MCP does
Connect cloud Gemini App to your local Windows workspace and CLI agents (Claude Code, agy, Codex) via Tailscale Funnel + OAuth 2.1 + FastMCP.
Alternatives in Development
- Connect Vybe — Connect and authenticate the Vybe Solana MCP server over OAuth 2.2k ★
- Quosparr — 🐦 Native menu bar & tray app for macOS, Windows and Linux: track Codex, Claude Code and Grok quotas, resets 288 ★
- Cloud Run Debug — Diagnose a failing Cloud Run service — Antigravity (agy/Gemini) digests the error logs cheaply, Claude infers 284 ★
README
gemini-local-mcp
**中文** | [English](README_EN.md)
Windows 10/11 · Python 3.11+ · FastMCP (Streamable HTTP) · OAuth 2.1 + PKCE · MIT License
让云端 **Gemini App(Custom Connected App)** 安全直连你的 Windows 电脑:在白名单目录内读写代码,并异步调度本地 CLI Worker(如 Claude Code、Antigravity CLI `agy`、Codex 等)。
**无需买域名、无需租服务器**:配合免费 **Tailscale Funnel** + 一键双击 `Start-MCP.bat`,几分钟即可跑通完整链路。
云端 Gemini App -> Tailscale Funnel (免费固定 HTTPS) -> 本地 FastMCP (127.0.0.1:8765) -> 白名单目录 / 本地 CLI Worker
核心特性
- Agent-Ready 开箱即配:把本仓库地址直接发给你的本地编程 Agent(Claude Code / Cursor / Antigravity 等),即可按文档自动完成环境初始化、密钥生成、隧道映射与连通性自检。
- 一键双击启停:提供
Start-MCP.bat与Stop-MCP.bat,首次启动自动创建.venv、安装依赖、生成本地配置并自动清理端口残留进程(防止 502 / 端口冲突)。 - 零域名成本公网 HTTPS:默认对接 Tailscale Funnel,免费获得固定
https://..ts.net公网域名与自动 TLS 证书。 - 完整 OAuth 2.1 + 双模式鉴权:内置 RFC 9728 / RFC 8414 发现端点、PKCE
S256、refresh_token、本地口令确认页与/oauth/revoke,同时兼容静态 Bearer Token,所有操作写入.runtime/audit.log。 - 强目录白名单隔离:所有文件工具(
fs_list/fs_read/fs_write/fs_patch)与 Workercwd均经Path.resolve()+is_relative_to()校验,拦截..路径穿越与越界符号链接。 - 配置热加载 & 异步防超时:
config.json与workers.json每次调用实时热加载;dispatch_worker立即返回task_id后台执行(禁用shell=True),完成后触发 Windows 桌面通知。
方式一:发给你的本地 AI Agent 自动部署(最省心)
如果你电脑上已经装了 **Claude Code / Cursor / Antigravity** 等本地 Agent,直接把下面这段话连同本仓库链接发给它即可:
请克隆并阅读 `gemini-local-mcp` 仓库的 `README.md`,严格按照其中的「Agent 自动部署清单」在我本机完成配置、启动与连通性自检,最后只给我一份可直接粘贴进 Gemini App 的 4 项连接信息。
Agent 自动部署清单(Agent Runbook)
本地 Agent 收到仓库后,**面向普通用户用通俗语言交互**,按以下 7 步顺序执行即可帮用户安全连上 Gemini:
- 检查前置环境与本机磁盘:
- 检查 Python 3.11+(
py -3.12或python --version)与tailscale(tailscale status)。 - 检测本机实际有哪些可用盘符(如
C:\、D:\、E:\)和常见工作目录,以及已安装的本地 CLI(claude、agy、codex等是否在PATH或本地路径)。 - 若用户尚未登录 Tailscale,先用一句话引导用户在电脑端登录。
- 检查 Python 3.11+(
- 开启 Tailscale Funnel 映射
8765端口:tailscale funnel --bg 8765 tailscale funnel status- 如果终端提示 Funnel 尚未开
Related Skills
Pocketdev
Develop from your phone: Claude Code writes code on your Mac while you watch it live on a real iPhone. Local x
Gw Setup
First-run setup for the Google Workspace plugin — creates the venv, walks you through a Google Cloud OAuth cli
Three Ws CLI
One command to connect any MCP client to three.ws: sign in with OAuth or an API key, write the three.ws MCP se
Three Ws
One command to connect any MCP client to three.ws: sign in with OAuth or an API key, write the three.ws MCP se
Agy Tools Rust
CLI 版本的 Antigravity API 反代工具,将 Google Cloud Code (Antigravity) 反代为 OpenAI/Claude/Gemini 兼容 API。
Netclode
Self hosted cloud coding agent with k3s + kata containers + cloud hypervisor microVMs + tailscale + any harnes
Related Agents
Agy PM
Background project manager for the layered team — plans with GPT (Codex) and Gemini 4 Neon in a short talk, ha
Ade
Agent sessions routinely outlast the machine that started them, and checking a Claude Code or Codex run from a
Bench Runner
Executes a11y skill benchmarks across hosted and local model families. Runs cloud/Codex/Ollama benchmark scrip