codex-gemini-bridge
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., "@codex-gemini-bridgeUse Gemini to review this pull request"
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.
codex-gemini-bridge
A lightweight, zero-dependency MCP server that connects OpenAI Codex to Gemini models via your local Antigravity CLI (agy).
Supports macOS, Linux, and Windows.
1. Prerequisites
Node.js:
>= 22.0.0(node --version)Antigravity CLI (
agy):Install
agyfrom the official installation guide.Authenticate with Google:
agy auth login agy models
Related MCP server: codex-cli-mcp-tool
2. Quick Install & Auto-Config (Recommended)
Run the one-liner setup command for your operating system. It downloads the project to ~/.codex/mcp-servers/codex-gemini-bridge and automatically configures Codex (~/.codex/config.toml):
macOS / Linux
bash <(curl -fsSL https://raw.githubusercontent.com/theotherkim/codex-gemini-bridge/main/scripts/setup.sh)Windows (PowerShell)
irm https://raw.githubusercontent.com/theotherkim/codex-gemini-bridge/main/scripts/setup.ps1 | iex(If you already cloned the repo locally, simply run npm run setup inside the project directory).
3. Manual Configuration (Optional)
If you prefer to configure manually, clone the repository into your Codex MCP directory:
macOS / Linux
git clone https://github.com/theotherkim/codex-gemini-bridge.git ~/.codex/mcp-servers/codex-gemini-bridgeAdd to ~/.codex/config.toml:
[mcp_servers.codex-gemini-bridge]
command = "node"
args = ["~/.codex/mcp-servers/codex-gemini-bridge/src/index.mjs"]
env_vars = ["AGY_BIN"](Or via Codex CLI: codex mcp add codex-gemini-bridge -- node ~/.codex/mcp-servers/codex-gemini-bridge/src/index.mjs)
Windows
git clone https://github.com/theotherkim/codex-gemini-bridge.git "$env:USERPROFILE\.codex\mcp-servers\codex-gemini-bridge"Add to %USERPROFILE%\.codex\config.toml:
[mcp_servers.codex-gemini-bridge]
command = "node"
args = ["C:/Users/<YourUsername>/.codex/mcp-servers/codex-gemini-bridge/src/index.mjs"]
env_vars = ["AGY_BIN"]4. Usage
Restart Codex, then ask in natural language:
"Ask Gemini to summarize this codebase"
"Use Gemini to review this pull request"
"List available models with
gemini_models"
Available Tools
gemini: Send prompts to Gemini (supportsprompt,model,thinking_level,store, etc.).gemini_models: List all models available to your local account.
License
MIT © Kim
Available Tools
2 toolsgeminiA
Send a prompt to the local Antigravity CLI and return the model text output. The default model is Gemini 3.7 Flash High. Pass store=true to receive a conversation_id that can be used with previous_interaction_id on a later call. Returns model text, interaction_id, model, usage metadata and status. Never returns credentials.
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Model id. Defaults to gemini-3.7-flash-high. | |
| store | No | Return a conversation_id so it can be referenced later by previous_interaction_id. Defaults to false. | |
| prompt | Yes | The user prompt to send to the model (required, non-empty). | |
| timeout_ms | No | Request timeout in milliseconds. Defaults to 120000, max 300000. | |
| thinking_level | No | Reasoning effort. Defaults to high. | |
| system_instruction | No | Optional system instruction to prepend to the conversation. | |
| previous_interaction_id | No | ID of a previously stored interaction to continue the conversation. Requires store=true. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the burden of revealing behavioral traits. It discloses what is returned (model text, interaction_id, model, usage metadata, status), a safety guarantee ('Never returns credentials'), and the conditional behavior of store=true generating a conversation_id. While it does not mention rate limits or side effects, it covers the most critical behavior for an AI agent selecting this tool.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is four sentences, approximately 70 words, with each sentence contributing unique information: purpose, default model, store mechanism, return values and safety. It is front-loaded and contains no redundant filler, making it highly efficient.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool complexity (7 params, no annotations, no output schema), the description is reasonably complete. It explains the tool's operation, return fields, and conversation continuation. It does not cover error scenarios or detailed response formatting, but the schema covers parameter specifics, and the description lists the key output components.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the baseline is 3. The description adds value by explaining the relationship between store and previous_interaction_id, and by stating the default model, which complements the schema. It does not describe every parameter but enriches the context for the conversation flow.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's function: 'Send a prompt to the local Antigravity CLI and return the model text output.' This is specific with a verb and resource. However, it does not explicitly differentiate from the sibling tool 'gemini_models', missing the chance to contrast with a likely model-listing tool.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides useful context about the default model, store=true for conversation continuation, and return values. However, it offers no explicit guidance on when to use this tool versus alternatives (e.g., gemini_models) or any when-not scenarios. The usage is implied but not explicitly framed as a choice.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
gemini_modelsA
List the models available to the local Antigravity CLI. Returns filtered model ids and display names.
| Name | Required | Description | Default |
|---|---|---|---|
| filter | No | Optional case-insensitive substring to filter model ids, e.g. 'flash' or 'gemini-3'. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description discloses that the tool is local to the Antigravity CLI and returns filtered model ids and display names. However, it does not explicitly mention side effects, permissions, or failure modes, though for a simple list operation these may be less critical.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single sentence that immediately states the purpose and separates the return value. It is concise, front-loaded, and contains no filler, earning the highest score.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple list tool with one optional parameter and no output schema, the description provides sufficient context: it states the local scope, the list action, and the return fields. It is complete for the tool's simplicity, though it could benefit from explicit sibling differentiation.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema already provides full coverage (100%) of the 'filter' parameter, describing it as a case-insensitive substring. The description adds minimal extra meaning by mentioning 'filtered' output, but it does not explain parameter syntax or behavior beyond the schema.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool lists models available to the local Antigravity CLI, using a specific action ('List') and resource ('models'). It also mentions the return format (filtered model ids and display names), which distinguishes it from the sibling 'gemini' tool that likely performs a different action.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies the tool is used to discover available models, but it does not explicitly state when to use it versus the sibling 'gemini' tool. No alternative or when-not-to-use guidance is provided, leaving room for confusion in tool selection.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
2 tool updates
v0.1.0- First observed
gemini - First observed
gemini_models
TDQS
The two tools have clearly distinct purposes: 'gemini' sends prompts and returns text completions, while 'gemini_models' lists available models. There is no ambiguity or overlap between them.
Both names share the 'gemini' prefix, but one is a bare noun and the other uses an underscore suffix. This is readable and predictable, though it doesn't follow a strict verb_noun pattern.
With only two tools, the server feels extremely thin for a general bridge. However, the scope is limited to prompt execution and model listing, so the count is borderline acceptable.
The core functions of sending prompts and listing models are covered, including support for conversation history via IDs. Minor gaps exist, such as streaming or explicit model selection parameters in the main tool, but the essential workflow is usable.
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 Connectors
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
MCP server for AI dialogue using various LLM models via AceDataCloud
An MCP server that gives your AI access to the source code and docs of all public github repos
Driflyte MCP server which lets AI assistants query topic-specific knowledge from web and GitHub.
Related MCP Servers
- AlicenseAqualityFmaintenanceA lightweight MCP server that enables AI coding assistants to interact with Google's Gemini AI through the official CLI.3MIT
- AlicenseNot gradedqualityFmaintenanceAn MCP server that allows Claude Code to interact with the OpenAI Codex CLI.2921MIT
- AlicenseNot gradedqualityCmaintenanceAn MCP server that integrates Google Gemini CLI with Claude Code for AI-powered development assistance, enabling code review, bug analysis, feature planning, and code explanation without requiring an API key.8MIT
- FlicenseNot gradedqualityCmaintenanceAn MCP server that leverages Google Antigravity SDK and Gemini Enterprise Agent Platform to provide AI-driven code review and task execution via natural language.1-
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/theotherkim/codex-gemini-bridge'
If you have feedback or need assistance with the MCP directory API, please join our Discord server