Aerostack
electrical_services

Bigquery MCP Server — Hosted Api Connectors Integration

MCP Server language Hosted language Public

Run SQL queries, list datasets and tables, inspect schemas, and export results from Google BigQuery — AI-native data warehouse access.

aerostack @aerostack verified
v0.1.0 MIT Updated Jun 28, 2026
robot_2

Use with AI AssistantsMCP

Connect Claude, Cursor, or any MCP-compatible client — then call tools directly

① Add This MCP Server

Paste into your AI client config — then all its tools are available instantly.

.claude/mcp.json
{
  "mcpServers": {
    "bigquery": {
      "url": "https://mcp.aerostack.dev/s/aerostack/mcp-bigquery",
      "headers": {
        "Authorization": "Bearer YOUR_AEROSTACK_TOKEN"
      }
    }
  }
}

Replace YOUR_AEROSTACK_TOKEN with your API token from the dashboard.

② Call a Tool

Ask your AI assistant to call a specific tool, or send raw JSON-RPC:

Natural Language Prompt

“Use the _ping tool to verify bigquery connectivity by listing datasets. used internally by aerostack to validate credentials

Using a Workspace?

Add this MCP to your Workspace — your team shares one token, secrets are stored securely, and every AI agent in the workspace can call it without per-user setup.

add_circleAdd to Workspace

description Overview

mcp-bigquery — Google BigQuery MCP Server

Run SQL queries, list datasets and tables, inspect schemas, and export results from Google BigQuery — AI-native data warehouse access.

Give your AI agents full access to Google BigQuery. Execute standard SQL with CTEs, joins, window functions. Browse datasets and tables, inspect column schemas, estimate query costs with dry runs, and track long-running jobs.

Live endpoint: https://mcp.aerostack.dev/s/aerostack/mcp-bigquery


What You Can Do

  • Run standard SQL queries with full BigQuery syntax
  • List all datasets and tables in a GCP project
  • Inspect table schemas with column types, modes, and descriptions
  • Estimate query costs with dry run mode before executing
  • Track long-running query jobs by ID
  • Query views and materialized views

Available Tools

Tool Description
_ping Verify BigQuery connectivity by listing datasets
list_datasets List all datasets with ID, location, and description
list_tables List tables in a dataset with type, row count, and size
get_table_schema Get full column schema — names, types, modes, nested fields
query Execute SQL query and return results (supports dry_run for cost estimation)
get_job Get status and stats of a BigQuery job by ID

Configuration

Variable Required Description How to Get
GOOGLE_SERVICE_ACCOUNT_JSON Yes Full JSON key file content for a GCP service account with BigQuery access console.cloud.google.com → IAM & Admin → Service Accounts → Create → Keys → Add Key → JSON
GOOGLE_PROJECT_ID Yes Google Cloud project ID (e.g. "my-project-123") console.cloud.google.com → Dashboard → Project info → Project ID

Required roles: BigQuery Data Viewer + BigQuery Job User for read-only. Add BigQuery Data Editor for write operations.

Quick Start

Add to Aerostack Workspace
  1. Go to aerostack.dev → Your Project → MCPs
  2. Search for "BigQuery" and click Add to Workspace
  3. Add GOOGLE_SERVICE_ACCOUNT_JSON (paste the full JSON) and GOOGLE_PROJECT_ID under Project → Secrets
Example Prompts
"List all datasets in my BigQuery project"
"Show me the schema of the events table in the analytics dataset"
"Run: SELECT user_id, COUNT(*) as count FROM analytics.events GROUP BY 1 ORDER BY 2 DESC LIMIT 20"
"How much would it cost to query the full orders table? Do a dry run first."
"Show me yesterday's top 10 products by revenue from the sales dataset"
Direct API Call
curl -X POST https://mcp.aerostack.dev/s/aerostack/mcp-bigquery \
  -H 'Content-Type: application/json' \
  -H 'X-Mcp-Secret-GOOGLE-SERVICE-ACCOUNT-JSON: {"type":"service_account",...}' \
  -H 'X-Mcp-Secret-GOOGLE-PROJECT-ID: my-project-123' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"query","arguments":{"sql":"SELECT 1 AS test"}}}'

