> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hologrow.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Using Gemini CLI with Marrow MCP

# Using Gemini CLI with Marrow MCP

Use Gemini CLI when you want a terminal-first agent that can access Marrow over MCP.

<img src="https://mintlify.s3.us-west-1.amazonaws.com/hologrowinc/hub-files/mcp/marrow/gemini-cli-connector.png" alt="Gemini CLI connector setup steps" />

## Prerequisites

* Install [Gemini CLI](https://github.com/google-gemini/gemini-cli) and sign in.
* Create a Marrow MCP key in [Marrow MCP Integrations](https://app.marrow.com/integrations/mcp).

## Step 1: Add the Marrow MCP server

Run this command from your project root:

```bash theme={null}
gemini mcp add --transport http --scope project -H "marrow-mcp-key: YOUR_API_KEY" marrow "https://mcp.marrow.com/mcp/v1"
```

Replace `YOUR_API_KEY` with your Marrow MCP key.

## Step 2: Reload Gemini CLI

Restart your Gemini CLI session so it loads the new MCP server.

## Step 3: Test the connection

Run a prompt that uses Marrow data, for example:

```text theme={null}
Show me my Amazon Seller Central sales for the last seven days.
```

If Gemini CLI returns real data, you are connected.

## Starter project

Need a working starting point? Clone our [Gemini CLI template repository](https://github.com/Deltologic/marrow-mcp-gemini-cli). It is preconfigured.

## Fallback using `mcp-remote`

If you have problems with `gemini mcp add`, use this fallback proxy config instead:

```json theme={null}
{
    "mcpServers": {
        "marrow": {
            "command": "bash",
            "args": [
                "-lc",
                "npx -y mcp-remote@latest https://mcp.marrow.com/mcp/v1 --transport http-only --header \"marrow-mcp-key:${MARROW_MCP_KEY}\""
            ],
            "env": {
                "MARROW_MCP_KEY": "$MARROW_MCP_KEY"
            }
        }
    }
}
```

***

## Marrow MCP resources

Check the following resources for more information:

* MCP server URL: `https://mcp.marrow.com/mcp/v1`
* [Interactive Data Scheme](/hub/data-scheme)
* Data Scheme JSON: [https://api.marrow.com/api/v1/spec/data-scheme](https://api.marrow.com/api/v1/spec/data-scheme)
* Need help? Use the [contact form](https://forms.clickup.com/9015200219/f/8cnj2ev-38615/AOYF9I35QFOXWJQXIG?type=Form\&source=hub-mcp-gemini-cli-docs)
