gemini_help
Gemini MCP Help
Get comprehensive help about Gemini MCP features, settings, and best practices
topic
io.github.houtini-ai由 GitHub 账号 houtini-ai 发布v2.10.1更新于 Oct 25, 2026
Model Context Protocol server for Google Gemini AI with chat, research, and grounding
把 Google Gemini 模型接入助手,用于联网搜索问答、深度研究、图像与视频生成,以及 SVG 和落地页生成。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
参照 仓库 中的启动说明。
[npm version] [MCP Registry] [Known Vulnerabilities] [Socket Badge] [License: Apache 2.0]
I've had this Gemini MCP server running in my Claude Desktop setup for the best part of a year now. It's one of the few I leave switched on permanently. Not because Gemini replaces Claude (it doesn't), but because grounded search, image generation, SVG diagrams and video are things Gemini happens to do well, and having them as tools inside Claude beats flipping between browser tabs.
Fourteen tools, built around the models people actually come looking for: Nano Banana Pro (gemini-3-pro-image) and Nano Banana 2 for images, Veo 3.1 for video with synchronised audio, Gemini 4 Argon for chat and Gemini 3.1 Pro for deep research, both with Google Search grounding. Everything previews inline in Claude Desktop through MCP Apps rather than landing as a file path you have to go and open.
One npx command. That's it.
New here? The full user guide walks through every tool, the free-tier gotcha, and what to do when something breaks.
Quick Navigation
What it makes | Get started | What it does | Image output | Configuration | Tools | Models | Requirements
Everything below came out of the tools in this repo, unretouched, on the afternoon I wrote this. Prompts are in the captions so you can judge for yourself.
Image generation with search grounding. One generate_image call with use_search=true. Gemini looked up the actual Met Office forecast for the week, then drew it. The dates and temperatures are real (well, as real as a forecast gets).
[London five-day weather infographic, generated by Nano Banana Pro from live search data]
Prompt: "A polished editorial infographic poster: London weather, this week. Use real forecast data from search for the next 5 days..." - gemini-3-pro-image, 16:9, 2K.
Text that's actually spelled correctly. This is the thing Nano Banana Pro does that the previous generation of image models couldn't. Every label here is straight out of the model.
[Four-step infographic explaining an MCP tool call, with correctly rendered text]
Prompt: "A clean, magazine-quality infographic titled How an MCP tool call works, with four numbered steps..." - gemini-3-pro-image.
Generate, then edit. Left is generate_image. Right is edit_image on that file with one sentence of instructions: change the track to Monza in daylight, swap the rim lighting for window light, make the pedals red. Same cockpit, same camera angle.
Image to video with Veo 3.1. The night-time cockpit above, passed to generate_video as firstFrameImage. Eight seconds at 1080p with generated audio (engine note, tyre hiss) - the GIF below is silent and squashed for GitHub, the real file is a proper MP4.
[Veo 3.1 video: the cockpit comes to life, hands turning the wheel through Eau Rouge]
SVG that you can actually use. Not a picture of a diagram - real vector markup you can drop into a page, edit by hand or commit to a repo. Both of these are the raw .svg files the tool wrote to disk.
A landing page from a paragraph. generate_landing_page with a brief, a company name and a brand colour. Self-contained HTML, inline CSS, the little chart in the hero is animated SVG. Screenshot of the file opened in Chrome, nothing else touched.
[Generated SaaS landing page rendered in a browser]
And the fast one. Nano Banana 2 (gemini-3.1-flash-image) for when you want volume rather than 4K. This took about ten seconds.
[Flat-lay of a mechanical keyboard on a walnut desk, Nano Banana 2]
Step 1: Get a Gemini API key
Go to Google AI Studio and create one.
A word on the free tier, because the defaults lean on a paid model. Google's pricing page gives Gemini 3 Flash Preview a free tier, but the flagship models are paid-only - and gemini-4-argon is the default for gemini_chat and generate_landing_page, with gemini-3.1-pro-preview the default for gemini_deep_research (synthesis) and analyze_image. On a free key those calls will fail unless you point them at a free model: set GEMINI_DEFAULT_MODEL=gemini-3-flash-preview (covers chat and landing pages), GEMINI_DEEP_RESEARCH_MODEL and GEMINI_IMAGE_ANALYSIS_MODEL likewise, or pass model per call. generate_svg already defaults to gemini-3-flash-preview. Check the pricing page for the other models before relying on them - Google changes these tiers.
Step 2: Add to your Claude Desktop config
Config file locations:
C:\Users\{username}\AppData\Roaming\Claude\claude_desktop_config.json~/Library/Application Support/Claude/claude_desktop_config.jsonStep 3: Restart Claude Desktop
That's it. Tools show up automatically. npx pulls the package on first run, so there's no separate install.
For development, or if you'd rather not rely on npx:
Then point your config at the local build:
Claude Code doesn't read claude_desktop_config.json. Use claude mcp add instead:
With an output directory for images and video:
Check with claude mcp get gemini - you want to see Status: Connected.
Grounding is on by default. Gemini searches Google before it answers, so you get this month's information rather than a training-cutoff guess, and the sources come back as markdown links. For questions where you want pure reasoning ("explain this code", that sort of thing) set grounding: false.
Runs on gemini-4-argon (Gemini 4 Argon) unless you say otherwise. Pass model: "gemini-3.8-flash" if you'd rather have speed than depth, or model: "gemini-3.1-pro-preview" for the previous flagship. thinking_level works on Gemini 3.x and 4 models: high for the hard stuff, low to keep it snappy.
Runs grounded search passes and then writes them up as one report. The passes run on gemini-3.8-flash with low thinking (they're gathering facts, not reasoning about them), and the synthesis at the end runs on gemini-3.1-pro-preview with high thinking. Two passes plus a synthesis is the default and lands in two to three minutes.
That split matters more than it sounds. Earlier versions ran everything on Pro with full thinking, and one pass on a broad question could run past Claude Desktop's four-minute timeout on its own. Keep max_iterations at 2 or 3 in Claude Desktop; in an IDE or an agent framework, 5 to 7 produces noticeably better synthesis. focus_areas takes an array if you want to steer each pass.
Default model is gemini-3-pro-image, which is Nano Banana Pro now that it's out of preview. It renders legible text, does 4K, and it's the only one that supports conversational editing. gemini-3.1-flash-image (Nano Banana 2) is the fast option - not far off in quality, a fraction of the time and the cost. There's a Lite variant too if you're doing hundreds.
With use_search=true, Gemini looks things up before it draws. Weather, prices, sports results, that kind of data-driven image works reliably. The full-resolution file always goes to disk; the inline preview is resized to fit the MCP transport cap but the original is untouched.
Google's Veo 3.1. Four to eight second clips at up to 4K with native, synchronised audio. It's asynchronous on Google's side and takes two to five minutes; the tool polls until it's ready so you don't have to.
Options worth knowing about:
aspectRatio - 16:9 landscape or 9:16 for verticalgenerateAudio - on by default; dialogue and effects that match the promptfirstFrameImage - animate from a still (that's how the cockpit clip above was made)referenceImages - up to three, for character or style consistencysampleCount - up to four variations in one callseed - deterministic output across runsgenerateThumbnail - pulls a frame out with ffmpeg, if you've got it in PATHmodel - veo-3.1-lite-generate-preview if you want cheaper and fasterThis is the one people underestimate. The output isn't a picture of a diagram, it's the SVG markup itself - drop it into a codebase, a slide, a web page, and it scales without a single raster artefact.
Four styles:
You get real SVG code back. Edit it, animate it, embed it, commit it. No export step, no Figma.
Runs on gemini-3-flash-preview unless you pass model - it's quick, it handles SVG markup comfortably, and it has a free tier. Pass model: "gemini-3.1-pro-preview" for denser diagrams if you're on a paid key.
Conversational editing. Nano Banana Pro keeps context between turns. Pass the thought signature from the previous call back in and it remembers what it was working on:
Analysis, two tools for two jobs:
describe_image - quick general descriptions on gemini-3.8-flashanalyze_image - structured extraction and proper reasoning on gemini-3.1-pro-previewLocal files:
Or just pass filePath straight into any image tool's images array and the server reads it itself - that skips the MCP transport limit entirely.
Cut token usage by up to 75% where the task doesn't need the detail:
For PDF OCR, MEDIUM gives me identical text extraction to HIGH at half the tokens. I've not found a case where it didn't.
One self-contained HTML file: inline CSS, vanilla JS, no external dependencies. Styles are minimal, bold, corporate and startup. The PingWatch page in the gallery above is exactly this call.
gemini_prompt_assistant carries nine chart design systems you can ask for by name:
The full documentation without leaving Claude. Topics: overview, image_generation, image_editing, image_analysis, chat, deep_research, grounding, media_resolution, models, all.
By default, images come back as inline previews rendered directly in Claude, and the full-size file is written next to the package. Set GEMINI_IMAGE_OUTPUT_DIR if you'd rather they all landed somewhere sensible:
Two files per image:
Gemini returns 2 to 5 MB images. The resize measures the non-image overhead in each response, works out the binary budget left, and steps the preview down (800, 600, 400, 300, 200px) until it fits under the 1 MB MCP transport limit. The full image is always there on disk.
Image, SVG, video and landing-page results each open in an MCP App viewer with zoom, the saved path and a copy button. If you're on Claude Desktop and the viewer sat on "Waiting for image..." forever in an older version, that was Claude Desktop stripping the structured data the viewer reads (ext-apps#696). Since 2.7.0 the viewer fetches it back from the server itself, so it renders either way.
Checked against the live models API on 22 September 2026. gemini_list_models will tell you what your key can see today.
Why the defaults are what they are. I went back and forth on this. Gemini 3.8 Flash is GA and newer, but 3.1 Pro is still what Google calls its strongest reasoning model, and reasoning is the point of gemini_chat and deep research - so Pro stays the default there, and Flash takes the lighter describe_image job. For images, Nano Banana Pro left preview and kept its quality lead, so it's the default; Nano Banana 2 is there when you'd rather trade a little quality for a lot of speed. Gemini's newer Omni video model uses a different API, so it's not wired in yet.
Gemini 3 notes: temperature is forced to 1.0 on every 3.x model (Google's requirement, lower values cause looping). thinking_level applies to gemini_chat.
Token budgets: max_tokens defaults to each model's full output ceiling as reported live by the models API (65,536 on current Gemini 3 text models; the 1M figure is input context). It's a cap, not consumption, so unused headroom costs nothing. Values below 4,096 are ignored because Gemini 3 thinking burns tiny budgets before you see any output, which looks exactly like a timeout, and values above the model's real limit are clamped.
Apache-2.0
来源:README.md,提交 52fbddd
Gemini MCP Help
Get comprehensive help about Gemini MCP features, settings, and best practices
topicImage & Chart Prompt Assistant
Get expert prompt templates and guidance for Gemini image generation. Covers photography (portraits, products, cinematic), chart/diagram design (9 professional design systems including FT, Bloomberg, Tufte, Du Bois), lighting, colour grading, lens simulation, and style aesthetics. For charts: use chart_design with a color_scheme to get a full professional design system prompt.
emphasisuse_casechart_typecolor_schemerequest_type必填current_promptdesired_outcomeGemini Chat
Chat with Google Gemini models. Grounded in Google Search by default, on gemini-4-argon (Gemini 4 Argon). DO NOT SET max_tokens - the server allocates the model's full output ceiling automatically. It is a cap, not consumption, so unused headroom costs nothing; setting a small one makes Gemini 3 thinking burn the whole budget and return empty output that looks like a timeout. [MCP_RECOMMENDED_TIMEOUT_MS: 300000]
modelmessage必填groundingmax_tokenstemperaturesystem_promptthinking_levelList Gemini Models
List available Gemini models and their descriptions
无需输入参数。
Gemini Deep Research
Conduct deep research on complex topics using iterative multi-step analysis with Gemini. Runs grounded search passes on a fast model, then synthesises them with Gemini 3.1 Pro. Default 2 passes (2-3 minutes); more passes take proportionally longer. [MCP_RECOMMENDED_TIMEOUT_MS: 900000]
modelfocus_areasmax_iterationsresearch_question必填Describe Image (Gemini Flash)
Analyze and describe one or more images using Gemini multimodal understanding. Returns a text description — no image is generated. Default model: gemini-3.8-flash. [MCP_RECOMMENDED_TIMEOUT_MS: 180000]
modelimages必填promptglobal_media_resolutionAnalyze Image
Analyze and extract information from one or more images using Gemini multimodal understanding. Returns a text analysis - no image is generated. Default model: gemini-3.1-pro-preview. DO NOT SET max_tokens - the server allocates the model's full output ceiling automatically; a small cap is spent on Gemini 3 thinking and returns empty output that looks like a timeout. [MCP_RECOMMENDED_TIMEOUT_MS: 300000]
modelimages必填prompt必填max_tokensglobal_media_resolutionLoad Image from File Path
Read a local image file and return it as base64-encoded data ready to pass to generate_image, edit_image, describe_image, or analyze_image tools. Supports JPEG, PNG, GIF, WebP, BMP.
filePath必填Generate Image with Gemini
Generate an image using Google Gemini image models (Nano Banana Pro). Returns image with inline preview in Claude Desktop and saves full-resolution to disk. Default model: gemini-3-pro-image (Nano Banana Pro).
modelimagesprompt必填imageSizeoutputPathuse_searchaspectRatioglobal_media_resolutionEdit Image with Gemini
Edit one or more images using Google Gemini image models (Nano Banana Pro). Provide images and natural-language instructions for how to modify them. Returns edited image with inline preview and saves full-resolution to disk.
modelimages必填prompt必填outputPathuse_searchglobal_media_resolutionGenerate Landing Page
Generate a complete, self-contained HTML landing page using Gemini. Returns inline preview with responsive viewport controls. No external dependencies; inline CSS and vanilla JS only. [MCP_RECOMMENDED_TIMEOUT_MS: 300000]
brief必填modelstylesectionsoutputPathcompanyNameprimaryColourGenerate SVG Graphic
Generate scalable vector graphics (SVG) using Gemini. Creates clean, production-ready SVG code for diagrams, illustrations, icons, and data visualizations. Returns inline preview with SVG viewer. [MCP_RECOMMENDED_TIMEOUT_MS: 240000]
modelstylewidthheightprompt必填outputPathGenerate Video
Generate videos using Google Veo 3.1 AI model. Creates realistic 4-8 second videos from text prompts with optional first-frame image and reference images for character/style consistency. Supports native audio generation. Processing time: 2-5 minutes for 1080p videos. Returns video file path with optional thumbnail and HTML preview player. ⚠️ IMPORTANT: Video generation is ASYNC and takes 2-5 minutes. The tool will poll for completion automatically.
seedmodelprompt必填outputPathresolutionaspectRatiosampleCountgenerateAudiodurationSecondsfirstFrameImagereferenceImagesgenerateThumbnail另有 1 个Viewer payload (internal)
Internal helper used by the Gemini MCP App viewers to fetch their display data. Not for model use — it returns nothing useful outside the viewer iframe.
ref必填已满足适用检查项的 90%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
{ "mcpServers": { "gemini": { "command": "npx", "args": ["@houtini/gemini-mcp"], "env": { "GEMINI_API_KEY": "your-api-key-here" } } }}git clone https://github.com/houtini-ai/gemini-mcpcd gemini-mcpnpm install --include=devnpm run build{ "mcpServers": { "gemini": { "command": "node", "args": ["C:/path/to/gemini-mcp/dist/index.js"], "env": { "GEMINI_API_KEY": "your-api-key-here" } } }}claude mcp add -e GEMINI_API_KEY=your-api-key-here -s user gemini -- npx -y @houtini/gemini-mcpclaude mcp add \ -e GEMINI_API_KEY=your-api-key-here \ -e GEMINI_IMAGE_OUTPUT_DIR=/path/to/output \ -s user \ gemini -- npx -y @houtini/gemini-mcpUse gemini:gemini_chat to ask: "What changed in the MCP spec in the last month?"Use gemini:gemini_deep_research with: research_question="What are the current approaches to AI agent memory management?" max_iterations=5Use gemini:generate_image with: prompt="Stock price chart showing Apple (AAPL) closing prices for the last 5 trading days" use_search=true aspectRatio="16:9"Use gemini:generate_video with: prompt="A close-up shot of a futuristic coffee machine brewing a glowing blue espresso, steam rising dramatically. Cinematic lighting." resolution="1080p" durationSeconds=8Use gemini:generate_svg with: prompt="Architecture diagram showing a microservices system with API gateway, three services, and a shared database" style="technical" width=1000 height=600Use gemini:edit_image with: prompt="Change the colour scheme to blue and green" images=[{filePath: "C:/output/gemini-123.png", thoughtSignature: "fromPreviousCall"}]Use gemini:load_image_from_path with filePath="C:/screenshots/error.png"Use gemini:generate_landing_page with: brief="A SaaS tool that helps developers monitor API latency" companyName="PingWatch" primaryColour="#6366F1" style="startup" sections=["hero", "features", "pricing", "cta"]Use gemini:gemini_help with topic="overview""env": { "GEMINI_API_KEY": "your-api-key-here", "GEMINI_IMAGE_OUTPUT_DIR": "C:/Users/username/Pictures/gemini-output"}