# GeminiBastionMCP — Remote MCP Bastion for Web Gemini, Claude & ChatGPT

> GeminiBastionMCP — Remote MCP Bastion for Web Gemini, Claude & ChatGPT is an MCP server for ai models and llm tooling. OAuth MCP gateway for Gemini, Claude.ai and ChatGPT with one approval gate. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Platforms:** Self-hosted, API
- **Repository:** https://github.com/kaiserunix/gemini-bastion-mcp
- **MCP Registry name:** io.github.Kaiserunix/gemini-bastion-mcp
- **Categories:** [AI models and LLM tooling](https://ai-powered.com/categories/ai-and-llm), [developer tools](https://ai-powered.com/categories/developer-tools), [agent sandbox](https://ai-powered.com/categories/agent-sandbox)
- **Listing updated:** 2026-11-23

## About

GeminiBastionMCP is a self-hosted remote MCP server built so that web Gemini, Claude.ai custom connectors and ChatGPT connectors can all use it. It implements OAuth 2.1 with dynamic client registration and speaks Streamable HTTP.

It exposes 10 tools for syncing GitHub repositories, exploring code, applying atomic patches and running checks inside a per-workspace bubblewrap jail with the network disabled by default. Background tasks can be handed to Codex, Claude Code, Gemini CLI or OpenCode drivers.

Only one tool, publish_changes, needs approval before anything leaves the sandbox, so reads, tests and edits do not trigger repeated prompts. Direct pushes to main or master are blocked. It ships as lite and full container images and needs a public HTTPS domain.

## Features

- **Standard remote MCP:** Works with web Gemini, Claude.ai custom connectors and ChatGPT connectors.
- **One approval gate:** Only publish_changes asks for approval; other tools run without prompts.
- **Sandboxed execution:** Tests and commands run in a per-workspace bubblewrap jail with no network by default.
- **Pluggable agent drivers:** Delegate tasks to Codex, Claude Code, Gemini CLI or OpenCode.
- **Code exploration and patching:** Uses ripgrep and ast-grep and applies atomic patches with checkpoints.
- **Protected branches:** Direct pushes to main or master are blocked.

## Good for

- Fix a failing CI run from a phone browser
- Open a pull request from a chat with Web Gemini
- Explore and patch a repository remotely
- Run tests in an isolated workspace
- Delegate coding tasks to a background agent

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add gemini-bastion-mcp --env PUBLIC_DOMAIN='<PUBLIC_DOMAIN>' --env ADMIN_PASSWORD_HASH='<ADMIN_PASSWORD_HASH>' --env OAUTH_SIGNING_SECRET='<OAUTH_SIGNING_SECRET>' -- docker run -i --rm -e PUBLIC_DOMAIN -e ADMIN_PASSWORD_HASH -e OAUTH_SIGNING_SECRET ghcr.io/kaiserunix/gemini-bastion-mcp:0.3.0-lite
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "gemini-bastion-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "PUBLIC_DOMAIN",
        "-e",
        "ADMIN_PASSWORD_HASH",
        "-e",
        "OAUTH_SIGNING_SECRET",
        "ghcr.io/kaiserunix/gemini-bastion-mcp:0.3.0-lite"
      ],
      "env": {
        "PUBLIC_DOMAIN": "<PUBLIC_DOMAIN>",
        "ADMIN_PASSWORD_HASH": "<ADMIN_PASSWORD_HASH>",
        "OAUTH_SIGNING_SECRET": "<OAUTH_SIGNING_SECRET>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "gemini-bastion-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "PUBLIC_DOMAIN",
        "-e",
        "ADMIN_PASSWORD_HASH",
        "-e",
        "OAUTH_SIGNING_SECRET",
        "ghcr.io/kaiserunix/gemini-bastion-mcp:0.3.0-lite"
      ],
      "env": {
        "PUBLIC_DOMAIN": "<PUBLIC_DOMAIN>",
        "ADMIN_PASSWORD_HASH": "<ADMIN_PASSWORD_HASH>",
        "OAUTH_SIGNING_SECRET": "<OAUTH_SIGNING_SECRET>"
      }
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "gemini-bastion-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "PUBLIC_DOMAIN",
        "-e",
        "ADMIN_PASSWORD_HASH",
        "-e",
        "OAUTH_SIGNING_SECRET",
        "ghcr.io/kaiserunix/gemini-bastion-mcp:0.3.0-lite"
      ],
      "env": {
        "PUBLIC_DOMAIN": "<PUBLIC_DOMAIN>",
        "ADMIN_PASSWORD_HASH": "<ADMIN_PASSWORD_HASH>",
        "OAUTH_SIGNING_SECRET": "<OAUTH_SIGNING_SECRET>"
      }
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "gemini-bastion-mcp": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "PUBLIC_DOMAIN",
        "-e",
        "ADMIN_PASSWORD_HASH",
        "-e",
        "OAUTH_SIGNING_SECRET",
        "ghcr.io/kaiserunix/gemini-bastion-mcp:0.3.0-lite"
      ],
      "env": {
        "PUBLIC_DOMAIN": "<PUBLIC_DOMAIN>",
        "ADMIN_PASSWORD_HASH": "<ADMIN_PASSWORD_HASH>",
        "OAUTH_SIGNING_SECRET": "<OAUTH_SIGNING_SECRET>"
      }
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add gemini-bastion-mcp --env PUBLIC_DOMAIN='<PUBLIC_DOMAIN>' --env ADMIN_PASSWORD_HASH='<ADMIN_PASSWORD_HASH>' --env OAUTH_SIGNING_SECRET='<OAUTH_SIGNING_SECRET>' -- docker run -i --rm -e PUBLIC_DOMAIN -e ADMIN_PASSWORD_HASH -e OAUTH_SIGNING_SECRET ghcr.io/kaiserunix/gemini-bastion-mcp:0.3.0-lite
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.gemini-bastion-mcp]
command = "docker"
args = ["run", "-i", "--rm", "-e", "PUBLIC_DOMAIN", "-e", "ADMIN_PASSWORD_HASH", "-e", "OAUTH_SIGNING_SECRET", "ghcr.io/kaiserunix/gemini-bastion-mcp:0.3.0-lite"]
env = { PUBLIC_DOMAIN = "<PUBLIC_DOMAIN>", ADMIN_PASSWORD_HASH = "<ADMIN_PASSWORD_HASH>", OAUTH_SIGNING_SECRET = "<OAUTH_SIGNING_SECRET>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "gemini-bastion-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "PUBLIC_DOMAIN",
        "-e",
        "ADMIN_PASSWORD_HASH",
        "-e",
        "OAUTH_SIGNING_SECRET",
        "ghcr.io/kaiserunix/gemini-bastion-mcp:0.3.0-lite"
      ],
      "env": {
        "PUBLIC_DOMAIN": "<PUBLIC_DOMAIN>",
        "ADMIN_PASSWORD_HASH": "<ADMIN_PASSWORD_HASH>",
        "OAUTH_SIGNING_SECRET": "<OAUTH_SIGNING_SECRET>"
      }
    }
  }
}
```

Or run: gemini mcp add -s user -e PUBLIC_DOMAIN='<PUBLIC_DOMAIN>' -e ADMIN_PASSWORD_HASH='<ADMIN_PASSWORD_HASH>' -e OAUTH_SIGNING_SECRET='<OAUTH_SIGNING_SECRET>' gemini-bastion-mcp docker -- run -i --rm -e PUBLIC_DOMAIN -e ADMIN_PASSWORD_HASH -e OAUTH_SIGNING_SECRET ghcr.io/kaiserunix/gemini-bastion-mcp:0.3.0-lite

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "gemini-bastion-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "PUBLIC_DOMAIN",
        "-e",
        "ADMIN_PASSWORD_HASH",
        "-e",
        "OAUTH_SIGNING_SECRET",
        "ghcr.io/kaiserunix/gemini-bastion-mcp:0.3.0-lite"
      ],
      "env": {
        "PUBLIC_DOMAIN": "<PUBLIC_DOMAIN>",
        "ADMIN_PASSWORD_HASH": "<ADMIN_PASSWORD_HASH>",
        "OAUTH_SIGNING_SECRET": "<OAUTH_SIGNING_SECRET>"
      }
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "gemini-bastion-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "PUBLIC_DOMAIN",
        "-e",
        "ADMIN_PASSWORD_HASH",
        "-e",
        "OAUTH_SIGNING_SECRET",
        "ghcr.io/kaiserunix/gemini-bastion-mcp:0.3.0-lite"
      ],
      "env": {
        "PUBLIC_DOMAIN": "<PUBLIC_DOMAIN>",
        "ADMIN_PASSWORD_HASH": "<ADMIN_PASSWORD_HASH>",
        "OAUTH_SIGNING_SECRET": "<OAUTH_SIGNING_SECRET>"
      }
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "gemini-bastion-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "PUBLIC_DOMAIN",
        "-e",
        "ADMIN_PASSWORD_HASH",
        "-e",
        "OAUTH_SIGNING_SECRET",
        "ghcr.io/kaiserunix/gemini-bastion-mcp:0.3.0-lite"
      ],
      "env": {
        "PUBLIC_DOMAIN": "<PUBLIC_DOMAIN>",
        "ADMIN_PASSWORD_HASH": "<ADMIN_PASSWORD_HASH>",
        "OAUTH_SIGNING_SECRET": "<OAUTH_SIGNING_SECRET>"
      }
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "gemini-bastion-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "PUBLIC_DOMAIN",
        "-e",
        "ADMIN_PASSWORD_HASH",
        "-e",
        "OAUTH_SIGNING_SECRET",
        "ghcr.io/kaiserunix/gemini-bastion-mcp:0.3.0-lite"
      ],
      "env": {
        "PUBLIC_DOMAIN": "<PUBLIC_DOMAIN>",
        "ADMIN_PASSWORD_HASH": "<ADMIN_PASSWORD_HASH>",
        "OAUTH_SIGNING_SECRET": "<OAUTH_SIGNING_SECRET>"
      }
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "gemini-bastion-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "PUBLIC_DOMAIN",
        "-e",
        "ADMIN_PASSWORD_HASH",
        "-e",
        "OAUTH_SIGNING_SECRET",
        "ghcr.io/kaiserunix/gemini-bastion-mcp:0.3.0-lite"
      ],
      "env": {
        "PUBLIC_DOMAIN": "<PUBLIC_DOMAIN>",
        "ADMIN_PASSWORD_HASH": "<ADMIN_PASSWORD_HASH>",
        "OAUTH_SIGNING_SECRET": "<OAUTH_SIGNING_SECRET>"
      }
    }
  }
}
```

