Use Dataplex Universal Catalog with MCP, Gemini, and other agents Stay organized with collections Save and categorize content based on your preferences.
This page explains how to connect your Dataplex Universal Catalog instance to developertools such as the Gemini CLI. Connecting Dataplex Universal Catalogto these tools enables AI-driven data discovery and asset management directlywithin your IDE.
For an integrated command-line experience, we recommend using the dedicatedDataplex Universal Catalog extension for Gemini CLI.The extension bundles the underlying Model Context Protocol (MCP) server, whichacts as an intermediary between Gemini CLI and Dataplex Universal Catalog,removing the need for a separate server setup.
Alternatively, you can connect other IDEs and developer tools that support MCPby using the general-purposeMCP Toolbox for Databases. You can then use AI agents in your existing IDE to discover data assets in Dataplex Universal Catalog.For more information about MCP, seeIntroduction to Model Context Protocol.
This guide demonstrates the connection process for the following tools:
- Gemini CLI (via Extension)
- Gemini Code Assist
- Claude code
- Claude desktop
- Cline (VS Code extension)
- Cursor
- Visual Studio Code (Copilot)
- Windsurf (formerly Codeium)
About Gemini CLI and extensions
Gemini CLI is an open-source conversational AI agent from Google thataccelerates development workflows and assists with coding, debugging, dataexploration, and content creation. It offers an agent-driven experience tointeract with Data Cloud services, such as Dataplex Universal Catalog, and otherpopular open-source databases.
For more information about Gemini CLI, see theGemini CLI documentation.
How extensions work
Extensions expand the capabilities of Gemini CLI, letting itconnect to and control specific Google Cloud services and other tools.They provide Gemini with context and API understanding, enablingconversational interaction. You can load Gemini CLI extensionsfrom GitHub URLs, local directories, or registries. These extensions offer newtools, slash commands, and prompts. These are separate from IDE extensions, suchas Gemini Code Assist, which integrate using the MCP Toolbox.
About the Dataplex Universal Catalog extension
MCP Toolbox for Databases is in beta (pre-v1.0), and might see breaking changes until the first stable release (v1.0).
The Dataplex Universal Catalog extension for Gemini CLI integratesAI into your data governance and discovery tasks. You can interact withDataplex Universal Catalog using natural language prompts in your terminal. Hereare some examples:
| Category | Tool | Example natural language prompt |
|---|---|---|
| Data discovery and governance | dataplex_search_entries |
|
dataplex_lookup_entry |
| |
dataplex_search_aspect_types |
|
For more information about the Dataplex Universal Catalog extension, see theGemini CLI Extension - Dataplex Universal Catalog.
Required roles
To get the permissions that you need to connect to Dataplex Universal Catalog using MCP Toolbox or the Gemini CLI extension, ask your administrator to grant you the following IAM roles on your project:
- To enable APIs:Service Usage Admin (
roles/serviceusage.serviceUsageAdmin) - To use Dataplex Universal Catalog tools:Dataplex Catalog Viewer (
roles/dataplex.catalogViewer)
For more information about granting roles, seeManage access to projects, folders, and organizations.
These predefined roles contain the permissions required to connect to Dataplex Universal Catalog using MCP Toolbox or the Gemini CLI extension. To see the exact permissions that are required, expand theRequired permissions section:
Required permissions
The following permissions are required to connect to Dataplex Universal Catalog using MCP Toolbox or the Gemini CLI extension:
- To enable APIs:
serviceusage.services.enable - To use Dataplex Universal Catalog tools:
dataplex.projects.searchdataplex.entries.getdataplex.aspectTypes.getdataplex.aspectTypes.list
You might also be able to get these permissions withcustom roles or otherpredefined roles.
Enable the Dataplex API
In the Google Cloud console, go to the project selector page.
Select or create a Google Cloud project.
Note: If you don't plan to keep the resources that you create in this procedure, create a project instead of selecting an existing project. After you finish these steps, you can delete the project, removing all resources associated with the project.Roles required to select or create a project
- Select a project: Selecting a project doesn't require a specific IAM role—you can select any project that you've been granted a role on.
- Create a project: To create a project, you need the Project Creator role (
roles/resourcemanager.projectCreator), which contains theresourcemanager.projects.createpermission.Learn how to grant roles.
Verify that billing is enabled for your Google Cloud project.
Enable the Dataplex API.
Roles required to enable APIs
To enable APIs, you need the Service Usage Admin IAM role (
roles/serviceusage.serviceUsageAdmin), which contains theserviceusage.services.enablepermission.Learn how to grant roles.If you're using a local shell, then create local authentication credentials for your user account:
gcloudauthapplication-defaultlogin
You don't need to do this if you're using Cloud Shell.
If an authentication error is returned, and you are using an external identity provider (IdP), confirm that you have signed in to the gcloud CLI with your federated identity.
Install MCP Toolbox
You don't need to install MCP Toolbox if you only plan to useGemini Code Assist or theGemini CLI extension,as they bundle the required server capabilities. For other IDEs and tools,follow the steps in this section to install MCP Toolbox.
Download the latest version of MCP Toolbox as a binary. Select thebinary that correspondsto your (OS) and CPU architecture. You must use MCP Toolbox v0.15.0or later.
Linux/amd64
curl -O https://storage.googleapis.com/genai-toolbox/VERSION/linux/amd64/toolbox
Replace
VERSIONwith MCP Toolboxversion—for example,v0.15.0.macOS (Darwin)/arm64
curl -O https://storage.googleapis.com/genai-toolbox/VERSION/darwin/arm64/toolbox
Replace
VERSIONwith MCP Toolboxversion—for example,v0.15.0.macOS (Darwin)/amd64
curl -O https://storage.googleapis.com/genai-toolbox/VERSION/darwin/amd64/toolbox
Replace
VERSIONwith MCP Toolboxversion—for example,v0.15.0.Windows/amd64
curl -O https://storage.googleapis.com/genai-toolbox/VERSION/windows/amd64/toolbox
Replace
VERSIONwith MCP Toolboxversion—for example,v0.15.0.Make the binary executable:
chmod+xtoolboxVerify the installation:
./toolbox--versionA successful installation returns the version number, for example, 0.15.0.
Set up clients and connections
This section explains how to connect Dataplex Universal Catalog to your tools.
If you are using Gemini Code Assist or the standaloneGemini CLI, you don't need to install or configure MCPToolbox, as these tools bundle the required server capabilities. For setupinstructions, see the Gemini Code Assist or Gemini CLI Extension tabs.
For other MCP-compatible tools and IDEs, you must firstinstall MCP Toolbox. The toolbox acts as an open-sourceModel Context Protocol (MCP)server that sits between your IDE and Dataplex Universal Catalog, providing a secureand efficient control plane for your AI tools. After installation, select the tabfor your specific tool to see configuration instructions.
Gemini CLI Extension
This method uses the dedicateddataplex extension for thestandalone Gemini CLI tool, and does not use MCP Toolbox.
- Install theGemini CLI.
- Install the Dataplex Universal Catalog extension for Gemini CLI from the GitHub repository:
gemini extensions install https://github.com/gemini-cli-extensions/dataplex
- Set the environment variable to connect to your Dataplex Universal Catalog project:
export DATAPLEX_PROJECT="PROJECT_ID"
Replace
PROJECT_IDwith your Google Cloud project ID. - Start the Gemini CLI in interactive mode:
The CLI automatically loads the Dataplex Universal Catalog extension and its tools, which you can use to interact with your data assets.gemini
Gemini Code Assist
Gemini Code Assist bundles the required MCP server capabilities, so you don't need to install MCP Toolbox separately.
- In VS Code, install theGemini Code Assist extension.
- Enable Agent Mode in Gemini Code Assist chat.
- In your working directory, create a folder named
.gemini. Within that, create asettings.jsonfile. - Add the following configuration, replace the environment variables with your values, and save:
{ "mcpServers": { "dataplex": { "command": "./PATH/TO/toolbox", "args": ["--prebuilt","dataplex","--stdio"], "env": { "DATAPLEX_PROJECT": "PROJECT_ID" } } } }
Claude code
- InstallClaude Code.
- Create
.mcp.jsonfile in your project root, if it doesn't exist. - Add the configuration, replace the environment variables with your values, and save:
{ "mcpServers": { "dataplex": { "command": "./PATH/TO/toolbox", "args": ["--prebuilt","dataplex","--stdio"], "env": { "DATAPLEX_PROJECT": "PROJECT_ID" } } } }
Claude desktop
- OpenClaude Desktop and navigate toSettings.
- To open the configuration file, in theDeveloper tab, clickEdit config.
- Add the configuration, replace the environment variables with your values, and save:
{ "mcpServers": { "dataplex": { "command": "./PATH/TO/toolbox", "args": ["--prebuilt","dataplex","--stdio"], "env": { "DATAPLEX_PROJECT": "PROJECT_ID" } } } } - Restart Claude desktop.
The new chat screen displays an MCP icon with the new MCP server.
Cline
- In VS Code, open theCline extension and then click theMCP Servers icon.
- To open the configuration file, tapConfigure MCP Servers.
- Add the following configuration, replace the environment variables with your values, and save:
A green active status appears after the server connects successfully.{ "mcpServers": { "dataplex": { "command": "./PATH/TO/toolbox", "args": ["--prebuilt","dataplex","--stdio"], "env": { "DATAPLEX_PROJECT": "PROJECT_ID" } } } }
Cursor
- Create the
.cursordirectory in your project root if it doesn't exist. - Create the
.cursor/mcp.jsonfile if it doesn't exist and open it. - Add the following configuration, replace the environment variables with your values, and save:
{ "mcpServers": { "dataplex": { "command": "./PATH/TO/toolbox", "args": ["--prebuilt","dataplex","--stdio"], "env": { "DATAPLEX_PROJECT": "PROJECT_ID" } } } } - OpenCursor and navigate toSettings>Cursor Settings> MCP. A green active status appears when the server connects.
VS Code (Copilot)
- OpenVS Code and create
.vscodedirectory in your project root if it doesn't exist. - Create the
.vscode/mcp.jsonfile if it doesn't exist, and open it. - Add the following configuration, replace the environment variables with your values, and save:
{ "servers": { "dataplex": { "command": "./PATH/TO/toolbox", "args": ["--prebuilt","dataplex","--stdio"], "env": { "DATAPLEX_PROJECT": "PROJECT_ID" } } } }
Windsurf
- OpenWindsurf and navigate to Cascade assistant.
- To open the configuration file, click the MCP icon, then clickConfigure.
- Add the following configuration, replace the environment variables with your values, and save:
{ "mcpServers": { "dataplex": { "command": "./PATH/TO/toolbox", "args": ["--prebuilt","dataplex","--stdio"], "env": { "DATAPLEX_PROJECT": "PROJECT_ID" } } } }
Use the tools
Your AI tool is now connected to Dataplex Universal Catalog. Try askingyour AI assistant to find some data assets such as BigQuerydatasets, Cloud SQL instances, and others.
The following tools are available to the LLM:
- dataplex_search_entries: search for data assets
- dataplex_lookup_entry: retrieve metadata (for example, schema, usage, business overview, and contacts) of data assets
- dataplex_search_aspect_types: search for aspect types
Optional: Add system instructions
System instructions are a way to provide specific guidelines to the LLM,helping it to understand the context and respond more accurately. Set up systeminstructions based on therecommended system prompt.
For example, you can add instructions to guide the LLM on how to use theDataplex Universal Catalog tools:
- When asked to find datasets or tables, use the
dataplex_search_entriestool. - If asked for table schema or metadata details like data quality rules or ownership, use the
dataplex_lookup_entrytool. - When asked about governance rules or classifications, start by using
dataplex_search_aspect_typesto find relevant aspect types.
For more information about how to configure instructions, seeUse instructions to get AI edits that follow your coding style.
What's next
- Search for resources in Dataplex Universal Catalog.
- Learn how toingest custom sources into Dataplex Universal Catalog.
- Learn how tomanage aspects and enrich metadata.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-02-19 UTC.