Enables chatting with Google Gemini AI models (Gemini 3 Pro and Gemini 2.5 Flash), supporting text and image responses, and allows interaction with custom Gems by providing gem IDs.
Gemini Chat MCP
A simple MCP server for chatting with Google Gemini and custom Gems.
Features
Chat with Gemini - Send messages and receive responses (text + images)
Custom Gems support - Chat with your custom Gems by providing gem_id
Model selection - Choose between Gemini 3 Pro (default) or Gemini 2.5 Flash
Auto cookie sync - Chrome extension automatically syncs cookies
Installation
Configuration
Option 1: Chrome Extension (Recommended)
Open Chrome and go to
chrome://extensions/Enable "Developer mode"
Click "Load unpacked" and select the
chrome-extensionfolderLogin to gemini.google.com
Click the extension icon to verify cookies are synced
The extension runs a local server on port 52525 that the MCP server uses to fetch cookies automatically.
Option 2: Manual .env
Copy .env.example to .env and fill in your cookies:
To get cookies manually:
Login to gemini.google.com
Open DevTools (F12) → Application → Cookies
Copy
__Secure-1PSIDand__Secure-1PSIDTSvalues
Usage with Amp
Add to your settings.json:
Or using module:
Tools
chat
Chat with Gemini. Can generate text and images.
Parameter | Type | Required | Description |
| string | ✅ | Message to send to Gemini |
| string | ❌ | Custom Gem ID from URL |
| string | ❌ |
(default) or
|
Example - Basic chat:
Example - Chat with custom Gem:
Example - Use specific model:
set_cookie
Update cookies when they expire.
Parameter | Type | Required | Description |
| string | ✅ | New
value (starts with
) |
| string | ❌ | New
value (starts with
) |
How to get Gem ID
From a Gem URL like:
The Gem ID is: 10wwoIn-UvdTVzg4rFH3szi4wk8oTo8Cf
Project Structure
License
MIT