The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "gemini-bastion-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "PUBLIC_DOMAIN",
        "-e",
        "ADMIN_PASSWORD_HASH",
        "-e",
        "OAUTH_SIGNING_SECRET",
        "ghcr.io/kaiserunix/gemini-bastion-mcp:0.3.0-lite"
      ],
      "env": {
        "PUBLIC_DOMAIN": "<PUBLIC_DOMAIN>",
        "ADMIN_PASSWORD_HASH": "<ADMIN_PASSWORD_HASH>",
        "OAUTH_SIGNING_SECRET": "<OAUTH_SIGNING_SECRET>"
      }
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "gemini-bastion-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "PUBLIC_DOMAIN",
        "-e",
        "ADMIN_PASSWORD_HASH",
        "-e",
        "OAUTH_SIGNING_SECRET",
        "ghcr.io/kaiserunix/gemini-bastion-mcp:0.3.0-lite"
      ],
      "env": {
        "PUBLIC_DOMAIN": "<PUBLIC_DOMAIN>",
        "ADMIN_PASSWORD_HASH": "<ADMIN_PASSWORD_HASH>",
        "OAUTH_SIGNING_SECRET": "<OAUTH_SIGNING_SECRET>"
      }
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "gemini-bastion-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "PUBLIC_DOMAIN",
        "-e",
        "ADMIN_PASSWORD_HASH",
        "-e",
        "OAUTH_SIGNING_SECRET",
        "ghcr.io/kaiserunix/gemini-bastion-mcp:0.3.0-lite"
      ],
      "env": {
        "PUBLIC_DOMAIN": "<PUBLIC_DOMAIN>",
        "ADMIN_PASSWORD_HASH": "<ADMIN_PASSWORD_HASH>",
        "OAUTH_SIGNING_SECRET": "<OAUTH_SIGNING_SECRET>"
      }
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 3 of 6 tools change data; 2 names don't say. From the server's own tool labels and tool names; not verified by us.

