{"id":62998,"date":"2026-01-21T05:25:55","date_gmt":"2026-01-20T21:25:55","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/62998.html"},"modified":"2026-01-21T05:25:55","modified_gmt":"2026-01-20T21:25:55","slug":"%e8%b0%b7%e6%ad%8c%e4%ba%91%e6%9c%8d%e5%8a%a1%e5%95%86-%e5%80%9f%e5%8a%a9-bigquery-%e5%ae%8c%e5%85%a8%e6%89%98%e7%ae%a1%e7%9a%84%e8%bf%9c%e7%a8%8b-mcp-%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%8c%e6%9b%b4","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/62998.html","title":{"rendered":"\u8c37\u6b4c\u4e91\u670d\u52a1\u5546 | \u501f\u52a9 BigQuery \u5b8c\u5168\u6258\u7ba1\u7684\u8fdc\u7a0b MCP \u670d\u52a1\u5668\uff0c\u66f4\u5feb\u5730\u6784\u5efa\u6570\u636e\u5206\u6790\u4ee3\u7406"},"content":{"rendered":"<p style=\"margin-left:0;margin-right:0;text-align:start\">\u7531\u8c37\u6b4c\u4e91\u6388\u6743\u4ee3\u7406\u670d\u52a1\u5546CloudAce\u6df1\u5733\u4e91\u4e00\u7ffb\u8bd1\u5e76\u53d1\u5e03\u3002\u4fe1\u606f\u6765\u6e90&#xff1a;\u8c37\u6b4c\u4e91<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:start\"><span style=\"color:#5f6368\"><span style=\"background-color:#ffffff\">\u5c06 AI \u4ee3\u7406\u8fde\u63a5\u5230\u4f01\u4e1a\u6570\u636e\u4e0d\u5e94\u9700\u8981\u590d\u6742\u7684\u81ea\u5b9a\u4e49\u96c6\u6210\u6216\u6570\u5468\u7684\u5f00\u53d1\u65f6\u95f4\u3002\u968f\u7740\u4e0a\u4e2a\u6708\u9762\u5411 Google \u670d\u52a1\u7684\u5b8c\u5168\u6258\u7ba1\u5f0f\u8fdc\u7a0b\u6a21\u578b\u4e0a\u4e0b\u6587\u534f\u8bae (MCP) \u670d\u52a1\u5668\u7684\u53d1\u5e03&#xff0c;\u60a8\u73b0\u5728\u53ef\u4ee5\u4f7f\u7528 BigQuery MCP \u670d\u52a1\u5668&#xff0c;\u4e3a\u60a8\u7684 AI \u4ee3\u7406\u63d0\u4f9b\u4e00\u79cd\u76f4\u63a5\u3001\u5b89\u5168\u7684\u65b9\u5f0f\u6765\u5206\u6790\u6570\u636e\u3002\u8fd9\u79cd\u5b8c\u5168\u6258\u7ba1\u7684 MCP \u670d\u52a1\u5668\u6d88\u9664\u4e86\u7ba1\u7406\u5f00\u9500&#xff0c;\u4f7f\u60a8\u80fd\u591f\u4e13\u6ce8\u4e8e\u5f00\u53d1\u667a\u80fd\u4ee3\u7406\u3002<\/span><\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:start\"><span style=\"color:#5f6368\"><span style=\"background-color:#ffffff\">MCP \u670d\u52a1\u5668\u5bf9 BigQuery \u7684\u652f\u6301\u4e5f\u53ef\u901a\u8fc7\u5f00\u6e90\u7684<\/span><\/span>MCP \u6570\u636e\u5e93\u5de5\u5177\u7bb1\u83b7\u5f97&#xff0c;\u8be5\u5de5\u5177\u7bb1\u4e13\u4e3a\u90a3\u4e9b\u5bfb\u6c42\u66f4\u9ad8\u7075\u6d3b\u6027\u548c\u670d\u52a1\u5668\u63a7\u5236\u6743\u7684\u7528\u6237\u800c\u8bbe\u8ba1\u3002\u5728\u672c\u535a\u6587\u4e2d&#xff0c;\u6211\u4eec\u5c06\u8ba8\u8bba\u5e76\u6f14\u793a\u65b0\u53d1\u5e03\u7684\u5b8c\u5168\u6258\u7ba1\u5f0f\u8fdc\u7a0b BigQuery \u670d\u52a1\u5668<span style=\"color:#5f6368\"><span style=\"background-color:#ffffff\">\u7684\u96c6\u6210<\/span><\/span>&#xff0c;\u8be5\u670d\u52a1\u5668\u76ee\u524d\u5904\u4e8e\u9884\u89c8\u9636\u6bb5&#xff08;\u622a\u81f3 2026 \u5e74 1 \u6708&#xff09;\u3002\u00a0<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:start\"><span style=\"color:#5f6368\"><span style=\"background-color:#ffffff\">\u8fdc\u7a0b MCP \u670d\u52a1\u5668\u8fd0\u884c\u5728\u670d\u52a1\u7684\u57fa\u7840\u8bbe\u65bd\u4e0a&#xff0c;\u5e76\u4e3a AI \u5e94\u7528\u7a0b\u5e8f\u63d0\u4f9b HTTP \u7aef\u70b9\u3002\u8fd9\u4f7f\u5f97 AI MCP \u5ba2\u6237\u7aef\u548c MCP \u670d\u52a1\u5668\u80fd\u591f\u4f7f\u7528\u9884\u5b9a\u4e49\u7684\u6807\u51c6\u8fdb\u884c\u901a\u4fe1\u3002<\/span><\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:start\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"707\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260120212553-696ff2e1108c5.png\" width=\"1256\" \/><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:start\"><span style=\"color:#5f6368\"><span style=\"background-color:#ffffff\">MCP \u901a\u8fc7\u4e00\u5957\u9884\u5b9a\u4e49\u7684\u5de5\u5177&#xff0c;\u4f7f\u57fa\u4e8e LLM \u7684\u5e94\u7528\u7a0b\u5e8f\u80fd\u591f\u76f4\u63a5\u8bbf\u95ee\u60a8\u7684\u5206\u6790\u6570\u636e&#xff0c;\u4ece\u800c\u52a0\u901f AI \u4ee3\u7406\u7684\u6784\u5efa\u8fc7\u7a0b\u3002\u4f7f\u7528 Google OAuth \u8eab\u4efd\u9a8c\u8bc1\u65b9\u6cd5\u5c06 BigQuery MCP \u670d\u52a1\u5668\u4e0e ADK \u96c6\u6210\u975e\u5e38\u7b80\u5355&#xff0c;\u5982\u4e0b\u6587\u5173\u4e8e\u4ee3\u7406\u5f00\u53d1\u5de5\u5177\u5305 (ADK)\u548cGemini CLI \u7684\u8ba8\u8bba\u6240\u793a\u3002\u6b64\u5916&#xff0c;LangGraph\u3001Claude Code\u3001Cursor IDE \u6216\u5176\u4ed6 MCP \u5ba2\u6237\u7aef\u7b49\u5e73\u53f0\u548c\u6846\u67b6\u4e5f\u53ef\u4ee5\u8f7b\u677e\u96c6\u6210\u3002\u00a0<\/span><\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:start\"><span style=\"color:#5f6368\"><span style=\"background-color:#ffffff\">\u6211\u4eec\u5f00\u59cb\u5427\u3002<\/span><\/span><\/p>\n<h3 style=\"margin-left:0;margin-right:0;text-align:start\"><span style=\"color:#202124\"><span style=\"background-color:#ffffff\">\u5c06 BigQuery MCP \u670d\u52a1\u5668\u4e0e ADK \u7ed3\u5408\u4f7f\u7528<\/span><\/span><\/h3>\n<p style=\"margin-left:0;margin-right:0;text-align:start\"><span style=\"color:#5f6368\"><span style=\"background-color:#ffffff\">\u8981\u4f7f\u7528 ADK \u6784\u5efa BigQuery Agent \u539f\u578b&#xff0c;\u8bf7\u6309\u7167\u4ee5\u4e0b\u516d\u4e2a\u6b65\u9aa4\u64cd\u4f5c&#xff1a;<\/span><\/span><\/p>\n<li>\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:#5f6368\">\u524d\u63d0\u6761\u4ef6&#xff1a;\u8bbe\u7f6e\u9879\u76ee\u3001\u5fc5\u8981\u7684\u8bbe\u7f6e\u548c\u73af\u5883\u3002<\/span><\/p>\n<\/li>\n<li>\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:#5f6368\">\u914d\u7f6e&#xff1a;\u542f\u7528 MCP \u548c\u6240\u9700\u7684 API\u3002<\/span><\/p>\n<\/li>\n<li>\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:#5f6368\">\u52a0\u8f7d\u793a\u4f8b\u6570\u636e\u96c6\u3002<\/span><\/p>\n<\/li>\n<li>\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:#5f6368\">\u521b\u5efa OAuth \u5ba2\u6237\u7aef\u3002<\/span><\/p>\n<\/li>\n<li>\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:#5f6368\">\u521b\u5efa Gemini API \u5bc6\u94a5\u3002<\/span><\/p>\n<\/li>\n<li>\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:#5f6368\">\u521b\u5efa\u5e76\u6d4b\u8bd5\u4ee3\u7406\u3002<\/span><\/p>\n<\/li>\n<p style=\"margin-left:0;margin-right:0;text-align:start\"><span style=\"color:#5f6368\"><span style=\"background-color:#ffffff\">\u91cd\u8981\u63d0\u793a&#xff1a;\u5728\u8ba1\u5212\u751f\u4ea7\u90e8\u7f72\u6216\u4f7f\u7528\u771f\u5b9e\u6570\u636e\u7684 AI \u4ee3\u7406\u65f6&#xff0c;\u8bf7\u786e\u4fdd\u9075\u5b88AI \u5b89\u5168\u3001\u7a33\u5b9a\u6027\u548c\u53ef\u9760\u6027\u51c6\u5219\u3002<\/span><\/span><\/p>\n<h4 style=\"margin-left:0;margin-right:0;text-align:start\"><span style=\"color:#202124\"><span style=\"background-color:#ffffff\">\u6b65\u9aa4 1&#xff1a;\u524d\u63d0\u6761\u4ef6 &gt; \u914d\u7f6e\u548c\u73af\u5883\u00a0<\/span><\/span><\/h4>\n<p style=\"margin-left:0;margin-right:0;text-align:start\"><span style=\"color:#5f6368\"><span style=\"background-color:#ffffff\">1.1 \u8bbe\u7f6e\u4e91\u9879\u76ee \u521b\u5efa\u6216\u4f7f\u7528\u5df2\u542f\u7528\u7ed3\u7b97\u529f\u80fd\u7684\u73b0\u6709Google Cloud \u9879\u76ee\u3002<\/span><\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:start\"><span style=\"color:#5f6368\"><span style=\"background-color:#ffffff\">1.2 \u7528\u6237\u89d2\u8272 \u8bf7\u786e\u4fdd\u60a8\u7684\u7528\u6237\u5e10\u6237\u62e5\u6709\u4ee5\u4e0b\u9879\u76ee\u6743\u9650&#xff1a;<\/span><\/span><\/p>\n<li>\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:#5f6368\">roles\/bigquery.user&#xff08;\u7528\u4e8e\u8fd0\u884c\u67e5\u8be2&#xff09;<\/span><\/p>\n<\/li>\n<li>\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:#5f6368\">roles\/bigquery.dataViewer&#xff08;\u7528\u4e8e\u8bbf\u95ee\u6570\u636e&#xff09;<\/span><\/p>\n<\/li>\n<li>\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:#5f6368\">roles\/mcp.toolUser&#xff08;\u7528\u4e8e\u8bbf\u95ee MCP \u5de5\u5177&#xff09;<\/span><\/p>\n<\/li>\n<li>\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:#5f6368\">roles\/serviceusage.serviceUsageAdmin&#xff08;\u7528\u4e8e\u542f\u7528 API&#xff09;<\/span><\/p>\n<\/li>\n<li>\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:#5f6368\">roles\/iam.oauthClientViewer&#xff08;OAuth&#xff09;<\/span><\/p>\n<\/li>\n<li>\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:#5f6368\">roles\/iam.serviceAccountViewer&#xff08;OAuth&#xff09;<\/span><\/p>\n<\/li>\n<li>\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:#5f6368\">roles\/oauthconfig.editor&#xff08;OAuth&#xff09;<\/span><\/p>\n<\/li>\n<p style=\"margin-left:0;margin-right:0;text-align:start\"><span style=\"color:#5f6368\"><span style=\"background-color:#ffffff\">1.3 \u8bbe\u7f6e\u73af\u5883 \u4f7f\u7528\u5b89\u88c5\u4e86 gcloud CLI \u7684 MacOS \u6216 Linux \u7ec8\u7aef\u3002<\/span><\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:start\"><span style=\"color:#5f6368\"><span style=\"background-color:#ffffff\">\u5728 shell \u4e2d&#xff0c;\u4f7f\u7528\u60a8\u7684 Cloud PROJECT_ID\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u5e76\u9a8c\u8bc1\u60a8\u7684 Google Cloud \u5e10\u6237&#xff1b;\u8fd9\u662f\u4f7f ADK \u80fd\u591f\u8bbf\u95ee BigQuery \u6240\u5fc5\u9700\u7684\u3002<\/span><\/span><\/p>\n<p># Set your cloud project id in env variable<br \/>\nBIGQUERY_PROJECT&#061;PROJECT_ID<\/p>\n<p>gcloud config set project ${BIGQUERY_PROJECT}<br \/>\ngcloud auth application-default login <\/p>\n<p>\u6309\u7167\u63d0\u793a\u5b8c\u6210\u8eab\u4efd\u9a8c\u8bc1\u8fc7\u7a0b\u3002<\/p>\n<h4 style=\"margin-left:0;margin-right:0;text-align:start\"><span style=\"color:#202124\"><span style=\"background-color:#ffffff\">\u6b65\u9aa4 2&#xff1a;\u914d\u7f6e &gt; \u7528\u6237\u89d2\u8272\u548c API<\/span><\/span><\/h4>\n<p style=\"margin-left:0;margin-right:0;text-align:start\"><span style=\"color:#5f6368\"><span style=\"background-color:#ffffff\">2.1 \u542f\u7528 BigQuery \u548c MCP API \u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u4ee5\u542f\u7528 BigQuery API \u548cMCP API\u3002<\/span><\/span><\/p>\n<p>gcloud services enable bigquery.googleapis.com &#8211;project&#061;${BIGQUERY_PROJECT}<br \/>\ngcloud beta services mcp enable bigquery.googleapis.com &#8211;project&#061;${BIGQUERY_PROJECT} <\/p>\n<h4 style=\"margin-left:0;margin-right:0;text-align:start\"><span style=\"color:#202124\"><span style=\"background-color:#ffffff\">\u6b65\u9aa4 3&#xff1a;\u52a0\u8f7d\u793a\u4f8b\u6570\u636e\u96c6 &gt; cymbal_pets \u6570\u636e\u96c6<\/span><\/span><\/h4>\n<p style=\"margin-left:0;margin-right:0;text-align:start\"><span style=\"color:#5f6368\"><span style=\"background-color:#ffffff\">3.1 \u521b\u5efa cymbal_pets \u6570\u636e\u96c6\u5728\u672c\u6f14\u793a\u4e2d&#xff0c;\u6211\u4eec\u5c06\u4f7f\u7528 cymbal_pets \u6570\u636e\u96c6\u3002\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4 \u4ece\u516c\u5171\u5b58\u50a8\u6876\u52a0\u8f7dcymbal_pets\u6570\u636e\u5e93&#xff1a;<\/span><\/span><\/p>\n<p># Create the dataset if it doesn&#039;t exist (pick a location of your choice)<br \/>\n# You can add &#8211;default_table_expiration to auto expire tables.<br \/>\nbq &#8211;project_id&#061;${BIGQUERY_PROJECT} mk -f &#8211;dataset &#8211;location&#061;US cymbal_pets<\/p>\n<p># Load the data<br \/>\nfor table in products customers orders order_items; do<br \/>\nbq &#8211;project_id&#061;${BIGQUERY_PROJECT} query &#8211;nouse_legacy_sql \\\\<br \/>\n    &#034;LOAD DATA OVERWRITE cymbal_pets.${table} FROM FILES(<br \/>\n        format &#061; &#039;avro&#039;,<br \/>\n        uris &#061; [ &#039;gs:\/\/sample-data-and-media\/cymbal-pets\/tables\/${table}\/*.avro&#039;]);&#034;<br \/>\ndone <\/p>\n<h4 style=\"margin-left:0;margin-right:0;text-align:start\"><span style=\"color:#202124\"><span style=\"background-color:#ffffff\">\u6b65\u9aa4 4&#xff1a;\u521b\u5efa OAuth \u5ba2\u6237\u7aef ID<\/span><\/span><\/h4>\n<p style=\"margin-left:0;margin-right:0;text-align:start\"><span style=\"color:#5f6368\"><span style=\"background-color:#ffffff\">4.1 \u521b\u5efa OAuth \u5ba2\u6237\u7aef ID \u6211\u4eec\u5c06\u4f7f\u7528 Google OAuth \u8fde\u63a5\u5230 BigQuery MCP \u670d\u52a1\u5668\u3002\u00a0<\/span><\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:start\"><span style=\"color:#5f6368\"><span style=\"background-color:#ffffff\">7. \u5728 Google Cloud \u63a7\u5236\u53f0\u4e2d&#xff0c;\u8f6c\u5230\u201cGoogle Auth Platform\u201d&gt;\u201c\u5ba2\u6237\u7aef\u201d&gt;\u00a0\u201c\u521b\u5efa\u5ba2\u6237\u7aef\u201d\u3002<\/span><\/span><\/p>\n<ul style=\"margin-left:16px;margin-right:16px\">\n<li>\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:#5f6368\">*\u9009\u62e9\u5e94\u7528\u7a0b\u5e8f\u7c7b\u578b\u503c\u4e3a\u201c\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\u201d\u3002<\/span><\/p>\n<\/li>\n<li>\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:#5f6368\">\u5ba2\u6237\u7aef\u521b\u5efa\u5b8c\u6210\u540e&#xff0c;\u8bf7\u52a1\u5fc5\u590d\u5236\u5ba2\u6237\u7aef ID \u548c\u5bc6\u94a5\u5e76\u59a5\u5584\u4fdd\u7ba1\u3002<\/span><\/p>\n<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0;text-align:start\"><span style=\"color:#5f6368\"><span style=\"background-color:#ffffff\">\u53ef\u9009&#xff1a;\u5982\u679c\u60a8\u4f7f\u7528\u4e86\u4e0d\u540c\u7684 OAuth \u5ba2\u6237\u7aef\u9879\u76ee&#xff0c;\u8bf7\u4f7f\u7528\u60a8\u7684CLIENT_ID_PROJECT\u8fd0\u884c\u6b64\u547d\u4ee4\u3002<\/span><\/span><\/p>\n<p>gcloud beta services mcp enable bigquery.googleapis.com &#8211;project&#061;CLIENT_ID_PROJECT <\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:start\"><span style=\"color:#5f6368\"><span style=\"background-color:#ffffff\">\u6ce8\u610f&#xff08;\u4ec5\u9650 Cloud Shell \u7528\u6237&#xff09;&#xff1a;\u5982\u679c\u60a8\u4f7f\u7528\u7684\u662f Google Cloud Shell \u6216\u9664 localhost \u4ee5\u5916\u7684\u4efb\u4f55\u6258\u7ba1\u73af\u5883&#xff0c;\u5219\u5fc5\u987b\u521b\u5efa\u201cWeb \u5e94\u7528\u7a0b\u5e8f\u201dOAuth \u5ba2\u6237\u7aef ID\u3002<\/span><\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:start\"><span style=\"color:#5f6368\"><span style=\"background-color:#ffffff\">\u5bf9\u4e8e Cloud Shell \u73af\u5883&#xff1a;<\/span><\/span><\/p>\n<ul style=\"margin-left:16px;margin-right:16px\">\n<li>\u8981\u83b7\u53d6\u201c\u5df2\u6388\u6743\u7684 JavaScript \u6765\u6e90\u201d\u503c&#xff0c;\u8bf7\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u7684\u8f93\u51fa&#xff1a;\u00a0 echo &#034;https:\/\/8000-$WEB_HOST&#034;\u00a0<\/li>\n<li>\u5bf9\u4e8e\u201c\u5df2\u6388\u6743\u91cd\u5b9a\u5411 URI\u201d\u503c&#xff0c;\u8bf7\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u7684\u8f93\u51fa&#xff1a;\u00a0 &#xff08;Cloud Shell \u4e2d\u7684 URI \u662f\u4e34\u65f6\u7684&#xff0c;\u4f1a\u5728\u5f53\u524d\u4f1a\u8bdd\u7ed3\u675f\u540e\u8fc7\u671f&#xff09;echo &#034;https:\/\/8000-$WEB_HOST\/dev-ui\/&#034;<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0;text-align:start\"><span style=\"color:#5f6368\"><span style=\"background-color:#ffffff\">\u6ce8\u610f&#xff1a;\u5982\u679c\u60a8\u51b3\u5b9a\u4f7f\u7528 Web \u670d\u52a1\u5668&#xff0c;\u5219\u9700\u8981\u4f7f\u7528\u201cWeb \u5e94\u7528\u7a0b\u5e8f\u201d\u7c7b\u578b\u7684 OAuth \u5ba2\u6237\u7aef&#xff0c;\u5e76\u586b\u5199\u76f8\u5e94\u7684\u57df\u548c\u91cd\u5b9a\u5411 URI\u3002<\/span><\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:start\">\n<h4 style=\"margin-left:0;margin-right:0;text-align:start\"><span style=\"color:#202124\"><span style=\"background-color:#ffffff\">\u6b65\u9aa4 5&#xff1a;Gemini API \u5bc6\u94a5<\/span><\/span><\/h4>\n<p style=\"margin-left:0;margin-right:0;text-align:start\"><span style=\"color:#5f6368\"><span style=\"background-color:#ffffff\">5.1 \u521b\u5efa Gemini API \u5bc6\u94a5\u5728 API \u5bc6\u94a5\u9875\u9762\u521b\u5efa Gemini API \u5bc6\u94a5\u3002\u6211\u4eec\u9700\u8981\u4e00\u4e2a\u751f\u6210\u7684\u5bc6\u94a5\u624d\u80fd\u4f7f\u7528 ADK \u8bbf\u95ee Gemini \u6a21\u578b\u3002<\/span><\/span><\/p>\n<h4 style=\"margin-left:0;margin-right:0;text-align:start\"><span style=\"color:#202124\"><span style=\"background-color:#ffffff\">\u6b65\u9aa4 6&#xff1a;\u521b\u5efa ADK Web \u5e94\u7528\u7a0b\u5e8f<\/span><\/span><\/h4>\n<p style=\"margin-left:0;margin-right:0;text-align:start\"><span style=\"color:#5f6368\"><span style=\"background-color:#ffffff\">6.1 \u5b89\u88c5 ADK \u8981\u5b89\u88c5 ADK \u5e76\u542f\u52a8\u4ee3\u7406\u9879\u76ee&#xff0c;\u8bf7\u6309\u7167ADK \u7684 Python \u5feb\u901f\u5165\u95e8\u6307\u5357\u4e2d\u7684\u8bf4\u660e\u8fdb\u884c\u64cd\u4f5c\u3002\u00a0<\/span><\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:start\"><span style=\"color:#5f6368\"><span style=\"background-color:#ffffff\">6.2 \u521b\u5efa\u65b0\u7684 ADK \u4ee3\u7406 \u73b0\u5728&#xff0c;\u4e3a\u6211\u4eec\u7684 BigQuery \u8fdc\u7a0b MCP \u670d\u52a1\u5668\u96c6\u6210\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u4ee3\u7406\u3002<\/span><\/span><\/p>\n<p>adk create cymbal_pets_analyst<\/p>\n<p>#When prompted, choose the following:<br \/>\n#2. Other models (fill later) <\/p>\n<p>6.3 \u914d\u7f6e env \u6587\u4ef6 <span style=\"color:#5f6368\"><span style=\"background-color:#ffffff\">\u8fd0\u884c\u4ee5\u4e0b\u901a\u7528\u547d\u4ee4\u6765\u66f4\u65b0<\/span><\/span>cymbal_pets_analyst\/.env<span style=\"color:#5f6368\"><span style=\"background-color:#ffffff\">\u6587\u4ef6&#xff0c;\u5176\u4e2d\u5305\u542b\u4ee5\u4e0b\u53d8\u91cf\u53ca\u5176\u5b9e\u9645\u503c\u5217\u8868\u3002<\/span><\/span><\/p>\n<p>cat &gt;&gt; cymbal_pets_analyst\/.env &lt;&lt;EOF<br \/>\nGOOGLE_GENAI_USE_VERTEXAI&#061;FALSE<br \/>\nGOOGLE_CLOUD_PROJECT&#061;BIGQUERY_PROJECT<br \/>\nGOOGLE_CLOUD_LOCATION&#061;REGION<br \/>\nGOOGLE_API_KEY&#061;AI_STUDIO_API_KEY<br \/>\nOAUTH_CLIENT_ID&#061;YOUR_CLIENT_ID<br \/>\nOAUTH_CLIENT_SECRET&#061;YOUR_CLIENT_SECRET<br \/>\nEOF <\/p>\n<p>6.4 \u66f4\u65b0\u4ee3\u7406\u4ee3\u7801 <span style=\"color:#5f6368\"><span style=\"background-color:#ffffff\">\u7f16\u8f91<\/span><\/span>cymbal_pets_analyst\/agent.py<span style=\"color:#5f6368\"><span style=\"background-color:#ffffff\">\u6587\u4ef6&#xff0c;\u5c06\u6587\u4ef6\u5185\u5bb9\u66ff\u6362\u4e3a\u4ee5\u4e0b\u4ee3\u7801\u3002<\/span><\/span><\/p>\n<p>import os<br \/>\nfrom google.adk.agents.llm_agent import Agent<br \/>\nfrom google.adk.tools.mcp_tool import McpToolset<br \/>\nfrom google.adk.tools.mcp_tool.mcp_session_manager import StreamableHTTPConnectionParams<br \/>\nfrom google.adk.auth.auth_credential import AuthCredential, AuthCredentialTypes<br \/>\nfrom google.adk.auth import OAuth2Auth<br \/>\nfrom fastapi.openapi.models import OAuth2<br \/>\nfrom fastapi.openapi.models import OAuthFlowAuthorizationCode<br \/>\nfrom fastapi.openapi.models import OAuthFlows<br \/>\nfrom google.adk.auth import AuthCredential<br \/>\nfrom google.adk.auth import AuthCredentialTypes<br \/>\nfrom google.adk.auth import OAuth2Auth<\/p>\n<p>def get_oauth2_mcp_tool():<br \/>\n    auth_scheme &#061; OAuth2(<br \/>\n        flows&#061;OAuthFlows(<br \/>\n            authorizationCode&#061;OAuthFlowAuthorizationCode(<br \/>\n                authorizationUrl&#061;&#034;https:\/\/accounts.google.com\/o\/oauth2\/auth&#034;,<br \/>\n                tokenUrl&#061;&#034;https:\/\/oauth2.googleapis.com\/token&#034;,<br \/>\n                scopes&#061;{<br \/>\n                    &#034;https:\/\/www.googleapis.com\/auth\/bigquery&#034;: &#034;bigquery&#034;<br \/>\n                },<br \/>\n            )<br \/>\n        )<br \/>\n    )<br \/>\n    auth_credential &#061; AuthCredential(<br \/>\n        auth_type&#061;AuthCredentialTypes.OAUTH2,<br \/>\n        oauth2&#061;OAuth2Auth(<br \/>\n            client_id&#061;os.environ.get(&#039;OAUTH_CLIENT_ID&#039;, &#039;&#039;),<br \/>\n            client_secret&#061;os.environ.get(&#039;OAUTH_CLIENT_SECRET&#039;, &#039;&#039;)<br \/>\n        ),<br \/>\n    )<\/p>\n<p>    bigquery_mcp_tool_oauth &#061; McpToolset(<br \/>\n        connection_params&#061;StreamableHTTPConnectionParams(<br \/>\n            url&#061;&#039;https:\/\/bigquery.googleapis.com\/mcp&#039;),<br \/>\n        auth_credential&#061;auth_credential,<br \/>\n        auth_scheme&#061;auth_scheme,<br \/>\n    )<br \/>\n    return bigquery_mcp_tool_oauth<\/p>\n<p>root_agent &#061; Agent(<br \/>\n    model&#061;&#039;gemini-3-pro-preview&#039;,<br \/>\n    name&#061;&#039;root_agent&#039;,<br \/>\n    description&#061;&#039;Analyst to answer all questions related to cymbal pets store.&#039;,<br \/>\n    instruction&#061;&#039;Answer user questions, use the bigquery_mcp tool to query the cymbal pets database and run queries.&#039;,<br \/>\n    tools&#061;[get_oauth2_mcp_tool()],<br \/>\n) <\/p>\n<p>6.5 \u8fd0\u884c ADK \u5e94\u7528\u7a0b\u5e8f <span style=\"color:#5f6368\"><span style=\"background-color:#ffffff\">\u4ece\u5305\u542b cymbal_pets_analyst \u6587\u4ef6\u5939\u7684\u7236\u76ee\u5f55\u8fd0\u884c\u6b64\u547d\u4ee4\u3002<\/span><\/span><\/p>\n<p>adk web &#8211;port 8000 . <\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:start\"><span style=\"color:#5f6368\"><span style=\"background-color:#ffffff\">\u542f\u52a8\u6d4f\u89c8\u5668&#xff0c;\u8bbf\u95ee http:\/\/127.0.0.1:8000\/ \u6216\u8fd0\u884c ADK \u7684\u4e3b\u673a\u5730\u5740&#xff0c;\u7136\u540e\u4ece\u4e0b\u62c9\u83dc\u5355\u4e2d\u9009\u62e9\u60a8\u7684\u4ee3\u7406\u540d\u79f0\u3002\u73b0\u5728\u60a8\u5c31\u62e5\u6709\u4e86\u81ea\u5df1\u7684\u4ee3\u7406&#xff0c;\u53ef\u4ee5\u56de\u7b54\u6709\u5173 Cymbal Pets \u6570\u636e\u7684\u95ee\u9898\u3002\u4ee3\u7406\u8fde\u63a5\u5230 MCP \u670d\u52a1\u5668\u540e&#xff0c;\u5c06\u542f\u52a8 OAuth \u6d41\u7a0b&#xff0c;\u4e4b\u540e\u60a8\u5c31\u53ef\u4ee5\u6388\u4e88\u8bbf\u95ee\u6743\u9650\u3002\u00a0<\/span><\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:start\"><span style=\"color:#5f6368\"><span style=\"background-color:#ffffff\">\u5982\u60a8\u5728\u7b2c\u4e8c\u4e2a\u63d0\u793a\u4e2d\u770b\u5230\u7684&#xff0c;\u60a8\u4e0d\u518d\u9700\u8981\u6307\u5b9a\u9879\u76ee ID\u3002\u8fd9\u662f\u56e0\u4e3a\u4ee3\u7406\u53ef\u4ee5\u4ece\u5bf9\u8bdd\u4e2d\u63a8\u65ad\u51fa\u6b64\u4fe1\u606f\u3002<\/span><\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:start\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"900\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260120212553-696ff2e198d0d.png\" width=\"821\" \/><\/p>\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:#5f6368\">\u60a8\u53ef\u4ee5\u95ee\u4ee5\u4e0b\u51e0\u4e2a\u95ee\u9898&#xff1a;<\/span><\/p>\n<ul style=\"margin-left:16px;margin-right:16px\">\n<li>\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:#5f6368\">my_project \u4e2d\u5305\u542b\u54ea\u4e9b\u6570\u636e\u96c6&#xff1f;<\/span><\/p>\n<\/li>\n<li>\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:#5f6368\">cymbal_pets \u6570\u636e\u96c6\u5305\u542b\u54ea\u4e9b\u8868&#xff1f;<\/span><\/p>\n<\/li>\n<li>\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:#5f6368\">\u83b7\u53d6 cymbal_pets \u6570\u636e\u96c6\u4e2d customers \u8868\u7684\u6a21\u5f0f<\/span><\/p>\n<\/li>\n<li>\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:#5f6368\">\u627e\u51fa\u7f8e\u56fd\u897f\u90e8\u5730\u533a\u94b9\u7c7b\u5ba0\u7269\u5e97\u8fc7\u53bb\u4e09\u4e2a\u6708\u5185\u8ba2\u5355\u91cf\u6392\u540d\u524d\u4e09\u7684\u8ba2\u5355\u3002\u786e\u5b9a\u4e0b\u5355\u7684\u5ba2\u6237\u53ca\u5176\u90ae\u7bb1\u5730\u5740\u3002\u00a0<\/span><\/p>\n<\/li>\n<li>\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:#5f6368\">\u80fd\u5426\u63d0\u4f9b\u524d 10 \u4e2a\u8ba2\u5355\u800c\u4e0d\u662f\u7b2c\u4e00\u4e2a&#xff1f;<\/span><\/p>\n<\/li>\n<li>\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:#5f6368\">\u8fc7\u53bb\u516d\u4e2a\u6708\u91cc&#xff0c;\u54ea\u79cd\u4ea7\u54c1\u9500\u91cf\u6700\u9ad8&#xff1f;\u00a0<\/span><\/p>\n<\/li>\n<\/ul>\n<h3 style=\"margin-left:0;margin-right:0\"><span style=\"color:#202124\">\u5c06 BigQuery MCP \u670d\u52a1\u5668\u4e0e Gemini CLI \u914d\u5408\u4f7f\u7528<\/span><\/h3>\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:#5f6368\">\u8981\u4f7f\u7528Gemini CLI&#xff0c;\u60a8\u53ef\u4ee5\u5728 ~\/.gemini\/settings.json \u6587\u4ef6\u4e2d\u4f7f\u7528\u4ee5\u4e0b\u914d\u7f6e\u3002\u5982\u679c\u60a8\u5df2\u6709\u914d\u7f6e&#xff0c;\u5219\u9700\u8981\u5c06\u5176\u5408\u5e76\u5230 mcpServers \u5b57\u6bb5\u4e0b\u3002<\/span><\/p>\n<p> {<br \/>\n  &#034;mcpServers&#034;: {<br \/>\n    &#034;bigquery&#034;: {<br \/>\n      &#034;httpUrl&#034;: &#034;https:\/\/bigquery.googleapis.com\/mcp&#034;,<br \/>\n      &#034;authProviderType&#034;: &#034;google_credentials&#034;,<br \/>\n      &#034;oauth&#034;: {<br \/>\n        &#034;scopes&#034;: [<br \/>\n          &#034;https:\/\/www.googleapis.com\/auth\/bigquery&#034;<br \/>\n        ]<br \/>\n      }<br \/>\n    }<br \/>\n  }<br \/>\n} <\/p>\n<p style=\"margin-left:0;margin-right:0\">\u7136\u540e\u8fd0\u884c \u200b\u200bgcloud \u8eab\u4efd\u9a8c\u8bc1\u3002<\/p>\n<p> gcloud auth application-default login &#8211;clien-id-file YOUR_CLIENT_ID_FILE <\/p>\n<p>\u8fd0\u884c Gemini CLI\u3002<\/p>\n<p> gemini <\/p>\n<h3 style=\"margin-left:0;margin-right:0;text-align:start\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"746\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260120212553-696ff2e1cf330.png\" width=\"1600\" \/><span style=\"color:#202124\"><span style=\"background-color:#ffffff\">\u4e3a\u60a8\u7684\u4ee3\u7406\u63d0\u4f9b BigQuery MCP \u670d\u52a1\u5668<\/span><\/span><\/h3>\n<p style=\"margin-left:0;margin-right:0;text-align:start\"><span style=\"color:#5f6368\"><span style=\"background-color:#ffffff\">\u60a8\u53ef\u4ee5\u5c06 BigQuery \u5de5\u5177\u96c6\u6210\u5230\u5f00\u53d1\u5de5\u4f5c\u6d41\u7a0b\u4e2d&#xff0c;\u5e76\u4f7f\u7528 LLM \u548c BigQuery MCP \u670d\u52a1\u5668\u521b\u5efa\u667a\u80fd\u6570\u636e\u4ee3\u7406\u3002\u96c6\u6210\u57fa\u4e8e\u5355\u4e00\u7684\u6807\u51c6\u534f\u8bae&#xff0c;\u8be5\u534f\u8bae\u4e0e\u6240\u6709\u4e3b\u6d41\u4ee3\u7406\u5f00\u53d1 IDE \u548c\u6846\u67b6\u517c\u5bb9\u3002\u5f53\u7136&#xff0c;\u5728\u6784\u5efa\u7528\u4e8e\u751f\u4ea7\u73af\u5883\u7684\u4ee3\u7406\u6216\u5c06\u5176\u7528\u4e8e\u771f\u5b9e\u6570\u636e\u4e4b\u524d&#xff0c;\u8bf7\u52a1\u5fc5\u9075\u5faaAI \u5b89\u5168\u51c6\u5219\u3002<\/span><\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:start\"><span style=\"color:#5f6368\"><span style=\"background-color:#ffffff\">\u6211\u4eec\u975e\u5e38\u671f\u5f85\u770b\u5230\u60a8\u5982\u4f55\u5229\u7528 BigQuery MCP \u670d\u52a1\u5668\u5f00\u53d1\u6570\u636e\u5206\u6790\u751f\u6210\u5f0f AI \u5e94\u7528\u3002<\/span><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7531\u8c37\u6b4c\u4e91\u6388\u6743\u4ee3\u7406\u670d\u52a1\u5546CloudAce\u6df1\u5733\u4e91\u4e00\u7ffb\u8bd1\u5e76\u53d1\u5e03\u3002\u4fe1\u606f\u6765\u6e90&#xff1a;\u8c37\u6b4c\u4e91<br \/>\n\u5c06 AI \u4ee3\u7406\u8fde\u63a5\u5230\u4f01\u4e1a\u6570\u636e\u4e0d\u5e94\u9700\u8981\u590d\u6742\u7684\u81ea\u5b9a\u4e49\u96c6\u6210\u6216\u6570\u5468\u7684\u5f00\u53d1\u65f6\u95f4\u3002\u968f\u7740\u4e0a\u4e2a\u6708\u9762\u5411 Google \u670d\u52a1\u7684\u5b8c\u5168\u6258\u7ba1\u5f0f\u8fdc\u7a0b\u6a21\u578b\u4e0a\u4e0b\u6587\u534f\u8bae (MCP) \u670d\u52a1\u5668\u7684\u53d1\u5e03&#xff0c;\u60a8\u73b0\u5728\u53ef\u4ee5\u4f7f\u7528 BigQuery MCP \u670d\u52a1\u5668&#xff0c;\u4e3a\u60a8\u7684 AI \u4ee3\u7406\u63d0\u4f9b\u4e00\u79cd\u76f4\u63a5\u3001\u5b89\u5168\u7684\u65b9\u5f0f\u6765\u5206\u6790\u6570\u636e\u3002\u8fd9\u79cd\u5b8c\u5168\u6258\u7ba1\u7684 MCP \u670d\u52a1\u5668\u6d88\u9664\u4e86\u7ba1\u7406\u5f00\u9500&#xff0c;\u4f7f\u60a8\u80fd\u591f\u4e13\u6ce8\u4e8e\u5f00\u53d1\u667a\u80fd\u4ee3\u7406\u3002<br \/>\nM<\/p>\n","protected":false},"author":2,"featured_media":62995,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[43,44],"topic":[],"class_list":["post-62998","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-43","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u8c37\u6b4c\u4e91\u670d\u52a1\u5546 | \u501f\u52a9 BigQuery \u5b8c\u5168\u6258\u7ba1\u7684\u8fdc\u7a0b MCP \u670d\u52a1\u5668\uff0c\u66f4\u5feb\u5730\u6784\u5efa\u6570\u636e\u5206\u6790\u4ee3\u7406 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/62998.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u8c37\u6b4c\u4e91\u670d\u52a1\u5546 | \u501f\u52a9 BigQuery \u5b8c\u5168\u6258\u7ba1\u7684\u8fdc\u7a0b MCP \u670d\u52a1\u5668\uff0c\u66f4\u5feb\u5730\u6784\u5efa\u6570\u636e\u5206\u6790\u4ee3\u7406 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u7531\u8c37\u6b4c\u4e91\u6388\u6743\u4ee3\u7406\u670d\u52a1\u5546CloudAce\u6df1\u5733\u4e91\u4e00\u7ffb\u8bd1\u5e76\u53d1\u5e03\u3002\u4fe1\u606f\u6765\u6e90&#xff1a;\u8c37\u6b4c\u4e91 \u5c06 AI \u4ee3\u7406\u8fde\u63a5\u5230\u4f01\u4e1a\u6570\u636e\u4e0d\u5e94\u9700\u8981\u590d\u6742\u7684\u81ea\u5b9a\u4e49\u96c6\u6210\u6216\u6570\u5468\u7684\u5f00\u53d1\u65f6\u95f4\u3002\u968f\u7740\u4e0a\u4e2a\u6708\u9762\u5411 Google \u670d\u52a1\u7684\u5b8c\u5168\u6258\u7ba1\u5f0f\u8fdc\u7a0b\u6a21\u578b\u4e0a\u4e0b\u6587\u534f\u8bae (MCP) \u670d\u52a1\u5668\u7684\u53d1\u5e03&#xff0c;\u60a8\u73b0\u5728\u53ef\u4ee5\u4f7f\u7528 BigQuery MCP \u670d\u52a1\u5668&#xff0c;\u4e3a\u60a8\u7684 AI \u4ee3\u7406\u63d0\u4f9b\u4e00\u79cd\u76f4\u63a5\u3001\u5b89\u5168\u7684\u65b9\u5f0f\u6765\u5206\u6790\u6570\u636e\u3002\u8fd9\u79cd\u5b8c\u5168\u6258\u7ba1\u7684 MCP \u670d\u52a1\u5668\u6d88\u9664\u4e86\u7ba1\u7406\u5f00\u9500&#xff0c;\u4f7f\u60a8\u80fd\u591f\u4e13\u6ce8\u4e8e\u5f00\u53d1\u667a\u80fd\u4ee3\u7406\u3002 M\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/62998.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-01-20T21:25:55+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260120212553-696ff2e1108c5.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/62998.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/62998.html\",\"name\":\"\u8c37\u6b4c\u4e91\u670d\u52a1\u5546 | \u501f\u52a9 BigQuery \u5b8c\u5168\u6258\u7ba1\u7684\u8fdc\u7a0b MCP \u670d\u52a1\u5668\uff0c\u66f4\u5feb\u5730\u6784\u5efa\u6570\u636e\u5206\u6790\u4ee3\u7406 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-01-20T21:25:55+00:00\",\"dateModified\":\"2026-01-20T21:25:55+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/62998.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/62998.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/62998.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u8c37\u6b4c\u4e91\u670d\u52a1\u5546 | \u501f\u52a9 BigQuery \u5b8c\u5168\u6258\u7ba1\u7684\u8fdc\u7a0b MCP \u670d\u52a1\u5668\uff0c\u66f4\u5feb\u5730\u6784\u5efa\u6570\u636e\u5206\u6790\u4ee3\u7406\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u8c37\u6b4c\u4e91\u670d\u52a1\u5546 | \u501f\u52a9 BigQuery \u5b8c\u5168\u6258\u7ba1\u7684\u8fdc\u7a0b MCP \u670d\u52a1\u5668\uff0c\u66f4\u5feb\u5730\u6784\u5efa\u6570\u636e\u5206\u6790\u4ee3\u7406 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/62998.html","og_locale":"zh_CN","og_type":"article","og_title":"\u8c37\u6b4c\u4e91\u670d\u52a1\u5546 | \u501f\u52a9 BigQuery \u5b8c\u5168\u6258\u7ba1\u7684\u8fdc\u7a0b MCP \u670d\u52a1\u5668\uff0c\u66f4\u5feb\u5730\u6784\u5efa\u6570\u636e\u5206\u6790\u4ee3\u7406 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u7531\u8c37\u6b4c\u4e91\u6388\u6743\u4ee3\u7406\u670d\u52a1\u5546CloudAce\u6df1\u5733\u4e91\u4e00\u7ffb\u8bd1\u5e76\u53d1\u5e03\u3002\u4fe1\u606f\u6765\u6e90&#xff1a;\u8c37\u6b4c\u4e91 \u5c06 AI \u4ee3\u7406\u8fde\u63a5\u5230\u4f01\u4e1a\u6570\u636e\u4e0d\u5e94\u9700\u8981\u590d\u6742\u7684\u81ea\u5b9a\u4e49\u96c6\u6210\u6216\u6570\u5468\u7684\u5f00\u53d1\u65f6\u95f4\u3002\u968f\u7740\u4e0a\u4e2a\u6708\u9762\u5411 Google \u670d\u52a1\u7684\u5b8c\u5168\u6258\u7ba1\u5f0f\u8fdc\u7a0b\u6a21\u578b\u4e0a\u4e0b\u6587\u534f\u8bae (MCP) \u670d\u52a1\u5668\u7684\u53d1\u5e03&#xff0c;\u60a8\u73b0\u5728\u53ef\u4ee5\u4f7f\u7528 BigQuery MCP \u670d\u52a1\u5668&#xff0c;\u4e3a\u60a8\u7684 AI \u4ee3\u7406\u63d0\u4f9b\u4e00\u79cd\u76f4\u63a5\u3001\u5b89\u5168\u7684\u65b9\u5f0f\u6765\u5206\u6790\u6570\u636e\u3002\u8fd9\u79cd\u5b8c\u5168\u6258\u7ba1\u7684 MCP \u670d\u52a1\u5668\u6d88\u9664\u4e86\u7ba1\u7406\u5f00\u9500&#xff0c;\u4f7f\u60a8\u80fd\u591f\u4e13\u6ce8\u4e8e\u5f00\u53d1\u667a\u80fd\u4ee3\u7406\u3002 M","og_url":"https:\/\/www.wsisp.com\/helps\/62998.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-01-20T21:25:55+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260120212553-696ff2e1108c5.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/62998.html","url":"https:\/\/www.wsisp.com\/helps\/62998.html","name":"\u8c37\u6b4c\u4e91\u670d\u52a1\u5546 | \u501f\u52a9 BigQuery \u5b8c\u5168\u6258\u7ba1\u7684\u8fdc\u7a0b MCP \u670d\u52a1\u5668\uff0c\u66f4\u5feb\u5730\u6784\u5efa\u6570\u636e\u5206\u6790\u4ee3\u7406 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-01-20T21:25:55+00:00","dateModified":"2026-01-20T21:25:55+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/62998.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/62998.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/62998.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u8c37\u6b4c\u4e91\u670d\u52a1\u5546 | \u501f\u52a9 BigQuery \u5b8c\u5168\u6258\u7ba1\u7684\u8fdc\u7a0b MCP \u670d\u52a1\u5668\uff0c\u66f4\u5feb\u5730\u6784\u5efa\u6570\u636e\u5206\u6790\u4ee3\u7406"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/62998","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=62998"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/62998\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/62995"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=62998"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=62998"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=62998"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=62998"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}