Server implementation for Google BigQuery integration that enables direct BigQuery database access and querying capabilities
Large Language Models (LLMs) are revolutionizing how we interact with information. But to truly unlock their potential, they need access to real-world data. Connecting LLMs to databases like BigQuery has traditionally been complex, requiring intricate SQL queries and deep technical expertise.
The BigQuery MCP Server acts as a seamless intermediary, enabling natural language interaction with your BigQuery data through the Model Context Protocol (MCP). Imagine asking your LLM, "What are our top-selling products this quarter?" and receiving an accurate, insightful answer directly from your BigQuery warehouse β without writing a single line of SQL.
This is the power of the BigQuery MCP Server.
The BigQuery MCP Server leverages the Model Context Protocol (MCP) to establish a secure and efficient communication channel between your LLM and your BigQuery instance.
Option 1: Smithery - The Easiest Path (Recommended)
Smithery simplifies the installation process with a single command:
npx @smithery/cli install @ergut/mcp-bigquery-server --client claude
Smithery will guide you through the configuration process, automatically updating your Claude Desktop settings and restarting the application.
Option 2: Manual Configuration - For Advanced Users
Authentication: Choose your preferred authentication method:
Google Cloud CLI (Development):
gcloud auth application-default login
Service Account (Production):
Claude Desktop Configuration: Modify your claude_desktop_config.json
file:
Basic Configuration:
{ "mcpServers": { "bigquery": { "command": "npx", "args": [ "-y", "@ergut/mcp-bigquery-server", "--project-id", "your-project-id", "--location", "us-central1" ] } } }
Service Account Configuration:
{ "mcpServers": { "bigquery": { "command": "npx", "args": [ "-y", "@ergut/mcp-bigquery-server", "--project-id", "your-project-id", "--location", "us-central1", "--key-file", "/path/to/service-account-key.json" ] } } }
Start Chatting: Open Claude Desktop and begin exploring your data with natural language queries.
--project-id
: (Required) Your Google Cloud project ID.--location
: (Optional) BigQuery location (defaults to 'us-central1').--key-file
: (Optional) Path to the service account key JSON file.Example (Service Account):
npx @ergut/mcp-bigquery-server --project-id your-project-id --location europe-west1 --key-file /path/to/key.json
To ensure secure access, the service account or user needs the following permissions:
roles/bigquery.user
(Recommended)roles/bigquery.dataViewer
roles/bigquery.jobUser
For customization and contribution:
Clone and Install:
git clone https://github.com/ergut/mcp-bigquery-server cd mcp-bigquery-server npm install
Build:
npm run build
Update Claude Desktop Configuration: Point to your local build:
{ "mcpServers": { "bigquery": { "command": "node", "args": [ "/path/to/your/clone/mcp-bigquery-server/dist/index.js", "--project-id", "your-project-id", "--location", "us-central1", "--key-file", "/path/to/service-account-key.json" ] } } }
MIT License - See LICENSE for details.
Salih ErgΓΌt
This project is proudly sponsored by:
See CHANGELOG.md for updates and version history.
The BigQuery MCP Server is more than just a tool; it's a gateway to a new era of data interaction. By bridging the gap between LLMs and your data warehouse, it empowers you to unlock insights, make data-driven decisions, and transform the way you work with information. Start exploring your data with the power of AI today!
π βοΈ Biomedical research server providing access to PubMed, ClinicalTrials.gov, and MyVariant.info.
π MCP server that provides SQL analysis, linting, and dialect conversion using [SQLGlot](https://github.com/tobymao/sqlglot)
π π All-in-one MCP server for Postgres development and operations, with tools for performance analysis, tuning, and health checks
Supabase MCP Server with support for SQL query execution and database exploration tools