Note: |
|
Connect to Gemini
Gemini's MCP support varies by surface.
Gemini CLI
Before you begin: Check if npm is installed
Run this command in your terminal to check if npm is already installed:
npm -v
If it returns a version number, you already have npm and can skip to Step 1.
If you get an error like "command not found" or "'npm' is not recognized," download and install Node.js (which includes npm) for your OS from: https://nodejs.org/en/download
Install Gemini CLI: npm install -g @google/gemini-cli
(For Enterprise / Google Workspace users only) Set your Google Cloud project variable in your terminal before launching (standard/personal accounts can skip this step): Mac/Linux: export GOOGLE_CLOUD_PROJECT="your-gcp-project-id" Windows (cmd.exe): set GOOGLE_CLOUD_PROJECT=your-gcp-project-id
Windows (PowerShell): $env:GOOGLE_CLOUD_PROJECT="your-gcp-project-id"
Select your folder to load local configurations for Gemini CLI.
Authenticate the project via either of the below -
a. Gemini API key (To generate your Gemini API Key visit link > Create API Key > Copy your key) Paste this key when prompted in the terminal.
b. Sign in with google
c. Vertex AI.
Open the Gemini CLI settings file to add Tracxn:
Mac/Linux: ~/.gemini/settings.json
Windows: %USERPROFILE%\.gemini\settings.json
a.Standard Case (Security block present):
If your file already contains the "security" block, add a comma , directly after the closing bracket } of "security", then paste the "mcpServers" block below it.
{
"security": {
... },
"mcpServers": {
"tracxn": {
"httpUrl": "https://platform.tracxn.com/mcp"
}
}
}
b.If the file is empty -
Paste the entire JSON structure including the outer braces:
{
"mcpServers":{
"tracxn": {
"httpUrl": "https://platform.tracxn.com/mcp"
}
}
}
6. Save and close the file.
7. Launch Gemini CLI by running gemini in your terminal.
8. Inside the CLI prompt, run: /mcp auth tracxn - Authenticate in the browser window that opens.
9. Run /mcp list inside the interactive session to verify Tracxn is listed as a connected server.
Try "Use Tracxn, Find the top 10 funded Indian SaaS companies in 2025 and show their investor profiles."
⚠️ Note for Enterprise IT Admins: |
If an enterprise account encounters an admin_policy_enforced error during OAuth sign-in (Step 8), an IT Admin must whitelist Tracxn as a Trusted App in the Google Admin Console under Security > Access and data control > API Controls > Manage Third-Party App Access. |