configure-bigquery

configure-bigquery is a command for coding agents from Raw1mage/patentmcp. It costs 14 tokens per session (289 once invoked), scanned C, a copy of configure-bigquery, MIT.

A setup command for connecting Google BigQuery, Google's cloud data-analysis service, to worldwide patent data.

In plain words
What is it for?
Use it to sign in with Google Cloud, save application credentials, set a project ID, and verify the BigQuery patent connection.
Why use it?
It prepares authentication and tests access so patent searches can use the public patent dataset.

Command

Installs and runs on its own, but its text points at files inside its plugin — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed. Installing the plugin gets both.

Part of the claude-patent-creator-standalone plugin — 17 skills, 16 commands, 13 agents, 2 hooks shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/raw1mage/patentmcp/configure-bigquery
Clone the repo
git clone --depth 1 https://github.com/Raw1mage/patentmcp

Or install claude-patent-creator-standalone, the plugin that ships this one along with the rest of its 17 skills, 16 commands, 13 agents, 2 hooks.

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 configure-bigquery

README.md
[![agentmods](https://agentmods.dev/badge/commands/raw1mage/patentmcp/configure-bigquery.svg)](https://agentmods.dev/commands/raw1mage/patentmcp/configure-bigquery)
Your own site
<a href="https://agentmods.dev/commands/raw1mage/patentmcp/configure-bigquery"><img src="https://agentmods.dev/badge/commands/raw1mage/patentmcp/configure-bigquery.svg" alt="Measured on agentmods" height="20"></a>
Per session 14 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 289 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. Scan, not verified.
Origin 100% copy Near-identical to another mod 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.00014 $0.00289
Opus 5 $0.00007 $0.00144
Sonnet 5 $0.00003 $0.00058
Haiku 4.5 $0.00001 $0.00029

Measured 5d ago against content hash 0e58824146ab, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade C, and why

configure-bigquery scanned grade C with 1 finding 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 5d 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.

Reaches for credential fileshighPrivilege escalation

SSH keys, cloud credentials, git-credentials, .npmrc, /etc/shadow: reading these is how a config file becomes a credential leak.

- Windows: `%APPDATA%\gcloud\application_default_credentials.json`
Origin

This is a copy

100% identical to configure-bigquery — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

refs/Claude-Patent-Creator/commands/configure-bigquery.md · 65 lines

What it actually says

Configure BigQuery Authentication

Set up Google Cloud authentication to enable patent search across 100M+ worldwide patents.

Instructions

  1. Verify Google Cloud SDK is installed
  2. Run BigQuery authentication setup
  3. Authorize browser OAuth flow
  4. Verify credentials are saved
  5. Test BigQuery connection

Command

cd ${CLAUDE_PLUGIN_ROOT}
python scripts/setup_bigquery_auth.py

Or using gcloud directly:

gcloud auth application-default login

What This Does

  • Opens browser for Google account authorization
  • Saves credentials to:
    • Windows: %APPDATA%\gcloud\application_default_credentials.json
    • Mac/Linux: ~/.config/gcloud/application_default_credentials.json
  • Verifies access to patents-public-data dataset
  • Tests connection with sample query

Requirements

  • Google account (free)
  • Google Cloud project (free tier: 1TB queries/month)
  • Internet connection

Verification

After setup, test with:

python scripts/test_bigquery.py

Should return sample patent results.

Environment Variable

Set your project ID:

export GOOGLE_CLOUD_PROJECT=your-project-id

Or add to .env file under ${CLAUDE_PLUGIN_ROOT}.

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. 5d ago First seen · 65 lines · 14 tokens per session scan C 0e58824146ab

Subscribe to this mod's changes

configure-bigquery is a command published in the GitHub repository Raw1mage/patentmcp (2 stars, last pushed 1mo ago), licensed MIT. It adds 14 tokens to every session and 289 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it C with 1 finding (reaches for credential files). It is 100% identical to configure-bigquery, differing in 0 lines, and is treated as a copy.