Skip to main content

Connecting with Google Gemini

You can connect to Google Gemini with the AtScale MCP Server.

Note

Currently, only Gemini CLI supports connections to custom MCP servers. For more information on Gemini CLI, refer to the Gemini CLI documentation.

Prerequisites

  • The AtScale MCP server must be enabled for your AtScale instance.
  • Your AtScale instance must be available to open ports.

Configure a connection to Gemini CLI

To connect to Gemini CLI:

  1. In Design Center, generate an API token:

    1. Click the profile icon in the top-right corner. The Account panel opens.

    2. In the API Token section, click the generate icon. A token is generated.

      The API Token section of the Account panel, with the generate icon highlighted.

    3. Copy the token.

  2. Install Gemini CLI. In a terminal window, run the following:

    npm install -g @google/gemini-cli@latestDevelopment Environment
  3. Add the following to your ~/.gemini/settings.json file. Be sure to replace <atscale_url> with the URL for your AtScale instance, and <api_token> with the API token you generated above.

    {
    "mcpServers": {
    "atscale-mcp": {
    "command": "npx",
    "args": [
    "mcp-remote",
    "https://<atscale_url>/mcp",
    "--header",
    "Authorization: Bearer ${AUTH_TOKEN}"
    ],
    "env": {
    "AUTH_TOKEN": "<api_token>",
    "NODE_TLS_REJECT_UNAUTHORIZED": "0"
    }
    }
    },
    "security": {
    "auth": {
    "selectedType": "oauth-personal"
    }
    },
    "ui": {
    "theme": "Default"
    },
    "general": {
    "previewFeatures": true
    }
    }
  4. In a terminal window, run the following to launch Gemini CLI:

    gemini

You can now begin querying your AtScale models through Gemini CLI.