You connect Claude or ChatGPT to BigQuery through Google's remote MCP server: enable the BigQuery API, grant the person (or a dedicated service identity) three IAM roles, and add a custom connector that points to https://bigquery.googleapis.com/mcp. The connection takes an hour. Getting answers that match your finance report takes longer, because the AI can read your tables but does not know what "profit" means in your company.
This guide covers the setup step by step, the permissions and limits that matter, and what to put in place before anyone relies on the answers. Everything about the server comes from Google's documentation, which we read for this article.
What is the BigQuery MCP server?
MCP (Model Context Protocol) is a standard way for an AI application to call tools in another system. The BigQuery MCP server exposes BigQuery as a set of tools: list datasets and tables, read table schemas, and run SQL. Google describes it as a remote server, which means it runs on Google's infrastructure and your AI application talks to it over HTTPS (Google Cloud: Use the BigQuery MCP server).
According to the same page, the server is switched on when you enable the BigQuery API, and it works with AI applications including Antigravity, ChatGPT, Claude and custom applications. Google also documents a local alternative, MCP Toolbox, which runs on your own machine. The Google page names two reasons to prefer the local one: you need a custom tool over a parameterised SQL query, or you lack permission to enable the remote server in your project.
How do you connect Claude to BigQuery? Step by step
- Enable the BigQuery API in the Google Cloud project that will run the queries. For new projects it is already on.
- Grant three roles on that project: MCP Tool User (
roles/mcp.toolUser) to make tool calls, BigQuery Job User (roles/bigquery.jobUser) to run queries, and BigQuery Data Viewer (roles/bigquery.dataViewer) to read data. - Create an OAuth client. In the Google Cloud console, open Google Auth Platform, create a client of type Web application, add
https://claude.aias an authorised JavaScript origin andhttps://claude.ai/api/mcp/auth_callbackas the redirect URI. Copy the client secret at once, because Google shows it only one time (Google Cloud: Configure MCP in an AI application). - Add a custom connector in Claude.ai. Use the server URL
https://bigquery.googleapis.com/mcp, transport Streamable HTTP, the OAuth scopehttps://www.googleapis.com/auth/bigquery, and enter the client ID and secret under advanced settings. - Test with a harmless prompt. Google's own examples are "List the datasets in project PROJECT_ID" and "Find the top orders by volume from DATASET_ID. Identify the appropriate tables, find the correct schema, and show the results."
For other MCP clients the values are the same: name, URL, transport, authentication and scope. Google's page lists ChatGPT among the supported applications. We did not test the ChatGPT flow for this article, so check the client's own connector settings for the exact fields.
Which permissions and limits should you know about?
Four details decide whether the connection is safe to hand to a team.
Use a separate identity. Google recommends creating a separate identity for agents that use MCP tools, so access can be controlled and monitored.
Prefer the read-only tool. The server has a tool called execute_sql that can run any statement, including INSERT, DELETE and DROP, and a tool called execute_sql_readonly that allows only reads. Google says the only MCP tool that is not read-only is execute_sql, and that you can block it with a deny policy. For analytics you want the deny policy in place.
Expect hard limits. Per Google's documentation, queries are cancelled after three minutes by default, results are capped at 3,000 rows, and Google Drive external tables cannot be queried.
Queries are labelled. Jobs run through the server carry the label goog-mcp-server: true. That gives you a simple filter to see what the AI ran and what it cost.
One more point from the documentation is practical: an agent can be overloaded by too many tools, so Google offers toolsets, smaller groups of tools with their own endpoint.
Why do the answers still not match your reports?
The connection gives the AI access. It does not give it your definitions. Ask "what was our profit last month?" and the AI will look at the tables, pick columns that look right, and return a confident number. Which number depends on guesses.
Here is an illustrative example (not client data). One month of the same shop:
| Line | Amount |
|---|---|
| Order value | €1,000,000 |
| Returns | −€100,000 |
| Goods on kept orders | −€540,000 |
| Delivery and payment fees | −€90,000 |
| Ads | −€120,000 |
The same data supports three "profit" answers:
- Goods only: €900,000 − €540,000 = €360,000 (gross margin).
- After delivery and payments: €360,000 − €90,000 = €270,000.
- After ads too: €270,000 − €120,000 = €150,000, which is what is left of the orders.
An AI with raw table access can return any of the three, and may switch between them from one chat to the next. This is the problem behind "my colleague and I have two different numbers". It is not a flaw in MCP. The protocol does what it promises: it moves queries and results. The meaning has to come from somewhere else. For how we define what is left of an order, read profit per order in ecommerce.
What do you need in place before you trust the answers?
Four things, in this order.
- A modelled layer, not raw exports. Point the AI at a small set of clean tables that already contain order, cost, return and campaign data joined correctly, instead of dozens of raw tables from each system. Delivery invoices arrive monthly, returns three weeks later and currencies move, so this layer needs rules for what happens to the number in the meantime.
- Written definitions. Describe each metric in plain language and as SQL: net sales, profit, active customer, return rate. Give the AI this text with every session. We call this context engineering.
- Example questions with checked answers. Ten questions your finance lead has already answered by hand. Run them after every change and compare.
- Cost and access limits. The read-only tool, a dedicated identity, and a maximum bytes-billed setting on the project, so a careless question cannot scan a whole warehouse.
Our article What does AI analytics need to give reliable answers? explains why a connection to one system is not enough for company-level questions, and the talk to your data page shows what this looks like for retail teams.
Can you do this yourself?
Yes, for a first step. A technical person can complete the setup above in an hour and will see a working demo. The honest limit appears later: after the demo, someone has to own the definitions, keep them current when a new market or cost line is added, and check the answers against the monthly close. If nobody owns that, the AI keeps sounding sure while the numbers drift.
If you want a connection with the definitions and checks already built in, talk to us.
FAQ
Is the BigQuery MCP server free?
Google's documentation says the steps work even without billing, using the BigQuery sandbox. In a normal project, the queries the AI runs are billed to the project you name in the request, like any other BigQuery query. Use the goog-mcp-server label to track them.
Can Claude or ChatGPT change or delete my data through MCP?
Only if you let them. The execute_sql tool can run INSERT, UPDATE, DELETE and DROP. The execute_sql_readonly tool cannot. Google describes a deny policy that blocks the read-write tool, and it is the setting we would switch on first.
What is the difference between the remote server and MCP Toolbox?
The remote server runs on Google's infrastructure and is on once the BigQuery API is enabled. MCP Toolbox is a local server that runs on your machine. Google points to the local option when you need custom tools over parameterised SQL or cannot enable the remote server in your project.
Why is my AI returning different numbers for the same question?
Usually because the metric is not defined anywhere the AI can read, so it chooses columns itself. Written definitions and a modelled table layer fix most of it. See the example above, where one month produces three different "profit" figures.
Do I need a data warehouse first?
You need your data in BigQuery. If it is spread across shop, ads, delivery and payment systems, the AI can only answer questions about the part it can see. Company-level questions such as profit by market need the pieces joined first.
