Connect your IDE to Dataplex Universal Catalog

This document shows you how to use the MCP Toolbox for Databases to connect your Dataplex Universal Catalog to a variety of integrated development environments (IDEs) and developer tools that support Model Context Protocol (MCP). You can then use AI agents in your existing tools to discover data assets in Dataplex Universal Catalog.

MCP is an open protocol for connecting large language models (LLMs) to data sources such as Dataplex Universal Catalog. For more information about MCP, see Introduction to Model Context Protocol.

This guide demonstrates the connection process for the following IDEs:

Before you begin

  1. In the Google Cloud console, go to the project selector page.

    Go to project selector

  2. Select or create a Google Cloud project.

  3. Verify that billing is enabled for your Google Cloud project.

  4. If you're using a local shell, then create local authentication credentials for your user account:

    gcloud auth application-default login

    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 the MCP Toolbox

  1. Download the latest version of the MCP Toolbox as a binary. Select the binary that corresponds to your (OS) and CPU architecture. You must use MCP Toolbox v0.10.0 or later.

    Linux/amd64

    curl -O https://storage.googleapis.com/genai-toolbox/VERSION/linux/amd64/toolbox
    

    Replace VERSION with the MCP Toolbox version—for example, v0.10.0.

    macOS (Darwin)/arm64

    curl -O https://storage.googleapis.com/genai-toolbox/VERSION/darwin/arm64/toolbox
    

    Replace VERSION with the MCP Toolbox version—for example, v0.10.0.

    macOS (Darwin)/amd64

    curl -O https://storage.googleapis.com/genai-toolbox/VERSION/darwin/amd64/toolbox
    

    Replace VERSION with the MCP Toolbox version—for example, v0.10.0.

    Windows/amd64

    curl -O https://storage.googleapis.com/genai-toolbox/VERSION/windows/amd64/toolbox
    

    Replace VERSION with the MCP Toolbox version—for example, v0.10.0.

  2. Make the binary executable:

    chmod +x toolbox
    
  3. Verify the installation:

    ./toolbox --version
    

    A successful installation returns the version number, for example, 0.10.0.

Configure the MCP client

Gemini CLI

  1. Install the Gemini CLI.
  2. In your working directory, create a folder named .gemini. Within that, create a settings.json file.
  3. 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"
            }
          }
        }
      }
      

Gemini Code Assist

  1. In VS Code, install the Gemini Code Assist extension.
  2. Enable Agent Mode in Gemini Code Assist chat.
  3. In your working directory, create a folder named .gemini. Within that, create a settings.json file.
  4. 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

  1. Install Claude Code.
  2. Create .mcp.json file in your project root, if it doesn't exist.
  3. 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

  1. Open Claude Desktop and navigate to Settings.
  2. To open the configuration file, in the Developer tab, click Edit config.
  3. 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"
            }
          }
        }
      }
      
  4. Restart Claude desktop.
    The new chat screen displays an MCP icon with the new MCP server.

Cline

  1. In VS Code, open the Cline extension and then click the MCP Servers icon.
  2. To open the configuration file, tap Configure MCP Servers.
  3. 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"
            }
          }
        }
      }
      
    A green active status appears after the server connects successfully.

Cursor

  1. Create the .cursor directory in your project root if it doesn't exist.
  2. Create the .cursor/mcp.json file if it doesn't exist and open it.
  3. 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"
            }
          }
        }
      }
      
  4. Open Cursor and navigate to Settings>Cursor Settings > MCP. A green active status appears when the server connects.

VS Code (Copilot)

  1. Open VS Code and create .vscode directory in your project root if it doesn't exist.
  2. Create the .vscode/mcp.json file if it doesn't exist, and open it.
  3. 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

  1. Open Windsurf and navigate to Cascade assistant.
  2. To open the configuration file, click the MCP icon, then click Configure.
  3. 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 using MCP. Try asking your AI assistant to find some data assets such such as BigQuery datasets, Cloud SQL instances, and others.

The following tool is available to the LLM:

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 system instructions based on the recommended system prompt.

For more information about how to configure instructions, see Use instructions to get AI edits that follow your coding style.