Skip to main content

MCP server for code editors, connects to Google BigQuery

Project description

Nuuly BigQuery MCP Server

This MCP server provides AI code editors with access to Google BigQuery data through the Model Context Protocol (MCP). It allows AI assistants to understand BigQuery datasets and tables, and to run queries against them. This implementation acts as a client that forwards requests to a remote BigQuery MCP server running on Google Cloud Run.

Features

  • List available BigQuery datasets
  • Get list of tables in a dataset with caching for improved performance
  • Get detailed schema information for specific tables in a dataset
  • Run SQL queries against BigQuery datasets

Prerequisites

  • Python 3.8+

Installation

Step 1: Install Python (Mac Users)

Option A: Using Homebrew (Recommended)

  1. Open Terminal
  2. Check if Homebrew is installed by typing: brew --version
  3. If Homebrew is not installed, install it by copying and pasting this command:
    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
    
  4. Once Homebrew is installed, install Python:
    brew install python
    

Option B: Download Python directly

  1. Go to python.org
  2. Download Python 3.8 or newer
  3. Run the installer and follow the prompts

Step 2: Install the BigQuery MCP Server

  1. Open Terminal
  2. Install the server by running:
    pip install nuuly-bigquery-mcp-server
    
  3. Wait for the installation to complete

Step 3: Find the Installation Path

You'll need to find where the server was installed to configure Claude:

  1. In Terminal, run:
    which nuuly-bigquery-mcp
    
  2. This will show something like:
    /Users/yourname/Library/Python/3.12/bin/nuuly-bigquery-mcp
  3. Copy this path - you'll need it for the next step

Step 4: Configure Claude Desktop

  1. Open Claude Desktop application
  2. Find the "MCP Servers" section
  3. Click "Edit Config" or open the configuration file
  4. Add the following configuration, replacing the path with your actual path from Step 3:
{
  "nuuly-bigquery-mcp": {
    "command": "/Users/yourname/Library/Python/3.12/bin/nuuly-bigquery-mcp",
    "env": {
      "BQ_API_KEY": "D8fzQ2xL9rT7wP6uV3bN1eK5",
      "BIGQUERY_MCP_SERVER_URL": "https://bigquery-mcp-toolbox-oe7jbzhmjq-uk.a.run.app/mcp/invoke"
    }
  }
}

Step 5: Restart Claude

  1. Restart Claude Desktop
  2. The BigQuery tools should now be available

Available Tools

The server provides the following tools, which are forwarded to the remote BigQuery MCP server:

1. list_databases

Lists all available BigQuery datasets.

list_databases()

2. get_tables

Gets a list of all tables in a specified dataset. Results are cached for improved performance on subsequent calls.

get_tables(database="your_dataset_name")

Example response:

{
  "tables": [
    {
      "name": "table1",
      "full_name": "project.dataset.table1",
      "type": "TABLE"
    },
    {
      "name": "table2",
      "full_name": "project.dataset.table2",
      "type": "TABLE"
    }
  ],
  "count": 2
}

3. get_schema

Gets the detailed schema of a specific table in a dataset.

get_schema(database="your_dataset_name", table="your_table_name")

Example response:

{
  "table": {
    "name": "your_table_name",
    "full_name": "project.your_dataset_name.your_table_name",
    "columns": [
      {
        "name": "id",
        "type": "STRING",
        "mode": "NULLABLE",
        "description": "Unique identifier"
      },
      {
        "name": "created_at",
        "type": "TIMESTAMP",
        "mode": "NULLABLE",
        "description": "Creation timestamp"
      }
    ]
  },
  "success": true
}

4. run_query

Runs a SQL query against a BigQuery dataset.

run_query(database="your_dataset_name", sql="SELECT * FROM your_table LIMIT 10")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nuuly_bigquery_mcp_server-1.0.5.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nuuly_bigquery_mcp_server-1.0.5-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file nuuly_bigquery_mcp_server-1.0.5.tar.gz.

File metadata

File hashes

Hashes for nuuly_bigquery_mcp_server-1.0.5.tar.gz
Algorithm Hash digest
SHA256 ee5ed532509fd81fe9c7078d8040852008bb3dd4c0c43274c3dc35bbd18d4d3f
MD5 9e2777f86b6dc76f67c6af60005efbdb
BLAKE2b-256 6f03526358b13fe20c378317d6b5a31138adc3f088add51a62f350f0f8ead862

See more details on using hashes here.

File details

Details for the file nuuly_bigquery_mcp_server-1.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for nuuly_bigquery_mcp_server-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 fecac0784515b06b8691a7b0b1215fcbea59fc101feb6ada67a4611d46fb9e6d
MD5 19b0bf6fb3362ba459a6a717fe7cba42
BLAKE2b-256 4417ac65d698fc2298eb58184f01061b0a45252988e0101c017e2b789b6499d5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page