Gemini Chat MCP
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.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Gemini Chat MCPExplain quantum computing in simple terms"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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
cd C:/Working/gemini-chat-mcp
pip install -e .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:
GEMINI_SECURE_1PSID=your_psid_here
GEMINI_SECURE_1PSIDTS=your_psidts_hereTo 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:
{
"amp.mcpServers": {
"gemini-chat": {
"command": "python",
"args": ["C:/Working/gemini-chat-mcp/src/gemini_chat_mcp/server.py"]
}
}
}Or using module:
{
"amp.mcpServers": {
"gemini-chat": {
"command": "python",
"args": ["-m", "gemini_chat_mcp"],
"cwd": "C:/Working/gemini-chat-mcp"
}
}
}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 | ❌ |
|
Example - Basic chat:
{"message": "Hello, how are you?"}Example - Chat with custom Gem:
{
"message": "Hello!",
"gem_id": "10wwoIn-UvdTVzg4rFH3szi4wk8oTo8Cf"
}Example - Use specific model:
{
"message": "Explain quantum computing",
"model": "gemini-2.5-flash"
}set_cookie
Update cookies when they expire.
Parameter | Type | Required | Description |
| string | ✅ | New |
| string | ❌ | New |
How to get Gem ID
From a Gem URL like:
https://gemini.google.com/gem/10wwoIn-UvdTVzg4rFH3szi4wk8oTo8CfThe Gem ID is: 10wwoIn-UvdTVzg4rFH3szi4wk8oTo8Cf
Project Structure
gemini-chat-mcp/
├── src/gemini_chat_mcp/
│ ├── __init__.py
│ ├── __main__.py
│ └── server.py # Main MCP server
├── chrome-extension/ # Cookie sync extension
│ ├── manifest.json
│ ├── background.js
│ ├── popup.html
│ ├── popup.js
│ └── icons/
├── .env.example
├── .gitignore
├── pyproject.toml
└── README.mdLicense
MIT
Related MCP Connectors
Generate AI images, videos, music, SFX & speech in any AI assistant. Results appear inline in chat.
LLM chat, text tools, image generation, editing, batch image jobs, and asynchronous video generation
AI LLM with Gemini, MiniMax, Replicate, OpenRouter. Vision, search, code review. USDC on Base.
Generate AI images, video, voiceovers and music from Claude, ChatGPT or Cursor through 50+ models (Veo 3.1, Kling 3, Seedance, Nano Banana, GPT Image, ElevenLabs). Also image editing, upscaling, background removal, face swap, transcription, voice cloning and UGC-style video ads. Sign in with OAuth — no API key to paste. Tools are annotated (read-only vs. credit-spending); failed generations are refunded.