Looker using MCP

Connect your IDE to Looker using Toolbox.

Model Context Protocol (MCP) is an open protocol for connecting Large Language Models (LLMs) to data sources like Postgres. This guide covers how to use MCP Toolbox for Databases to expose your developer assistant tools to a Looker instance:

Set up Looker

  1. Get a Looker Client ID and Client Secret. Follow the directions here.

  2. Have the base URL of your Looker instance available. It is likely something like https://looker.example.com. In some cases the API is listening at a different port, and you will need to use https://looker.example.com:19999 instead.

Install MCP Toolbox

  1. Download the latest version of Toolbox as a binary. Select the correct binary corresponding to your OS and CPU architecture. You are required to use Toolbox version v0.10.0+:

curl -O https://storage.googleapis.com/genai-toolbox/v0.19.1/linux/amd64/toolbox
curl -O https://storage.googleapis.com/genai-toolbox/v0.19.1/darwin/arm64/toolbox
curl -O https://storage.googleapis.com/genai-toolbox/v0.19.1/darwin/amd64/toolbox
curl -O https://storage.googleapis.com/genai-toolbox/v0.19.1/windows/amd64/toolbox.exe

  1. Make the binary executable:

    chmod +x toolbox
    
  2. Verify the installation:

    ./toolbox --version
    

Configure your MCP Client

  1. Install Gemini-CLI.

  2. Create a directory .gemini in your home directory if it doesn’t exist.

  3. Create the file .gemini/settings.json if it doesn’t exist.

  4. Add the following configuration, or add the mcpServers stanza if you already have a settings.json with content. Replace the path to the toolbox executable and the environment variables with your values, and save:

    {
      "mcpServers": {
        "looker-toolbox": {
          "command": "./PATH/TO/toolbox",
          "args": ["--stdio", "--prebuilt", "looker"],
          "env": {
            "LOOKER_BASE_URL": "https://looker.example.com",
            "LOOKER_CLIENT_ID": "",
            "LOOKER_CLIENT_SECRET": "",
            "LOOKER_VERIFY_SSL": "true"
          }
        }
      }
    }
    
  5. Start Gemini-CLI with the gemini command and use the command /mcp to see the configured MCP tools.

  1. Install Claude Code.

  2. Create a .mcp.json file in your project root if it doesn’t exist.

  3. Add the following configuration, replace the environment variables with your values, and save:

    {
      "mcpServers": {
        "looker-toolbox": {
          "command": "./PATH/TO/toolbox",
          "args": ["--stdio", "--prebuilt", "looker"],
          "env": {
            "LOOKER_BASE_URL": "https://looker.example.com",
            "LOOKER_CLIENT_ID": "",
            "LOOKER_CLIENT_SECRET": "",
            "LOOKER_VERIFY_SSL": "true"
          }
        }
      }
    }
    
  4. Restart Claude Code to apply the new configuration.

  1. Open Claude desktop and navigate to Settings.

  2. Under the Developer tab, tap Edit Config to open the configuration file.

  3. Add the following configuration, replace the environment variables with your values, and save:

    {
      "mcpServers": {
        "looker-toolbox": {
          "command": "./PATH/TO/toolbox",
          "args": ["--stdio", "--prebuilt", "looker"],
          "env": {
            "LOOKER_BASE_URL": "https://looker.example.com",
            "LOOKER_CLIENT_ID": "",
            "LOOKER_CLIENT_SECRET": "",
            "LOOKER_VERIFY_SSL": "true"
          }
        }
      }
    }
    
  4. Restart Claude desktop.

  5. From the new chat screen, you should see a hammer (MCP) icon appear with the new MCP server available.

  1. Open the Cline extension in VS Code and tap the MCP Servers icon.

  2. Tap Configure MCP Servers to open the configuration file.

  3. Add the following configuration, replace the environment variables with your values, and save:

    {
      "mcpServers": {
        "looker-toolbox": {
          "command": "./PATH/TO/toolbox",
          "args": ["--stdio", "--prebuilt", "looker"],
          "env": {
            "LOOKER_BASE_URL": "https://looker.example.com",
            "LOOKER_CLIENT_ID": "",
            "LOOKER_CLIENT_SECRET": "",
            "LOOKER_VERIFY_SSL": "true"
          }
        }
      }
    }
    
  4. You should see a green active status after the server is successfully connected.

  1. Create a .cursor directory in your project root if it doesn’t exist.

  2. Create a .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": {
        "looker-toolbox": {
          "command": "./PATH/TO/toolbox",
          "args": ["--stdio", "--prebuilt", "looker"],
          "env": {
            "LOOKER_BASE_URL": "https://looker.example.com",
            "LOOKER_CLIENT_ID": "",
            "LOOKER_CLIENT_SECRET": "",
            "LOOKER_VERIFY_SSL": "true"
          }
        }
      }
    }
    
  4. Open Cursor and navigate to Settings > Cursor Settings > MCP. You should see a green active status after the server is successfully connected.

  1. Open VS Code and create a .vscode directory in your project root if it doesn’t exist.

  2. Create a .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": {
        "looker-toolbox": {
          "command": "./PATH/TO/toolbox",
          "args": ["--stdio", "--prebuilt", "looker"],
          "env": {
            "LOOKER_BASE_URL": "https://looker.example.com",
            "LOOKER_CLIENT_ID": "",
            "LOOKER_CLIENT_SECRET": "",
            "LOOKER_VERIFY_SSL": "true"
          }
        }
      }
    }
    
  1. Open Windsurf and navigate to the Cascade assistant.

  2. Tap on the hammer (MCP) icon, then Configure to open the configuration file.

  3. Add the following configuration, replace the environment variables with your values, and save:

    {
      "mcpServers": {
        "looker-toolbox": {
          "command": "./PATH/TO/toolbox",
          "args": ["--stdio", "--prebuilt", "looker"],
          "env": {
            "LOOKER_BASE_URL": "https://looker.example.com",
            "LOOKER_CLIENT_ID": "",
            "LOOKER_CLIENT_SECRET": "",
            "LOOKER_VERIFY_SSL": "true"
          }
        }
      }
    }
    

