Quickstart (MCP with Looker and Gemini-CLI)
Overview
Model Context Protocol is an open protocol that standardizes how applications provide context to LLMs. Check out this page on how to connect to Toolbox via MCP.
Step 1: Get a Looker Client ID and Client Secret
The Looker Client ID and Client Secret can be obtained from the Users page of your Looker instance. Refer to the documentation here. You may need to ask an administrator to get the Client ID and Client Secret for you.
Step 2: Install and configure Toolbox
In this section, we will download Toolbox and run the Toolbox server.
Download the latest version of Toolbox as a binary:
Tip
Select the correct binary corresponding to your OS and CPU architecture.
export OS="linux/amd64" # one of linux/amd64, darwin/arm64, darwin/amd64, or windows/amd64 curl -O https://storage.googleapis.com/genai-toolbox/v0.18.0/$OS/toolboxMake the binary executable:
chmod +x toolboxEdit the file
~/.gemini/settings.jsonand add the following to the list of mcpServers. Use the Client Id and Client Secret you obtained earlier. The name of the server - herelooker-toolbox- can be anything meaningful to you."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" } } }In some instances you may need to append
:19999to the LOOKER_BASE_URL.
Step 3: Start Gemini-CLI
Run Gemini-CLI:
npx https://github.com/google-gemini/gemini-cliType
ywhen it asks to download.Log into Gemini-CLI
Enter the command
/mcpand you should see a list of available tools likeℹ Configured MCP servers: 🟢 looker-toolbox - Ready (10 tools) - looker-toolbox__get_models - looker-toolbox__query - looker-toolbox__get_looks - looker-toolbox__get_measures - looker-toolbox__get_filters - looker-toolbox__get_parameters - looker-toolbox__get_explores - looker-toolbox__query_sql - looker-toolbox__get_dimensions - looker-toolbox__run_look - looker-toolbox__query_urlStart exploring your Looker instance with commands like
Find an explore to see ordersorshow me my current inventory broken down by item category.Gemini will prompt you for your approval before using a tool. You can approve all the tools at once or one at a time.