Skip to main content
Glama
amenke-lang

BigQuery MCP Server

by amenke-lang

BigQuery MCP Server

A custom MCP server for Google BigQuery with service account authentication.

Setup

  1. Install dependencies:

    pip install -r requirements.txt
  2. Set environment variables:

    export BQ_SERVICE_ACCOUNT_KEY="/path/to/your-service-account-key.json"
    export BQ_PROJECT_ID="your-default-project-id"
  3. Run the server:

    python bigquery_mcp.py

Related MCP server: bq-readonly-mcp

Configuration for Claude Desktop / Cowork

Add this to your MCP settings (e.g. claude_desktop_config.json):

{
  "mcpServers": {
    "bigquery": {
      "command": "python",
      "args": ["/path/to/bigquery_mcp.py"],
      "env": {
        "BQ_SERVICE_ACCOUNT_KEY": "/path/to/your-service-account-key.json",
        "BQ_PROJECT_ID": "looplink-drt"
      }
    }
  }
}

Available Tools

Tool

Description

bq_execute_sql

Run a read-only SQL query

bq_list_datasets

List all datasets in a project

bq_list_tables

List tables in a dataset

bq_get_table_schema

Get column definitions for a table

bq_preview_table

Preview first N rows (free, no query cost)

bq_get_table_info

Get table metadata (rows, size, partitioning)

Notes

  • Only SELECT queries are allowed (safety enforced)

  • 10 GB billing cap per query

  • Supports both looplink-drt and dandelion-tf-production projects via project_id parameter

Maintenance

ActivityInactive
ResponsivenessSyncing

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    B
    maintenance
    A read-only BigQuery MCP server with auto-LIMIT injection, dry-run cost guard, and ADC authentication. Allows safe SQL querying of BigQuery by LLMs without risk of data modification or unexpected costs.
    1
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables AI assistants to query and analyze Google BigQuery data, including schema browsing, running queries, and comparing datasets through natural language.
    MIT

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/amenke-lang/bigquery_mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server