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)
- Open Terminal
- Check if Homebrew is installed by typing:
brew --version - 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)"
- Once Homebrew is installed, install Python:
brew install python
Option B: Download Python directly
- Go to python.org
- Download Python 3.8 or newer
- Run the installer and follow the prompts
Step 2: Install the BigQuery MCP Server
- Open Terminal
- Install the server by running:
pip install nuuly-bigquery-mcp-server
- 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:
- In Terminal, run:
which nuuly-bigquery-mcp - This will show something like:
/Users/yourname/Library/Python/3.12/bin/nuuly-bigquery-mcp - Copy this path - you'll need it for the next step
Step 4: Configure Claude Desktop
- Open Claude Desktop application
- Find the "MCP Servers" section
- Click "Edit Config" or open the configuration file
- 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
- Restart Claude Desktop
- 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nuuly_bigquery_mcp_server-1.0.6.tar.gz.
File metadata
- Download URL: nuuly_bigquery_mcp_server-1.0.6.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7fa68bff6b36a906d697663ad3da3bbc67455a552dcd36a0f7d11496bccfc2d3
|
|
| MD5 |
71c4c23276cf5a70108a14282ba18ac4
|
|
| BLAKE2b-256 |
7ee12fe33777eba48926bbd6fa4773087d2a99281ebf2c25a1f52d68269dd27b
|
File details
Details for the file nuuly_bigquery_mcp_server-1.0.6-py3-none-any.whl.
File metadata
- Download URL: nuuly_bigquery_mcp_server-1.0.6-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6475250bbef5ca17a2eff7bbaf916c8f93f22c7799112286e5d8007f4e7c307b
|
|
| MD5 |
d2d65844b693c602d811842447eaa965
|
|
| BLAKE2b-256 |
c5889da69c5664800d48afb19669444d2629e76e3eca9430dff4560a9255b5d6
|