Gemini MCP Server

Gemini CLI

Local serverstdio

What is the Gemini MCP server?

Most payments and commerce work still happens through a UI a human drives. Gemini MCP server moves it into the conversation instead. Gemini CLI.

The short version

Gemini CLI is an open-source AI agent that brings the power of Gemini directly into your terminal. It provides lightweight access to Gemini, giving you the most direct path from your prompt to our model.

Getting it running

@google/gemini-cli on npm is all you need. Most clients run it directly, so configuration is a few lines and a restart.

The tools it exposes

The server publishes 5 tools. What each one is for:

  • Usage — based billing**: Upgrade for higher limits when needed
  • Preview — New preview releases will be published each week at UTC 23:59 on Tuesdays. These releases will not have been fully vetted and may contain regressions
  • Stable — The Stable tool exposed by this server
  • Nightly — The Nightly tool exposed by this server
  • Uninstall — See the Uninstall Guide for removal instructions

What it needs from you

Configuration is passed through the environment: GOOGLE_CLOUD_PROJECT, GEMINI_API_KEY, GOOGLE_API_KEY, GOOGLE_GENAI_USE_VERTEXAI, YOUR_PROJECT_ID, YOUR_API_KEY. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

Things to watch

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

How it compares

Plenty of payments and commerce servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. Gemini's toolset — Usage, Preview, Stable and 2 more — is a fair guide to whether it matches your workflow. It is maintained by google-wombot; worth a glance at recent repository activity before you build anything load-bearing on it.

SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.

Available tools

ToolWhat it does
Usagebased billing**: Upgrade for higher limits when needed
PreviewNew preview releases will be published each week at UTC 23:59 on Tuesdays. These releases will not have been fully vetted and may contain regressions or other outstanding issues. Please help us test and install with prev
StableThe Stable tool exposed by this server.
NightlyThe Nightly tool exposed by this server.
UninstallSee the [Uninstall Guide](https://www.geminicli.com/docs/resources/uninstall) for removal instructions.

How to install the Gemini MCP server

{
  "mcpServers": {
    "gemini-cli": {
      "command": "npx",
      "args": ["-y", "@google/gemini-cli"],
      "env": {
        "GOOGLE_CLOUD_PROJECT": "your-value",
        "GEMINI_API_KEY": "your-value",
        "GOOGLE_API_KEY": "your-value",
        "GOOGLE_GENAI_USE_VERTEXAI": "your-value",
        "YOUR_PROJECT_ID": "your-value",
        "YOUR_API_KEY": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

VariableDescriptionRequired
GOOGLE_CLOUD_PROJECTConfiguration value read at startup.Optional
GEMINI_API_KEYCredential the server authenticates with.Yes
GOOGLE_API_KEYCredential the server authenticates with.Yes
GOOGLE_GENAI_USE_VERTEXAIConfiguration value read at startup.Optional
YOUR_PROJECT_IDConfiguration value read at startup.Optional
YOUR_API_KEYCredential the server authenticates with.Yes

Example prompts to try

  • Use Gemini to Usage.
  • Use Gemini to Preview.
  • Use Gemini to Stable.

Frequently asked questions

It connects Gemini to MCP-compatible AI assistants such as Claude and Cursor, exposing 5 tools (Usage, Preview, Stable, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Gemini directly.