Use Tools

Your AI tool is now connected to Looker using MCP. Try asking your AI assistant to list models, explores, dimensions, and measures. Run a query, retrieve the SQL for a query, and run a saved Look.

The full tool list is available in the Prebuilt Tools Reference.

The following tools are available to the LLM:

Looker Model and Query Tools

These tools are used to get information about a Looker model and execute queries against that model.

  1. get_models: list the LookML models in Looker
  2. get_explores: list the explores in a given model
  3. get_dimensions: list the dimensions in a given explore
  4. get_measures: list the measures in a given explore
  5. get_filters: list the filters in a given explore
  6. get_parameters: list the parameters in a given explore
  7. query: Run a query and return the data
  8. query_sql: Return the SQL generated by Looker for a query
  9. query_url: Return a link to the query in Looker for further exploration

Looker Content Tools

These tools get saved content (Looks and Dashboards) from a Looker instance and create new saved content.

  1. get_looks: Return the saved Looks that match a title or description
  2. run_look: Run a saved Look and return the data
  3. make_look: Create a saved Look in Looker and return the URL
  4. get_dashboards: Return the saved dashboards that match a title or description
  5. run_dashbaord: Run the queries associated with a dashboard and return the data
  6. make_dashboard: Create a saved dashboard in Looker and return the URL
  7. add_dashboard_element: Add a tile to a dashboard

Looker Instance Health Tools

These tools offer the same health check algorithms that the popular CLI Henry offers.

  1. health_pulse: Check the health of a Looker intance
  2. health_analyze: Analyze the usage of a Looker object
  3. health_vacuum: Find LookML elements that might be unused

LookML Authoring Tools

These tools allow enable the caller to write and modify LookML files as well as get the database schema needed to write LookML effectively.

  1. dev_mode: Activate dev mode.
  2. get_projects: Get the list of LookML projects
  3. get_project_files: Get the list of files in a project
  4. get_project_file: Get the contents of a file in a project
  5. create_project_file: Create a file in a project
  6. update_project_file: Update the contents of a file in a project
  7. delete_project_file: Delete a file in a project
  8. get_connections: Get the list of connections
  9. get_connection_schemas: Get the list of schemas for a connection
  10. get_connection_databases: Get the list of databases for a connection
  11. get_connection_tables: Get the list of tables for a connection
  12. get_connection_table_columns: Get the list of columns for a table in a connection

Note

Prebuilt tools are pre-1.0, so expect some tool changes between versions. LLMs will adapt to the tools available, so this shouldn’t affect most users.

Last modified November 7, 2025: chore(main): release 0.19.1 (#1901) (cd8d68d464)