bigquery-mcp-data-agent
BigQuery MCP Data Agent
一个基于 Google 的 Agent Development Kit (ADK)、Gemini、BigQuery MCP Server 和 Cloud Run 构建的 AI 驱动数据分析代理。
概述
本项目演示了 AI 代理如何通过 Model Context Protocol (MCP) 连接到 BigQuery 中的结构化数据。
该代理分析 NYC Citi Bike 数据集,能够通过检查数据集、生成 SQL 查询以及从 BigQuery 检索数据来回答分析性问题。
Related MCP server: BigQuery MCP
技术
Google Agent Development Kit (ADK)
Gemini
BigQuery
BigQuery MCP Server
Model Context Protocol (MCP)
Google Cloud Run
Python
数据集
该代理使用公开的 NYC Citi Bike 数据集:
bigquery-public-data.new_york_citibike
该数据集包含纽约市 Citi Bike 行程和站点的信息。
工作原理
用户提出关于 Citi Bike 数据的问题。
Gemini 分析该问题。
ADK 代理使用 BigQuery MCP 工具检查数据集。
该代理生成并执行只读 SQL 查询。
BigQuery 返回请求的数据。
Gemini 分析结果并提供答案。
使用的 MCP 工具
该代理使用以下 BigQuery MCP 工具:
get_dataset_infolist_table_idsget_table_infoexecute_sql_readonly
示例问题
We have budget for 3 coffee trucks.
We want to find the best city bike stations to place our coffee trucks.This server cannot be deployed
Maintenance
Related MCP Connectors
The BigQuery remote MCP server is a fully managed service that uses the Model Context Protocol to connect AI applications and LLMs to BigQuery data sources. It provides secure, standardized tools for AI agents to list datasets and tables, retrieve schemas, generate and execute SQL queries through natural language, and analyze data—enabling direct access to enterprise analytics data without requiring manual SQL coding.
Query your org's data in natural language — read-only MCP access to SQL, NoSQL, files & warehouses.
Read and edit GA4, Search Console and Google Tag Manager from any MCP client. 29 tools.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables LLMs to explore BigQuery datasets and tables, run safe read-only queries, and optionally perform vector search using BigQuery embeddings.10MIT
- AlicenseBqualityCmaintenanceEnables AI agents to interact with Google BigQuery databases through natural language queries and schema exploration.310MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to query and analyze Google BigQuery data, including schema browsing, running queries, and comparing datasets through natural language.MIT
- FlicenseNot gradedqualityCmaintenanceEnables natural language interaction with BigQuery, providing tools to list tables, fetch schemas, and generate/execute queries via MCP.-