Command Palette

Search for a command to run...

UnylyUnyly
Browse all

Gemini Web

FreeNot checked

Agent-first MCP Python SDK v2 gateway and skills for Gemini Web text, media, files, research, and account workflows.

GitHubEmbed

About

Agent-first MCP Python SDK v2 gateway and skills for Gemini Web text, media, files, research, and account workflows.

README

Gemini Web MCP

Gemini Web MCP (v0.2.1)

An agent-first MCP Python SDK v2 gateway and skills for Gemini Web workflows.

CI Codex Skill License Verified

English · 简体中文

Status: Active Development — Flagship Public Project

Disclaimer: this project is for technical research and educational use. It uses reverse-engineered Gemini Web behavior, which may violate Google service terms and may put accounts at risk. Use it at your own discretion.

What It Does

Gemini Web MCP exposes Gemini Web capabilities to MCP-compatible clients such as Codex, Claude Desktop, VS Code MCP clients, and other agent runtimes.

The main design choice is controlled tool layering. Agents should not see every private, account-level, or destructive operation by default. This server ships narrow GEMINI_TOOLS profiles, facade tools, MCP annotations, and a public Codex skill that tells agents how to choose the right surface.

MCP Protocol Compatibility

This server delegates MCP protocol behavior — discovery, version negotiation, JSON-RPC framing, the legacy initialize handshake, result validation, and structured protocol errors — to the official mcp Python SDK v2 through a dedicated MCPServer adapter. It contains no custom protocol stack; the codes in error_handler.py (NO_COOKIE, INVALID_COOKIE, SESSION_NOT_FOUND, …) are application-level errors returned in tool content, not JSON-RPC protocol errors.

The supported runtime is mcp>=2,<3 plus mcp-types>=2,<3. CI exercises both current server/discover clients on protocol 2026-07-28 and compatibility clients using the 2025-11-25 initialize path. Every tool advertises an outputSchema and returns validated structuredContent while retaining its existing text. See the explicit SDK/client compatibility and v1 end-of-support policy.

Install The Runtime Skill

The repository runtime Skill is 0.2.1. Install the public listing from ClawHub (and verify its displayed version when publication state matters):

clawhub install gemini-web-mcp

Or install the current repository copy with the cross-agent skills CLI:

npx --yes [email protected] add \
  https://github.com/Luckycat133/gemini-web-mcp \
  --skill gemini-web-mcp \
  --agent codex --copy --yes

This runtime skill teaches an agent how to operate the installed tools safely. Repository contributors should install the separate development skill:

npx --yes [email protected] add \
  https://github.com/Luckycat133/gemini-web-mcp \
  --skill gemini-web-mcp-development \
  --agent codex --copy --yes

The two roles are intentionally separate: gemini-web-mcp is for tool use; gemini-web-mcp-development owns implementation, tests, packaging, compatibility, and releases. .agents/skills is the single repository source so clients that scan both .agents and .codex do not discover duplicate names.

The three-file runtime skill bundle is released on ClawHub under MIT-0. The MCP server source and the repository-development skill remain AGPL-3.0-only.

Install The MCP Server

One-command, credential-free proof (requires uv):

uvx --from git+https://github.com/Luckycat133/gemini-web-mcp@main gemini-mcp-onboarding

This installs into an isolated environment, starts the real stdio server with the model profile, and calls the static text manifest without forwarding Gemini Cookies or making a Gemini request. Pin @main to a reviewed commit SHA for immutable installs.

Minimal MCP client configuration:

{
  "mcpServers": {
    "gemini": {
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/Luckycat133/gemini-web-mcp@main",
        "gemini-mcp-server"
      ],
      "env": {
        "GEMINI_TOOLS": "model"
      }
    }
  }
}

For local development from source:

git clone https://github.com/Luckycat133/gemini-web-mcp.git
cd gemini-web-mcp
python -m venv .venv
. .venv/bin/activate
pip install -e ".[all,dev]"

Run the default content workflow surface:

GEMINI_TOOLS=core python -m src.server
# equivalent installed console entrypoint
GEMINI_TOOLS=core gemini-mcp-server

Run the compact, low-token facade:

gemini-mcp-skill-server

Run the focused assistance surface (second opinions, grounded search, image/mixed-input understanding, async Deep Research):

gemini-mcp-assist

See copyable Codex, Claude Desktop, Claude Code, and VS Code configurations plus verified text/image walkthroughs. Live examples require explicit account opt-in; no live Gemini request is part of PR CI.

Tool Profiles

