gemini-webapi-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| GEMINI_PSID | No | Value of cookie __Secure-1PSID for authentication | |
| GEMINI_PSIDTS | No | Value of cookie __Secure-1PSIDTS for authentication | |
| GEMINI_WM_KEEP | No | Set to '1' to keep watermark even if removal tool is installed | |
| GEMINI_LANGUAGE | No | Language for Gemini responses (e.g., ru, en, ja) | en |
| GEMINI_ACCOUNT_INDEX | No | Index of Google account in Chrome (0, 1, ...) | 0 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| gemini_start_chatA | Start a new multi-turn chat session with Gemini. The session maintains conversation history so follow-up messages have full context. Pass the returned session_id to gemini_chat. Args: model: Model name for this session. Defaults to gemini-3.0-flash. Returns: JSON with session_id to use in subsequent gemini_chat calls. |
| gemini_chatA | Send a text prompt to Google Gemini and get a response. Args: prompt: The text prompt to send to Gemini. model: Model name (e.g. 'gemini-3.0-flash', 'gemini-3.0-pro', 'gemini-3.0-flash-thinking'). Defaults to gemini-3.0-flash. session_id: Optional session ID from gemini_start_chat for multi-turn conversation with context. Returns: Gemini's text response. When using flash-thinking model, also includes the model's reasoning process. |
| gemini_generate_imageA | Generate or edit images with Gemini. Without files: generates a new image from the text prompt. With files: edits/transforms the provided image(s) based on the prompt. Pass conversation_id from a previous call to continue refining images in the same conversation thread (e.g. "make it more dramatic", "add rain"). You can also use a cid from the Gemini web URL (gemini.google.com/app/{cid}). Images are saved to ~/Pictures/gemini/ and full file paths are returned. Args: prompt: Description of the image to generate, or editing instruction (e.g. 'change the background to blue', 'make it a cartoon'). model: Model name. Defaults to gemini-3.0-flash-thinking (Nano Banana 2, supports non-square aspect ratios). files: Optional list of file paths to images to edit/transform. conversation_id: Optional list of [cid, rid, rcid] from a previous gemini_generate_image response to continue the conversation. Passing just [cid] (from browser URL) also works. Returns: JSON with generated image paths, conversation_id for continuation, or an error message. |
| gemini_upload_fileA | Upload a file (image, PDF, document, video) to Gemini and ask a question about it. Args: file_path: Absolute path to the file to upload. prompt: Question or instruction about the file (e.g. 'What is shown in this image?'). model: Model name. Defaults to gemini-3.0-flash. Returns: Gemini's text response about the uploaded file. |
| gemini_analyze_urlA | Analyze a URL — YouTube videos, webpages, articles, etc. Gemini can watch YouTube videos and read webpages, then answer questions about their content. Args: url: The URL to analyze (YouTube, article, webpage, etc.). prompt: Question or instruction about the content (e.g. 'Summarize this video', 'What are the key points?'). model: Model name. Defaults to gemini-3.0-flash. Returns: Gemini's analysis of the URL content. |
| gemini_resetA | Re-initialise the Gemini client (refresh cookies, clear state). Use this when you get authentication errors or want a fresh session. Returns: Confirmation message or error. |
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 6 tools
Each tool has a unique function: analyzing URLs, chatting, generating images, resetting the client, starting multi-turn sessions, and uploading files. There is no overlap or ambiguity in their purposes.
All tools use a consistent 'gemini_' prefix and snake_case, but there is slight inconsistency in verb vs. verb_noun patterns (e.g., 'gemini_chat' vs 'gemini_start_chat'). The naming is mostly predictable and descriptive.
With 6 tools, the set is well-scoped without being too few or too many. Each tool serves a distinct purpose, covering core interactions with Gemini.
The tool set covers all major interaction modes: text chat, image generation, URL analysis, file upload, session management, and client reset. Minor gaps like model listing or conversation history management are non-essential.