Using Gemini CLI with Marrow
Use Gemini CLI when you want a terminal-first Google Gemini agent that can read your synced Marrow data over MCP.Prerequisites
- At least one data source connected in Integrations and syncing in Data Explorer
- Gemini CLI installed and signed in
- An MCP key from AI Platforms
Step 1: Get Marrow credentials
From AI Hub → AI Platforms:- MCP server URL:
https://mcp.marrow.ai/mcp/v1 - Create an MCP key and copy it (shown only once)
Step 2: Add the Marrow MCP server
From your project root:YOUR_MCP_KEY with your key from AI Platforms.
--transport httpis required for remote streamable HTTP servers (default is stdio).--scope projectwrites to.gemini/settings.json; use--scope userfor~/.gemini/settings.json.
Step 3: Reload Gemini CLI
Restart your Gemini CLI session so it loads the new MCP server. You can confirm with:Step 4: Test the connection
Optional: config with an environment variable
To avoid storing the key inline, edit the Marrow entry in settings and reference an env var (supported by Gemini CLI headers interpolation):MARROW_MCP_KEY in your shell before starting Gemini CLI.
Security
- Marrow is read-only — it never posts or changes store/ad settings.
- Prefer env-based keys for shared machines or committed project configs.
- Rotate or revoke keys from AI Platforms anytime.