Profile Use When Surface
model / chat The agent only needs Gemini model calls Smallest model-call surface
history The agent is organizing or searching chat history gemini_history facade plus safe helpers
history-organize The agent can move chats into native Gemini notebooks History facade, notebook facade, explicit move tool
account-read The agent needs read-only account inventory gemini_account_inventory facade
scheduled-read The agent only needs to inspect scheduled actions Read-only scheduled actions
scheduled-admin The user explicitly authorized scheduled-action create/delete Scheduled mutation tools
core General content workflows Chat, media, files, research, manifest/cookie helpers
all Maintainers are verifying the full surface Full maintenance surface

Use model as the primary starting profile for text-only work, core for multimodal/content workflows, and gemini-mcp-skill-server when a fixed eleven-tool facade is more valuable than the primary schemas. all is not a general default.

Capabilities

Area Supported Workflows
Models Gemini Web model aliases for Flash-Lite, Flash, Pro, thinking levels, and guided learning modes
Chat One-shot chat, normalized collection of Gemini upstream streams, local sessions, temporary chat, saved Gem usage
Media Image generation/editing, Veo video generation, Lyria 3 / Lyria 3 Pro music routing
History List, scan, search, read, export, delete, and cleanup test artifacts
Notebooks List native Gemini notebooks, inspect notebook chats, move chats into notebooks
Account Inventory Public links, usage limits, library capabilities, modes, models, scheduled actions
Safety Metadata MCP annotations, tool manifest, privacy/destructive-operation guidance
Distribution Standalone Codex skill zip, wheel, source distribution, launch kit

Development Status

The maintained baseline is usable, but the development skill is not a completed feature checklist. Primary and compact history list/search/read/export/delete now share typed results; a chat deletion is only called verified after positive absence evidence from a complete fresh history-metadata read-back. An explicitly authorized targeted live run on 2026-08-08 validated Cookie initialization, temporary and retained text, multi-turn context, primary/compact typed history, and verified deletion of every created chat. It was not a dedicated-account full canary and did not cover media, files, URLs, Deep Research, or account mutations. Remaining work includes that broader live baseline, typed results for other management actions, durable cleanup, and a shared long-operation job contract. The active repository version is 0.2.1 across the Python package, runtime skill, and development skill. The existing v0.2.0 tag remains immutable; new release refs use 0.2.1.

See Development status and next steps for the implemented, partial, deferred, and owner-decision boundaries. Offline CI or package success is not presented as current live Gemini behavior.

Distribution Assets

The current supported one-command path installs the reviewed main source (or a pinned commit) through uvx. GitHub release history may contain older version lines; use a wheel only when its tag and filename match the source version you intend to run.

The tag release workflow builds:

  • gemini-web-mcp-skill-*.zip: standalone Codex compatibility skill package
  • gemini-assist-skill-*.zip: standalone Codex assistance skill package
  • gemini_mcp_server-*-py3-none-any.whl: Python wheel
  • gemini_mcp_server-*.tar.gz: source distribution with docs, evaluations, and public skill files

Build the same package set locally:

python scripts/package_release.py --outdir dist

Documentation

Verification

Maintained baseline:

./.venv/bin/python -m ruff check src tests scripts
./.venv/bin/python -m mypy src scripts
./.venv/bin/python -m pytest -q
./.venv/bin/python scripts/run_contract_checklist.py
./.venv/bin/python scripts/smoke_profiles.py
./.venv/bin/python scripts/smoke_mcp_protocol.py
git diff --check

Skill packaging check:

for path in \
  .agents/skills/gemini-web-mcp-development \
  .agents/skills/gemini-web-mcp; do
  skills-ref validate "$path"
done

Security Notes

Do not commit .env, cookies.json, prompts.json, generated media, logs, or browser cookie material. Browser Cookie export can materialize sensitive account-authentication data in a local cache: require explicit approval, restrict access, never log/back up/share it, and remove it when no longer needed. Prefer GEMINI_TOOLS=core or narrower profiles unless the workflow requires account-level tools. Treat private chat text and destructive operations as explicit-user-intent actions. On macOS, browser-cookie access is bounded by GEMINI_BROWSER_COOKIE_TIMEOUT_SECONDS (15 seconds by default) so an unanswered system authorization request returns a sanitized error instead of hanging the MCP process.

from github.com/Luckycat133/gemini-web-mcp

Installing Gemini Web

This server has no published package — it is built from source. Open the repository and follow its README.

▸ github.com/Luckycat133/gemini-web-mcp

FAQ

Is Gemini Web MCP free?

Yes, Gemini Web MCP is free — one-click install via Unyly at no cost.

Does Gemini Web need an API key?

No, Gemini Web runs without API keys or environment variables.

Is Gemini Web hosted or self-hosted?

Self-hosted: the server runs locally on your machine via the install command above.

How do I install Gemini Web in Claude Desktop, Claude Code or Cursor?

Open Gemini Web on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.

Related MCPs

Compare Gemini Web with

Not sure what to pick?

Find your stack in 60 seconds

Author?

Embed badge for your README

Browse similar

All media MCPs