ai
Google Gemini MCP, CLI, and Lua Integration for AI Agents
Google Gemini integration docs for AI agents: MCP gateway setup, Google Gemini CLI commands, Lua API reference, credentials, and function schemas.
7 functions 6 read 1 write API key auth
Google Gemini for agents
Credentials can be configured manually in web or CLI hosts.
Use this integration from Lua code mode, the headless integrations CLI, or the KosmoKrator MCP gateway. The same package metadata powers all three surfaces.
Machine-Readable Metadata
- integration_slug
google-gemini- route_slug
google-gemini- package
google-gemini- auth_strategy
api_keyAPI key- cli_setup_supported
true- cli_runtime_supported
true- mcp_gateway_supported
true- lua_supported
true- supports_multi_account
true
Quick Links
Lua APIAgent-facing namespace and function reference. Google Gemini CLIHeadless setup and direct function calls. Google Gemini MCPMCP gateway setup for external clients. Submit feedbackReport missing tools, auth problems, wrong docs, or runtime issues. ContributeAdd tools or improve metadata in the integrations repo.
Google Gemini MCP Client Matrix
Use these pages when a specific agent client or framework needs copy-pasteable MCP setup for Google Gemini.
Claude Code Google Gemini MCP setup for Claude Code. Cursor Google Gemini MCP setup for Cursor. Codex Google Gemini MCP setup for Codex. OpenAI Agents Google Gemini MCP setup for OpenAI Agents SDK. Claude Agent SDK Google Gemini MCP setup for Claude Agent SDK. Vercel AI SDK Google Gemini MCP setup for Vercel AI SDK. LangChain Google Gemini MCP setup for LangChain. LangGraph Google Gemini MCP setup for LangGraph. CrewAI Google Gemini MCP setup for CrewAI. MCP clients Google Gemini MCP setup for Generic MCP Clients.
Google Gemini CLI Matrix
Use these pages for direct Google Gemini CLI workflows in scripts, CI, cron, and agent wrappers.
CI Google Gemini CLI for CI. Cron Jobs Google Gemini CLI for cron jobs. Shell Scripts Google Gemini CLI for shell scripts. Headless Automation Google Gemini CLI for headless automation. Coding Agents Google Gemini CLI for coding agents.
Function Catalog
| Function | Type | Parameters | Description |
|---|---|---|---|
google-gemini.gemini_list_models | Read read | 2 | List available Gemini AI models. Returns model names, display names, supported generation methods, and other metadata. |
google-gemini.gemini_get_model | Read read | 1 | Get detailed information about a specific Gemini model, including supported generation methods, input/output token limits, and capabilities. |
google-gemini.gemini_generate_content | Write write | 5 | Generate content using a Gemini model. Send text prompts and receive AI-generated responses. Supports configurable generation parameters like temperature, topP, and maxOutputTokens. |
google-gemini.gemini_list_files | Read read | 2 | List files uploaded to the Gemini File API. Returns file names, MIME types, sizes, and states. |
google-gemini.gemini_get_file | Read read | 1 | Get metadata for an uploaded file in the Gemini File API, including its name, display name, MIME type, size, and processing state. |
google-gemini.gemini_list_tuned_models | Read read | 2 | List tuned (fine-tuned) Gemini models in your project. Returns model names, base models, tuning tasks, and display names. |
google-gemini.gemini_get_current_user | Read read | 0 | Get information about the currently authenticated Google user, including permissions and account details. |