Get the FREE Ultimate OpenClaw Setup Guide →

gemini -manager

A PowerShell script to manage Model Context Protocol (MCP) servers for the Gemini CLI. It allows adding, removing, enabling/disabling, and listing server configurations.

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio neo10111-gemini-mcp-manager powershell -ExecutionPolicy Bypass -File mcp-manager.ps1

How to use

This MCP server manager provides a PowerShell-based interface for configuring and controlling MCP servers used by the Gemini CLI. It lets you list all configured MCP servers, enable or disable them without deletion, add new servers, or remove existing ones. Through auto-detection of Gemini CLI settings, it can back up your configuration before making changes and offer repairs if a configuration becomes corrupted. Use the available commands to manage your MCP server fleet and ensure Gemini uses only the active, desired servers for model context interactions.

How to install

Prerequisites:

  • PowerShell 5.1 or higher installed on your system
  • Gemini CLI installed and configured

Installation steps:

  1. Clone this repository or download the mcp-manager.ps1 script directly.
  2. Place mcp-manager.ps1 in a directory included in your system PATH so you can invoke it from anywhere.
  3. (Optional) If your system restricts script execution, enable it for the current user: PowerShell command: Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
  4. Verify installation by running: powershell -NoProfile -ExecutionPolicy Bypass -File mcp-manager.ps1 help
  5. Start using the script (e.g., list, add, enable, disable, remove) to manage Gemini MCP servers.

Additional notes

Tips and considerations:

  • The manager auto-detects Gemini CLI settings.json and creates a backup before applying changes.
  • Disabled servers are kept separately to avoid affecting runtime behavior; you can easily re-enable them.
  • Use the status command to confirm the current state of a server before making changes.
  • Ensure the mcp-manager.ps1 script has appropriate permissions to read and write Gemini CLI configuration files.
  • If you encounter issues, run the script with the help flag (mcp-manager.ps1 help) to see all supported commands and examples.

Related MCP Servers

Sponsor this space

Reach thousands of developers