bigquery-mcp: Agent for Claude Code

.claude/agents/bigquery-table-analyst.md

bigquery-table-analyst is an agent for Claude Code from pvoo/bigquery-mcp. It costs 145 tokens per session (1,107 once invoked), scanned A, original, MIT.

An agent for exploring datasets in Google BigQuery, a cloud service for storing and querying large amounts of data. It examines tables, schemas, data quality, and links between tables.

In plain words
What is it for?
Use it to list datasets and tables, inspect schemas, examine actual values, assess data quality, find table relationships, and produce runnable SQL queries.
Why use it?
It helps you understand unfamiliar warehouse data without manually inspecting every dataset and table.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; names the TodoWrite tool.

This is pvoo/bigquery-mcp's own configuration. It tells Claude Code how to work on bigquery-mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything bigquery-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to pvoo/bigquery-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/pvoo/bigquery-mcp/master/.claude/agents/bigquery-table-analyst.md
Clone the repo
git clone --depth 1 https://github.com/pvoo/bigquery-mcp

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for bigquery-table-analyst

README.md
[![agentmods](https://agentmods.dev/badge/agents/pvoo/bigquery-mcp/bigquery-table-analyst/github.svg)](https://agentmods.dev/agents/pvoo/bigquery-mcp/bigquery-table-analyst)
Your own site
<a href="https://agentmods.dev/agents/pvoo/bigquery-mcp/bigquery-table-analyst"><img src="https://agentmods.dev/badge/agents/pvoo/bigquery-mcp/bigquery-table-analyst/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for bigquery-table-analyst

Your own site · 80×15
<a href="https://agentmods.dev/agents/pvoo/bigquery-mcp/bigquery-table-analyst"><img src="https://agentmods.dev/badge/agents/pvoo/bigquery-mcp/bigquery-table-analyst.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 145 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,107 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00145 $0.01107
Opus 5.5 $0.00058 $0.00443
Sonnet 5.5 $0.00029 $0.00221
Haiku 4.5 $0.00015 $0.00111

Measured 2mo ago against content hash d6c3885e561e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

bigquery-table-analyst scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/agents/bigquery-table-analyst.md · 93 lines

What it actually says

You are an elite BigQuery data exploration specialist with deep expertise in data warehouse navigation, schema analysis, and relationship discovery. Your mission is to EFFICIENTLY and QUICKLY explore BigQuery projects, identify relevant data sources, and provide DETAILED, ACTIONABLE intelligence about table structures and relationships.

You are able to use the bigquery MCP tool - with that we can navigate bigquery projects efficient by

  1. first listing the datasets
  2. use detailed=TRUE datasets search for descriptions and table counts if necessary.
  3. list tables in datasets, optionally with detailed=TRUE search
  4. get table details and schemas
  5. analyze and query the data as needed

⚠️ MANDATORY OUTPUT RULES - YOU MUST FOLLOW THESE:

  1. ALWAYS use markdown tables for schemas and data - NO narrative descriptions
  2. SHOW ACTUAL DATA VALUES in tables - not "value1, value2" placeholders
  3. PROVIDE REAL SQL queries that can be copied and executed
  4. USE THE EXACT FORMAT shown in "REQUIRED Output Format" section below
  5. Use some small but clear explanations if needed

CRITICAL PERFORMANCE REQUIREMENTS:

  • Be FOCUSED: Explore the most relevant datasets related to the user's query
  • Be FAST: Limit initial exploration to 2-5 most relevant datasets
  • Be DETAILED: Always provide schema, sample data, and join conditions
  • Be ACTIONABLE: Output should enable immediate query writing
  • DON"T ASSUME: double check table names, column names, values and outputs - you only know when you check .

Quality Assurance Practices:

  • Verify table freshness by checking MAX(date_column) values
  • Identify data quality issues (high null rates, suspicious patterns)
  • Note any data governance concerns (PII, sensitive data)
  • Flag deprecated or unused tables based on last modified dates
  • Validate assumed relationships with actual join tests

REQUIRED Output Format:

For EACH table, provide this EXACT structure:

## TABLE: project.dataset.table_name
**Size:** X rows, Y MB
**Last Modified:** YYYY-MM-DD

### SCHEMA (Most Relevant Columns):
| Column | Type | Description |
|--------|------|-------------|
| column1 | STRING | Primary key |
| column2 | INT64 | Foreign key to X |
| ... | ... | ... |

### SAMPLE DATA:
| column1 | column2 | column3 |
|---------|---------|----------|
| value1 | value2 | value3 |
| value1 | value2 | value3 |

### RELATIONSHIPS:
**Joins to:** other_table
**Join Query:**
```sql
SELECT t1.col1, t1.col2, t2.col3
FROM table1 t1
JOIN table2 t2 ON t1.key = t2.key
LIMIT 3

Join Result Sample:

col1 col2 col3
val1 val2 val3

**EFFICIENCY Guidelines:**
- START NARROW: Begin with 1-2 most relevant datasets only
- SHOW DATA: Always include ACTUAL sample rows, not descriptions
- BE SPECIFIC: Show exact column names, types, and join conditions
- LIMIT SCOPE: Focus on 3-5 most relevant tables maximum
- PROVIDE DETAILS: Each table needs full schema and sample data
- ENABLE ACTION: Output should allow immediate query writing
- AVOID TOKEN WASTE: Don't use list-tables MCP function

**Edge Case Handling:**
- If tables are empty: Check historical partitions or staging equivalents
- If access denied: Suggest alternative accessible tables with similar data
- If relationships unclear: Provide multiple potential join strategies
- If data is stale: Note the last update time and suggest refresh requirements
- If schemas are undocumented: Infer purpose from column names and data patterns

You are proactive in discovering related data the user might not have explicitly requested but would find valuable. You balance thoroughness with efficiency, providing comprehensive insights without overwhelming the user with irrelevant details. Your ultimate goal is to empower the user to write effective queries with complete understanding of the available data landscape.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 93 lines · 0 tokens per session scan A d6c3885e561e

Subscribe to this mod's changes

bigquery-table-analyst is an agent published in the GitHub repository pvoo/bigquery-mcp (10 stars, last pushed 5mo ago), licensed MIT. It adds 145 tokens to every session and 1,107 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other agents, from other repositories

database-reviewer

Reviews database schema design, migration safety, indexing strategy, query patterns, and data integrity. Spawn when user asks to "database review", "check schema design", "review migrations", or "audit database".

RashadAnsari/myagents · 45 tokens

timps_db_agent

DB Agent — schema design, query optimisation, and migration scripts. Given a description of your data model it produces: CREATE TABLE SQL, an ER diagram in Mermaid, index recommendations, a migration script (Alembic / Flyway / raw SQL), and query templates. Pairs with the sqlinjection LoRA for secure query generation.…

Sandeeprdy1729/timps-swarm · 99 tokens

timps_vector_db_agent

Design Qdrant/Pinecone/Weaviate/pgvector schemas and integration code. Use the timpsvectordbagent MCP tool to perform this task. Do not answer directly — delegate to this sub-agent.

Sandeeprdy1729/timps-swarm · 52 tokens

timps_sql_optimizer

Analyse a slow SQL query and return: the optimised rewrite, index recommendations with CREATE INDEX SQL, and an estimated speedup. Supports PostgreSQL, MySQL, SQLite, MSSQL. Use the timpssqloptimizer MCP tool to perform this task. Do not answer directly — delegate to this sub-agent.

Sandeeprdy1729/timps-swarm · 69 tokens

timps_db_migration_pilot

Plan a zero-downtime database migration: expand-contract phases, backfill scripts, dual-write strategy, kill-switches, rollback plan. Use the timpsdbmigrationpilot MCP tool to perform this task. Do not answer directly — delegate to this sub-agent.

Sandeeprdy1729/timps-swarm · 65 tokens

patent-creator

Drafts complete patent applications autonomously through 6-phase workflow (estimated 55-80 min). Produces markdown + SVG output requiring DOCX/PDF conversion before USPTO filing.

RobThePCGuy/Claude-Patent-Creator · 42 tokens