- `github_inspect` (name suggests: reads): Fetch GitHub details such as failed Actions logs
- `workspace_manage`: Sync a repository into a workspace and recall workspace memory
- `code_explore`: Locate code with ripgrep and ast-grep
- `code_patch` (name suggests: changes): Apply an atomic patch with a checkpoint
- `workspace_exec` (name suggests: changes): Run commands and tests in the sandbox
- `publish_changes` (name suggests: changes): Publish a branch and open a pull request after approval

## FAQ

### How many tools does GeminiBastionMCP — Remote MCP Bastion for Web Gemini, Claude & ChatGPT have?

10.

### What do I need to host GeminiBastionMCP — Remote MCP Bastion for Web Gemini, Claude & ChatGPT?

A public HTTPS domain, an OAuth signing secret and an admin password hash.

### Which agent drivers are supported?

Codex, Claude Code, Gemini CLI and OpenCode.

### How is GeminiBastionMCP — Remote MCP Bastion for Web Gemini, Claude & ChatGPT distributed?

As lite and full container images on GitHub Container Registry.

### How do I add GeminiBastionMCP — Remote MCP Bastion for Web Gemini, Claude & ChatGPT to Claude Code?

Run this command in your terminal: claude mcp add gemini-bastion-mcp --env PUBLIC_DOMAIN='<PUBLIC_DOMAIN>' --env ADMIN_PASSWORD_HASH='<ADMIN_PASSWORD_HASH>' --env OAUTH_SIGNING_SECRET='<OAUTH_SIGNING_SECRET>' -- docker run -i --rm -e PUBLIC_DOMAIN -e ADMIN_PASSWORD_HASH -e OAUTH_SIGNING_SECRET ghcr.io/kaiserunix/gemini-bastion-mcp:0.3.0-lite

