Gemini MCP
Lets your AI agent use Google Gemini for images, video, research, speech, code execution and document analysis.
222 stars on GitHubby RLabs-IncLicense MITUpdated 5 months ago
How to install
This MCP is local: it runs on your computer.
It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Codeβ¦). Choose your app:
Paste in the terminal:
claude mcp add gemini -e GEMINI_API_KEY="<your value>" -- npx -y @rlabs-inc/gemini-mcp
What to fill in
| Name | What it is | Required |
|---|---|---|
GEMINI_API_KEY | Your Google Gemini API key (get one at https://aistudio.google.com/apikey) | Yes |
GEMINI_OUTPUT_DIR | Directory for generated files (images, videos, audio) | No |
Ready! Now test it
Restart the app and paste one of these requests in the chat:
Generate a 16:9 image of a futuristic city at sunset.
Summarize this YouTube video in bullet points.
What it is
This server connects Claude Code to Google's Gemini 3 models. It offers many tools, from direct queries and web search to image and video generation, text-to-speech and YouTube analysis. It also ships a command line tool called gcli.
What it can do
gemini-query: ask Gemini Pro or Flashgemini-generate-image: make images up to 4Kgemini-generate-video: make videos with Veo, checked withgemini-check-videogemini-search: web search with citationsgemini-run-code: let Gemini write and run Pythongemini-youtube: analyze a YouTube videogemini-analyze-document: read PDFs and documentsgemini-extract-tables: pull tables from documents
When to use
- βΊWhen you want a second model's opinion while coding
- βΊWhen you want to generate or edit images from your agent
- βΊWhen you want a video or PDF analyzed by Gemini
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
baoyu-danger-gemini-webLets your agent generate text and images through an unofficial Gemini web connection, including reference images and multi-turn chats.summarizeHelps your agent summarize web pages, PDFs, local files, YouTube videos and audio, or pull out their text, using the summarize command.pdf-readerHelps your agent extract and summarize text, tables and form fields from PDF documents, keeping the original structure.Frequently asked questions
Is it free?
The readme says getting the API key is free. Usage costs depend on Google's terms, which the readme does not describe.
Do I need an API key?
Yes, GEMINI_API_KEY is required.
Where do generated files go?
To ./gemini-output by default. Change it with GEMINI_OUTPUT_DIR.
Can I load fewer tools?
Yes. Use GEMINI_TOOL_PRESET with minimal, text, image, research or media, or list groups in GEMINI_ENABLED_TOOLS.
How long does video take?
The readme says 1 to 5 minutes, and you poll with gemini-check-video.
Is it made by Google?
No. It is a third-party project from RLabs-Inc.
If it does not work
- βΊCheck that GEMINI_API_KEY is set in the claude mcp add command.
- βΊUse GEMINI_TOOL_PRESET to reduce the number of loaded tools if context is tight.
- βΊSet VERBOSE=true to see logs when a tool fails.
5 new skills a week. 1 minute to read.