Connecting to BigQuery via MCP in VS Code with Roo Code #
This post outlines connecting Google BigQuery via Model Context Protocol (MCP) in VS Code with MCP Toolbox and Roo Code for seamless BigQuery interaction in a more generic way than advertized in the documentation of the MCP Toolbox.
Prerequisites #
Before you begin, ensure you have the following:
- MCP Toolbox: Integrates data sources and tools. (GitHub)
- Roo Code: VS Code extension. (GitHub)
- Google Cloud Project: With BigQuery API enabled and appropriate permissions.
Step 1: Configure tools.yaml
#
tools.yaml
defines the BigQuery source and a generic query tool, enabling MCP Toolbox to interact with BigQuery.