Set up Gemini CLI with Remote MCP Private Preview
You can connect Gemini CLI to the Atlan Remote MCP server. This lets you search for assets, explore lineage, update metadata, create glossary terms, and more directly from your command line.
Prerequisites
Before you begin, make sure you have:
- An Atlan tenant with Remote MCP enabled. If you don't have access, contact Atlan support or your Atlan customer team to request it.
- Node.js 18 or newer installed on your system.
Install Gemini CLI
You can follow these steps to install Gemini CLI on Windows, macOS, or Linux. The installation commands are the same across all operating systems.
-
Open your terminal application. Terminal on macOS, Command Prompt or PowerShell on Windows, or any terminal emulator on Linux.
-
Run the following command to install Gemini CLI globally:
npm install -g @google/gemini-cliIf you prefer not to install globally, you can run Gemini CLI directly using:
npx @google/gemini-cli -
Verify the installation by running:
gemini --version
Set up Gemini CLI configuration
After installing Gemini CLI, follow these steps to authenticate and set up your configuration file.
-
In your terminal, start Gemini CLI by running:
geminiSign in using Google login or a Gemini API key. After authentication, your credentials are stored locally.
-
In your terminal, locate the Gemini settings file, which is stored at:
~/.gemini/settings.json -
If the file or folder doesn't exist, create them by running:
mkdir -p ~/.gemini
touch ~/.gemini/settings.json -
Use this file for all future MCP configuration. Any settings you add for the Atlan Remote MCP server must be added to
settings.json.
Set up Remote MCP
You can connect Gemini CLI to the Atlan Remote MCP server using either OAuth or an API key. Choose the method that best fits your use case.
- OAuth
- API Key
You can set up OAuth if you want Gemini CLI to connect using your Atlan login and permissions.
-
In your terminal, open the Gemini configuration file located at:
~/.gemini/settings.jsonAdd (or merge) the following section into the file:
{
"mcpServers": {
"Atlan OAuth Server": {
"httpUrl": "https://home.atlan.com/mcp",
"oauth": {
"enabled": true
}
}
}
}This shouldn't include headers or tokens. Gemini CLI handles the entire OAuth flow.
-
Save the file and restart Gemini CLI:
geminiAfter restart, the OAuth server becomes visible but won't be authorized yet.
-
In your active Gemini session, check for servers that require authentication by running:
/mcp authYou see output similar to:
Servers requiring authentication:
Atlan OAuth Server (NOT AUTHENTICATED) -
In the same session, authenticate the Atlan OAuth server by running:
/mcp auth Atlan OAuth ServerA browser window opens, you sign in, and Gemini stores the OAuth tokens locally. Once complete, the server becomes fully functional.
If tokens expire later, simply run the same command again.
-
After completing authentication, verify that the server is connected and begin using Atlan MCP tools.
In your active Gemini session, run:
/mcpYou see output similar to:
Atlan API Key Server (CONNECTED)
Atlan OAuth Server (CONNECTED)For more information, see the list of Atlan MCP tools.
You can set up API Key authentication if you want Gemini CLI to connect using a static token for automation or service-to-service use cases.
-
In Atlan, generate an API key by going to Admin Settings → API Keys / Tokens.
-
In your terminal, open the Gemini configuration file located at:
~/.gemini/settings.jsonAdd (or merge) the following section into the file:
{
"mcpServers": {
"Atlan API Key Server": {
"httpUrl": "https://home.atlan.com/mcp/api-key",
"headers": {
"Authorization": "Bearer <atlan_api_key_here>"
}
}
}
}Replace
<atlan_api_key_here>with your real Atlan API key or token. -
Save the file and restart Gemini CLI:
geminiBecause this server uses static headers, it usually begins working immediately if the token is valid.
-
After completing authentication, verify that the server is connected and begin using Atlan MCP tools.
In your active Gemini session, run:
/mcpYou see output similar to:
Atlan API Key Server (CONNECTED)
Atlan OAuth Server (CONNECTED)For more information, see the list of Atlan MCP tools.
Need help?
If you have any issues while configuring the integration, contact Atlan Support for assistance.