Skip to main content
Glama
TakashiAihara

gemini-web-mcp

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
XDG_CONFIG_HOMENoBase directory for config files (sessions.json and cookies).~/.config
GEMINI_COOKIE_PATHNoDirectory where gemini-webapi stores cookie cache.~/.config/gemini-web-mcp/cookies
GEMINI__SECURE_1PSIDNoGoogle session cookie __Secure-1PSID, used for authentication when browser cookie extraction is not possible.
GEMINI__SECURE_1PSIDTSNoGoogle session cookie __Secure-1PSIDTS, must be used together with GEMINI__SECURE_1PSID.
GEMINI_WEB_MCP_TEMPORARYNoSet to '0' to have MCP conversations appear in Gemini Web history; default '1' keeps them temporary.1
GEMINI_WEB_MCP_DEFAULT_MODELNoDefault model to use when `gemini_chat_new` omits `model`.Pro

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}
logging
{}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
extensions
{
  "io.modelcontextprotocol/ui": {}
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
gemini_chat_newB

新規 conversation を作って prompt を投げ、応答を返す。

gemini_chat_continueA

既存 conversation に prompt を投げ、応答を返す。

モデルは会話開始時のものを引き継ぐ。Gemini は会話途中のモデル変更を ModelInvalid (error code 1050 = model inconsistent with history) で 拒否するため、途中変更は受け付けない。別モデルで訊きたい場合は gemini_chat_new で新しい label を作る。

gemini_models_listA

このアカウントで実際に使えるモデルの一覧。

name をそのまま gemini_chat_new(model=...) に渡せる。

gemini_chat_listB

保存中の conversation 一覧。

gemini_chat_historyA

指定 session の会話履歴を全件返す。

gemini_chat_deleteB

指定 session を local から削除する。

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/TakashiAihara/gemini-web-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server