### What are the best alternatives to GeminiBastionMCP — Remote MCP Bastion for Web Gemini, Claude & ChatGPT?

The closest alternatives to GeminiBastionMCP — Remote MCP Bastion for Web Gemini, Claude & ChatGPT are LLM CLI Gateway, Gemini Researcher, Gemini Code Context MCP, Claude Agy MCP and MewCP.

## Where this comes from

- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [LLM CLI Gateway](https://ai-powered.com/mcp/llm-cli-gateway): LLM CLI Gateway is an open-source MCP server for ai models and llm tooling.
- [Gemini Researcher](https://ai-powered.com/mcp/gemini-researcher): Gemini Researcher is an open-source MCP server for ai models and llm tooling.
- [Gemini Code Context MCP](https://ai-powered.com/mcp/gemini-code-context-mcp): Gemini Code Context MCP is an open-source MCP server for ai models and llm tooling.
- [Claude Agy MCP](https://ai-powered.com/mcp/claude-agy-mcp): Claude Agy MCP is an open-source MCP server for ai models and llm tooling.
- [MewCP](https://ai-powered.com/mcp/mewcp): MewCP is a freemium MCP server for developer tools.
- [Gemini](https://ai-powered.com/mcp/gemini): Gemini is an open-source MCP server for ai models and llm tooling.
- [MCP Gemini](https://ai-powered.com/mcp/mcp-gemini): MCP Gemini is an open-source MCP server for ai models and llm tooling.
- [Gemini MCP](https://ai-powered.com/mcp/gemini-mcp): Gemini MCP is an open-source MCP server for design and media.

---
Source: https://ai-powered.com/mcp/geminibastionmcp-remote-mcp-bastion-for-web-gemini-claude-an
