How to integrate data into Gemini with Windsor MCP
To use your Windsor.ai data with Gemini models from the command line, add Windsor MCP to the Antigravity CLI (the agy command) or to the Gemini CLI. Both are command-line agents from Google. With Windsor MCP added, either CLI can query data from 350+ sources. You ask questions about your business data in plain language, without uploading files.
Which CLI to use depends on your Google account:
- Free, Google AI Pro or Google AI Ultra personal account: use the Antigravity CLI. Since 18 June 2026, the Gemini CLI no longer serves these accounts.
- Gemini Code Assist Standard or Enterprise licence, Google Cloud project or paid Gemini API key: the Gemini CLI still works with these. Google’s Gemini CLI documentation says the Gemini CLI is not optimized for the latest Gemini models and recommends the Antigravity CLI for them.
❗ Important: Other Gemini products have their own setup. For the Antigravity desktop app, follow the Windsor MCP setup guide for Antigravity. To add Windsor.ai to Gemini Enterprise as a data store, follow the Gemini Enterprise guide.
Prerequisites
To use Windsor MCP with the Antigravity CLI or the Gemini CLI, you need:
- A Windsor.ai account (free or paid plan) with at least one connected data source
- For the Antigravity CLI: a Google account (a free personal account works). Node.js is not needed.
- For the Gemini CLI: a Gemini Code Assist Standard or Enterprise licence, a Google Cloud project or a paid Gemini API key, and Node.js 20 or higher (check with
node -v) - A browser on the same computer as the CLI, for the Windsor.ai sign-in
🚀 Get started with Windsor MCP on the free forever plan, no credit card needed: https://onboard.windsor.ai/
Set up Windsor MCP in the Antigravity CLI
The Antigravity CLI steps were tested on 5 November 2026 with agy 1.5.1 on Windows.
1. Install the Antigravity CLI. On Windows, run this in PowerShell:
irm https://antigravity.google/cli/install.ps1 | iex
On macOS or Linux, run:
curl -fsSL https://antigravity.google/cli/install.sh | bash
On Windows, close the terminal and open a new one after the install, so that the agy command is found.
2. Start the Antigravity CLI and sign in to Google:
agy
On the first start, agy asks you to sign in with your Google account. Open the sign-in link, approve access, and paste the code that Google shows back into the terminal. Paste the code soon after it appears, because an old code is rejected. Then exit with /exit.
3. Add Windsor MCP to the Antigravity CLI:
agy mcp add windsor https://mcp.windsor.ai/
agy replies with Added MCP server “windsor” (http) and saves the server in ~/.gemini/config/mcp_config.json:
{
"mcpServers": {
"windsor": {
"disabled": false,
"serverUrl": "https://mcp.windsor.ai/"
}
}
}
Note: The Antigravity CLI does not read the httpUrl key that the Gemini CLI uses. If you edit the file by hand, use serverUrl or url.
4. Start agy again and open the MCP manager:
/mcp
Before you sign in to Windsor.ai, windsor shows the error Unauthorized [Auth Needed]. Select windsor with the arrow keys, press Enter and choose to authenticate. A Windsor.ai page opens in your browser. Approve access there.
Tip: The Windsor.ai account that is logged in to your browser is the one that gets connected. If you have more than one Windsor.ai account, log in to the account with your data sources before you authenticate.
5. Ask a first question, for example “Which data sources are connected to my Windsor.ai account?”. Before each Windsor.ai tool runs, agy shows Allow calling this tool? with the tool name, for example windsor/get_connectors. Allow it once, for the conversation, or always (agy saves that choice in settings.json). agy then lists your connectors and the accounts connected under each one.
❗ Important: Windsor MCP for Gemini reads your data for analysis. On platforms that support write actions, Gemini can also make changes, such as pausing a campaign or changing a budget, when you ask it to. See the list of write actions by platform.
Set up Windsor MCP in the Gemini CLI
The Gemini CLI steps apply if you have a Gemini Code Assist Standard or Enterprise licence, a Google Cloud project or a paid Gemini API key.
1. Install Gemini CLI (command line interface).
npm install -g @google/gemini-cli
2. Run Gemini once so it generates its directories:
gemini
It can be closed with CTRL+C (or ⌘+C on macOS).
3. Configure Gemini to use Windsor MCP:
- Navigate to the Gemini config directory using the command:
cd ~/.gemini
- Open the settings.json file using the command:
nano settings.json
- Add the following configuration inside the JSON object:
{
"mcpServers": {
"windsor": {
"httpUrl": "https://mcp.windsor.ai/"
}
}
}
Note: Make sure the overall file remains valid JSON (no trailing commas or syntax errors).
4. Start Gemini with Windsor MCP:
gemini
5. Run the command:
/mcp auth windsor
It will open the browser window to authenticate windsor.ai.
6. Check the connection with the command:
/mcp list
The windsor server appears with its tools listed. Then ask a first question, for example “Which data sources are connected to my Windsor.ai account?”. Gemini answers with your connectors and the accounts connected under each one.
Troubleshooting
-
Windows says agy is not recognized after the install. The installer adds agy to PATH for new terminals only. Open a new terminal, or run
& "$env:LOCALAPPDATA\agy\bin\agy.exe"directly. -
In the Antigravity CLI, /mcp shows windsor with “Unauthorized [Auth Needed]”. The Windsor.ai sign-in is not done yet. In
/mcp, select windsor, press Enter and authenticate in the browser. - The Antigravity CLI does not call Windsor.ai tools when you run agy -p. The non-interactive mode denies every tool call that needs the Allow calling this tool? prompt. Ask the question in an interactive agy session instead.
- The Gemini CLI fails after you sign in with a personal Google account. Since 18 June 2026, the Gemini CLI does not serve free, Google AI Pro or Google AI Ultra accounts. Sign in with a Gemini Code Assist licence, a Google Cloud project or a paid Gemini API key, or set up Windsor MCP in the Antigravity CLI (steps above).
-
The Gemini CLI install fails or the gemini command does not start. Run
node -v. The Gemini CLI needs Node.js 20 or higher. -
The Gemini CLI shows “MCP issues detected”. Run
/mcp list. If windsor shows as DISCONNECTED, open settings.json and check that the file is valid JSON and that httpUrl is exactly https://mcp.windsor.ai/. Then run/mcp reload. - The browser does not open when you sign in to Windsor.ai. The sign-in in both CLIs needs a browser on the same machine as the CLI. It does not work over SSH or inside a container without a browser. Run the CLI on your own computer and sign in again.
Helpful links
- About Windsor MCP: general information about Windsor MCP, including supported data sources and LLMs, benefits and use cases.
- Windsor MCP use cases & examples (30+ prompts inside): practical examples and prompts to use with Gemini models when you are not sure what to ask.
- Antigravity CLI documentation: Google’s reference for agy commands, MCP servers and settings.
- How to integrate data into Antigravity with Windsor MCP: the setup for the Antigravity desktop app.
- How to integrate data into Gemini Enterprise with Windsor.ai: add Windsor.ai as a data store in Gemini Enterprise.
Tired of manual data reporting and analysis? Get started with Windsor MCP today to unlock instant AI insights