Access Google Gemini models for multimodal AI, text generation, and reasoning. Analyze text, images, and documents; enable Google Search grounding and Python code execution; generate embeddings for semantic search; and explore available models and token usage.
Try asking
Encrypted at rest, isolated from the model
Resolved from an AES-256-GCM vault at the moment of the call and attached to the request — the model never sees the secrets.
Sends a prompt (text plus optional file links) to a Gemini text model and returns the finished interaction: its `id`, `status`, `steps` and token `usage`; the answer is the `text` of the `model_output` step. Pass an earlier `id` as `previous_interaction_id` to continue a conversation server-side. Files go in only as public HTTPS or pre-signed links (up to 15 MB each, no login or paywall); local files and private links are not supported. Text output only: image blocks (such as code-execution charts) are dropped from the returned steps. With `google_search` the model decides what to search (each query is billed on Gemini 3+ models after 5,000 free per month); Google's terms require you to show the answer with its `url_citation` annotations and the `search_suggestions` from the `google_search_result` step, unmodified. `code_execution` runs Python in Google's sandbox (fixed libraries, no installs, 30 s per run). Status `incomplete` means the output was cut short, e.g. by `max_output_tokens`.
Starts Gemini's Deep Research agent (preview) in the background on a research question; the agent plans, searches the web, reads sources and writes a detailed cited report. Returns immediately with the interaction `id` and `status: in_progress`; it does not wait for the report. Poll get_interaction with that `id` every 30-60 seconds until `status` is `completed` or `failed`; most tasks finish within 20 minutes, at most 60. The report is the text of the last step, with citations to show and review alongside it (Google Search terms apply). COSTLY: about $1-3 per task (`max=true`: about $3-7), so use it only for real research, not quick questions. Text only (charts are off). Stop a running task with cancel_interaction.
Retrieves a stored interaction by id and returns its `status`, `steps`, and token `usage`. Use it to poll background jobs such as start_deep_research until `status` leaves `in_progress` (`completed`, `failed` or `cancelled`); once completed, the answer or report is the text of the last `model_output` step, with citation annotations to show alongside it. Only stored interactions can be fetched. Text output only: image blocks are dropped from the returned steps.
Cancels a background interaction that is still running (e.g. a start_deep_research task) and returns the interaction as it was before and after the cancel; its `status` becomes `cancelled`. Only applies to background interactions still `in_progress`. Get the `id` from start_deep_research, or check the current status first with get_interaction. NOTE: this stops the job for good; it cannot be resumed. The response includes both the before and after state so you have a full record of what changed.
DESTRUCTIVE — REQUIRES EXPLICIT USER CONFIRMATION BEFORE CALLING. Permanently deletes a stored interaction (its stored request and response) by id. This action is irreversible — the interaction's input, output and history cannot be recovered, and it can no longer be fetched or continued with previous_interaction_id. NEVER call this tool autonomously or as part of an automated flow. You MUST stop, tell the user exactly what will be deleted and that it is permanent, and wait for their explicit written confirmation before proceeding. Returns the deleted `id` and `deleted: true`.
Lists the models available through the Gemini API. Returns each model's resource name, base model ID, version, token limits, supported generation methods, thinking support, and default sampling parameters, plus `nextPageToken` when more pages exist. Returns 50 models per page by default and at most 1000 per page; pass `nextPageToken` back as `page_token`, keeping `page_size` the same, to get the next page.
Gets metadata for one Gemini model. Returns its resource name, base model ID, version, display name, input and output token limits, supported generation methods, thinking support, and default temperature, max temperature, topP and topK. Get valid model IDs from list_models.
Runs a model's tokenizer on input content and returns the total token count plus per-modality counts, without generating anything. Models may tokenize differently, so pass the same model you will generate with.
Generates an embedding vector for one piece of content using a Gemini embedding model (e.g. `gemini-embedding-001`, `gemini-embedding-2`; generation models are not supported), for semantic search, classification, and clustering. Returns the vector in `embedding.values` plus prompt token usage per modality (`gemini-embedding-001` returns no usage). Only `parts[].text` is counted. Task type changes the vector, so for retrieval with `gemini-embedding-001` embed queries with taskType RETRIEVAL_QUERY and corpus text with RETRIEVAL_DOCUMENT, and use the same choice every time you embed the same kind of text. `gemini-embedding-2` does not use taskType: put the task in the text instead, e.g. `task: search result | query: <text>` for queries and `title: none | text: <text>` for documents. Default size is 3072 dimensions; set `outputDimensionality` (768, 1536 or 3072 recommended) to shrink it. `gemini-embedding-001` vectors below 3072 are not normalized, so normalize them yourself before comparing. Use list_models to find models whose supportedGenerationMethods include embedContent.
Evaluates one or more structured decision questions (yes/no probability `noul`, multiple choice `choice`, or graded `score`) against one shared input and returns one calibrated answer per question keyed by your question IDs, plus token usage; nothing is stored. Each question is answered independently against the same input, so batch related checks into one call. If `prompt_feedback.block_reason` is set, the input was blocked by the input policy and `answers` is empty.
Gemini MCP Server is open source. Tell the MewCP maintainers.
Pick your app for a step-by-step guide. Most sign in with OAuth, so there is no API key to copy.
Discovery, routing, credentials, tool scoping and execution logs all happen at the gateway→connections stay ACTIVE with no work from you
Gemini runs through a gateway that holds the credentials, scopes the access and records every call.
Managed auth, hosted MCP servers, and every Gemini tool your agent needs.
Free to start.
Add as preferred source on Google