gemini-understanding
This server provides one-shot Gemini AI capabilities for understanding web content and various file types (video, audio, document, image) from remote URLs or local files via MCP tools.
Web Research: Use the
webtool to ask questions or give instructions, including ordinary webpage URLs for Gemini to research with Google Search and URL Context.Video Understanding: Analyze a single video from a public YouTube URL, direct remote URL, or local file path (e.g., summarize, describe).
Audio Understanding: Analyze a single audio file from a remote URL or local path (e.g., transcribe speech).
Document Understanding: Analyze documents like PDFs, CSV, or text files from remote URLs or local paths (e.g., summarize conclusions).
Image Understanding: Analyze images from remote URLs or local paths (e.g., describe contents).
Flexible Input: For file-based tools, provide
source(URL or local path),prompt, and optionallymimeTypefor remote files to ensure correct handling.One-shot Requests: Each tool call is independent and doesn't maintain conversation context.
Configuration: Customize the model via
GEMINI_API_KEY,GEMINI_MODEL, andGEMINI_THINKING_LEVELenvironment variables.Security: Tools can be selectively exposed; for example,
local_filefunctionality can be hidden without affecting other tools.
Leverages Google's Gemini API for web and multimodal understanding, including web research with Google Search and URL Context, and analysis of video, audio, documents, and images.
Processes YouTube video URLs to provide summaries, descriptions, or answers about video content using Gemini's video understanding capabilities.
Click on "Install 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-understandingSummarize this video and give me the key takeaways"
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-understanding
A minimal MCP server for one-shot Gemini requests. Each tool call sends one prompt and at most one source, returns one answer, and does not link calls into a continuing conversation.
The server exposes three independent tools:
webremote_filelocal_file
Clients and MCP gateways may expose any subset of the tools. This is useful for remote or isolated deployments where filesystem access is unavailable or undesirable: local_file can be hidden without changing the contract of the remaining tools.
web
Performs one-shot web research with both Gemini server tools enabled:
Google Search
URL Context
Input:
{
"prompt": "Research the topic and read https://example.com/page"
}Ordinary webpage URLs may be included directly in the prompt.
Related MCP server: Sibyl
remote_file
Analyzes one public HTTP(S) file URL. The caller must declare the source type; the server does not inspect the URL or reclassify the source.
Input:
{
"url": "https://example.com/report.pdf",
"type": "document",
"prompt": "Summarize the conclusions",
"mimeType": "application/pdf"
}type is required and must be one of:
imagevideoaudiodocument
mimeType is optional, but it is preferred for direct remote files when known because origin servers may return missing, generic, malformed, or parameterized MIME metadata. Public YouTube URLs are supplied with type: "video" and normally omit mimeType.
Examples:
{
"url": "https://www.youtube.com/watch?v=...",
"type": "video",
"prompt": "Summarize this video"
}{
"url": "https://example.com/audio.mp3",
"type": "audio",
"prompt": "Transcribe the speech",
"mimeType": "audio/mpeg"
}The URL is passed directly to Gemini as a typed URI. The server performs no HTTP header probing, MIME sniffing, extension-based routing, downloading, conversion, or cross-type fallback.
local_file
Analyzes one file available on the MCP server filesystem. The caller must declare the source type; the server does not inspect the content or reclassify the source.
Input:
{
"path": "/workspace/report.pdf",
"type": "document",
"prompt": "Summarize the conclusions"
}type is required and must be one of:
imagevideoaudiodocument
mimeType is optional. The Gemini SDK normally infers it from a recognized file extension. It may be supplied as an override when inference is unavailable or incorrect.
The server:
resolves relative paths against its working directory;
uploads the file through the Gemini Files API;
waits until processing is complete;
sends the uploaded URI using the declared source type;
deletes the temporary upload.
The path refers to the filesystem visible to the MCP server process. In a remote, containerized, or isolated deployment, it does not refer to the MCP client's filesystem unless that storage is explicitly mounted or shared.
Configuration
GEMINI_API_KEY required
GEMINI_BASE_URL optional; default: official Google Gemini API endpoint
GEMINI_MODEL default: gemini-3.5-flash-lite
GEMINI_THINKING_LEVEL default: highGEMINI_BASE_URL replaces the Gemini API base URL used by the Google Gen AI SDK. Leave it unset to use Google's official endpoint. This is useful with compatible reverse proxies or API gateways, for example:
GEMINI_BASE_URL=https://gateway.ai.cloudflare.com/v1/<account>/<gateway>/google-ai-studioCustom model and thinking-level strings are passed through without compatibility validation.
Install from GitHub
claude mcp add gemini-understanding -s user -- \
env GEMINI_API_KEY=YOUR_KEY \
npx -y github:sandlong/gemini-understandingWith explicit optional settings:
claude mcp add gemini-understanding -s user -- \
env GEMINI_API_KEY=YOUR_KEY \
GEMINI_BASE_URL=https://gateway.ai.cloudflare.com/v1/<account>/<gateway>/google-ai-studio \
GEMINI_MODEL=gemini-3.5-flash-lite \
GEMINI_THINKING_LEVEL=high \
npx -y github:sandlong/gemini-understandingLocal development
npm install
npm test
npm run buildRun the stdio server:
GEMINI_API_KEY=YOUR_KEY npm startThe stdio implementation can also be placed behind an MCP gateway that exposes it through Streamable HTTP. Tool filtering remains a client or gateway concern.
Error behavior
The server does not silently correct or reroute failed requests. Tool errors include the tool name, processing stage, configured model, thinking level, source, and the original Gemini status, code, and message when available.
A nonexistent server-side path fails at the filesystem stage because no API request can be constructed. Temporary-upload cleanup failures are non-fatal and are reported as warnings.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityDmaintenanceMinimal MCP server that provides access to Google's Gemini API with Google Search grounding for up-to-date information through a single ask_gemini tool.
- AlicenseAqualityCmaintenanceMCP server for Google's Gemini API, enabling text, image, video, speech, embeddings, and deep research capabilities through a single tool set.10MIT
- Alicense-qualityCmaintenanceRemote MCP server that exposes Google Gemini's text, image, video (Veo), and audio transcription capabilities as tools any MCP client can call directly.67MIT
- Alicense-qualityDmaintenanceAn MCP server that lets AI assistants use Google's Gemini models. Generate text, analyze images, review code, and more — with support for multi-turn conversations and web-grounded answers.1521MIT
Related MCP Connectors
MCP server exposing the Backtest360 engine API as tools for AI agents.
MCP server for Google Veo AI video generation
MCP server for AI dialogue using various LLM models via AceDataCloud
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/sandlong/gemini-understanding'
If you have feedback or need assistance with the MCP directory API, please join our Discord server