Model Context Protocol server for Google Gemini AI with chat, research, and grounding
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
I've been running this Gemini MCP server in my Claude Desktop setup for months. It's one of the few I leave on permanently β not because Gemini replaces Claude, but because grounded search, image generation, SVG diagrams, and video are things Gemini does well. Having them as tools inside Claude beats switching browser tabs.
Thirteen tools, covering the models people actually come looking for: Nano Banana Pro (gemini-3-pro-image-preview) for image generation, Veo 3.1 for video with synchronised audio, and Gemini 3.1 Pro for chat and deep research with Google Search grounding. Images, SVGs and video preview inline in Claude Desktop through MCP Apps rather than landing as a file path you have to go and open.
One npx command.
Quick Navigation
Get started | What it does | SVG generation | Image output | Configuration | Tools | Models | Requirements
Generated images, SVGs, and videos render inline in Claude Desktop with zoom controls, file paths, and prompt context:
| Image generation | SVG / diagram generation |
|---|---|
![]() | ![]() |
| Image embed | SVG embed | Video embed |
|---|---|---|
![]() | ![]() | ![]() |
Step 1: Get a Gemini API key
Go to Google AI Studio and create one. The free tier covers most development use β you'll hit rate limits on deep research if you're hammering it, but for day-to-day work it's fine.
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 β no separate install needed.
For development, or if you'd rather not rely on npx:
Then point your config at the local build:
Claude Code uses a different registration mechanism β it doesn't read claude_desktop_config.json. Use claude mcp add instead:
With optional image output directory:
Verify with claude mcp get gemini β you should see Status: Connected.
Grounding is on by default. Gemini searches Google before answering, so you get current information rather than training cutoff answers. Sources come back as markdown links. For questions where you want pure reasoning β "explain this code" or similar β set grounding: false.
Supports thinking_level on Gemini 3 models: high for maximum reasoning depth, low to keep it fast, medium/minimal on Gemini 3 Flash only.
Runs multiple grounded search iterations then synthesises a full report. Takes 2-5 minutes depending on complexity β worth it for anything needing comprehensive coverage rather than a quick answer.
Set max_iterations to 3-4 in Claude Desktop (4-minute tool timeout). In IDEs (Cursor, Windsurf, VS Code) or agent frameworks, 7-10 iterations produces noticeably better synthesis. Pass focus_areas as an array to steer toward specific angles.
Default model is gemini-3-pro-image-preview (Nano Banana Pro). Also supports gemini-2.5-flash-image for faster generation.
When use_search=true, Gemini searches Google for current data before generating. Financial and news queries work reliably. The full-resolution image saves to disk automatically β the inline preview is resized for transport but the original is untouched.
Uses Google's Veo 3.1 model. Generates 4-8 second videos at up to 4K with native synchronised audio. Processing takes 2-5 minutes β the tool polls automatically until ready.
Options worth knowing:
aspectRatio β 16:9 landscape or 9:16 portrait/verticalgenerateAudio β on by default, produces dialogue and sound effects matching the promptsampleCount β generate up to 4 variations in one callseed β deterministic output across runsgenerateThumbnail β extracts a frame via ffmpeg (needs ffmpeg in PATH)firstFrameImage β animate from a starting image (image-to-video)This is the one people underestimate. SVG output isn't just diagrams β it's production-ready vector graphics you can drop straight into a codebase, a presentation, or a web page. Clean, scalable, no raster artefacts.
Four styles:
| Style | Best for |
|---|---|
technical | Architecture diagrams, flowcharts, system maps |
artistic | Illustrations, decorative graphics, icons |
minimal | Clean data visualisations, simple charts |
data-viz | Complex charts, dashboards, infographics |
The output is actual SVG code β edit it, animate it, embed it in HTML, commit it to a repo. No rasterising, no export steps, no Figma required.

Conversational editing β Gemini 3 Pro Image maintains context across editing turns. Pass thought signatures back on subsequent edit_image calls for full continuity:
Analysis β two tools for different purposes:
describe_image β Fast general descriptions using Gemini 3 Flashanalyze_image β Structured extraction and detailed reasoning using Gemini 3.1 ProLoad local files:
Reduce token usage by up to 75% whilst maintaining quality for the task:
| Level | Tokens | Savings | Best for |
|---|---|---|---|
MEDIA_RESOLUTION_LOW | 280 | 75% | Simple tasks, bulk operations |
MEDIA_RESOLUTION_MEDIUM | 560 | 50% | PDFs/documents (OCR saturates here) |
MEDIA_RESOLUTION_HIGH | 1120 | default | Detailed analysis |
MEDIA_RESOLUTION_ULTRA_HIGH | 2000+ | per-image only | Maximum detail |
For PDF OCR, MEDIUM gives identical text extraction quality to HIGH at half the tokens.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/gemini-2)<a href="https://allmcps.com/mcp/gemini-2"><img src="https://allmcps.com/api/badge/gemini-2?style=directory" alt="Gemini on AllMCPs" /></a>