Security Notes

  • Service account credentials are injected at the Aerostack gateway layer — never stored in the worker
  • Query results are limited to 10,000 rows maximum per call
  • Use dry_run mode to estimate costs before executing expensive queries
  • BigQuery charges $6.25 per TB scanned — always use LIMIT and filter by partitioned columns

License

MIT

terminal Tools (6)

Available tools on this MCP server. Each tool can be called directly from any AI agent.

terminal
_ping #1

Verify BigQuery connectivity by listing datasets. Used internally by Aerostack to validate credentials.

terminal
list_datasets #2

List all datasets in the Google Cloud project with ID, location, description, and creation time

terminal
list_tables #3

List all tables in a BigQuery dataset with type (TABLE, VIEW, MATERIALIZED_VIEW), row count, and size

terminal
get_table_schema #4

Get the full schema of a BigQuery table — column names, types, modes (NULLABLE, REQUIRED, REPEATED), and descriptions

terminal
query #5

Execute a SQL query on BigQuery and return results. Supports standard SQL with CTEs, joins, aggregations, and window functions.

terminal
get_job #6

Get the status and results of a BigQuery job by job ID — useful for checking long-running queries

Details

upgrade Version 0.1.0
gavel License MIT
wifi Transport streamable-http
lock Access Public
category Category API Connectors
terminal Tools 6

language Live Endpoint

https://mcp.aerostack.dev/s/aerostack/mcp-bigquery

Sub-50ms globally · Zero cold start

Publisher

aerostack
@aerostack verified

Pre-built functions for the most common MCP tool patterns. Clone, extend, and deploy.

Tags

Browse more servers

More in API Connectors

Browse API Connectors MCPs →

Frequently asked questions

What is the Bigquery MCP server and what can it do? +

The Bigquery MCP server is hosted on Aerostack and exposes these tools to your AI agent: `_ping`, `list_datasets`, `list_tables`, `get_table_schema`, `query`. You get one hosted URL — no self-hosting — that works from Claude, Cursor, ChatGPT, Gemini, VS Code, or any MCP-compatible client, and you can share it with your team or combine it with other MCP servers in a workspace.

Is the Bigquery MCP server hosted, or do I have to run it myself? +

It's hosted on Aerostack's edge infrastructure — you don't deploy or maintain anything. Add it to a workspace and you get one authenticated URL, with secrets encrypted, that any AI agent or editor can connect to. Use it solo or share the same URL across your whole team.

Which AI agents and editors can use the Bigquery MCP server? +

Any MCP client: Claude and Claude Code, Cursor, ChatGPT, Gemini, Windsurf, Cline, VS Code, and custom agents. Because it's one hosted URL, the same Bigquery MCP server works everywhere — and you can compose it with other MCP servers, skills, and functions behind a single workspace URL.

How do I install the Bigquery MCP server in Claude Desktop? +

Add the following to your Claude Desktop config (`claude_desktop_config.json`): ```json { "mcpServers": { "@aerostack/mcp-bigquery": { "command": "npx", "args": ["-y", "@aerostack/@aerostack/mcp-bigquery"] } } } ``` Then restart Claude Desktop and the tools will appear automatically.

How do I use the Bigquery MCP server in Cursor? +

In Cursor, open **Settings → MCP** and add: ```json { "name": "@aerostack/mcp-bigquery", "command": "npx", "args": ["-y", "@aerostack/@aerostack/mcp-bigquery"] } ``` Save and reload Cursor. The MCP tools will be available in Agent mode.

Does Bigquery MCP require authentication? +

Yes. Bigquery requires authentication. Check the MCP's documentation for the required credentials.