bigquery-mcp
MCP server for secure BigQuery access across multiple Google Cloud projects, enabling querying, schema exploration, and data analysis with SQL validation and read-only controls.
README
BigQuery MCP Server
MCP server for secure BigQuery access across multiple Google Cloud projects.
Features
- Multi-Project Access - Query across BigQuery projects with pattern matching
- Advanced Analytics - Column analysis, data quality checks, schema exploration
- Security Controls - SQL validation, query limits, read-only operations
- CLI Configuration - Command-line arguments with config file fallback
- Docker Support - Containerized deployment for easy integration
Documentation
Full documentation available at aicayzer.github.io/bigquery-mcp
Quick Start
Prerequisites
- Python 3.11+
- Google Cloud SDK
- Docker (optional)
Authentication
gcloud auth application-default login
Installation
git clone https://github.com/aicayzer/bigquery-mcp.git
cd bigquery-mcp
pip install -r requirements.txt
MCP Client Setup
Claude Desktop
Add to ~/.config/claude/claude_desktop_config.json:
{
"mcpServers": {
"bigquery": {
"command": "docker",
"args": [
"run", "--rm", "-i",
"--volume", "/Users/YOUR_USERNAME/.config/gcloud:/home/mcpuser/.config/gcloud:ro",
"--volume", "/ABSOLUTE/PATH/TO/bigquery-mcp/logs:/app/logs",
"bigquery-mcp:latest",
"python", "src/server.py",
"--project", "your-project:*",
"--billing-project", "your-project"
]
}
}
}
Cursor IDE
Add to MCP settings:
{
"bigquery": {
"command": "docker",
"args": [
"run", "--rm", "-i",
"--volume", "/Users/YOUR_USERNAME/.config/gcloud:/home/mcpuser/.config/gcloud:ro",
"bigquery-mcp:latest",
"python", "src/server.py",
"--project", "your-project:*",
"--billing-project", "your-project"
]
}
}
Usage
CLI
# Single project
python src/server.py --project "your-project:*" --billing-project "your-project"
# Multiple projects with patterns
python src/server.py \
--project "analytics-prod:user_*,session_*" \
--project "logs-prod:application_*" \
--billing-project "my-billing-project"
Docker
docker build -t bigquery-mcp .
docker run -v ~/.config/gcloud:/home/mcpuser/.config/gcloud:ro bigquery-mcp \
python src/server.py --project "your-project:*" --billing-project "your-project"
Tools
list_projects()- List configured BigQuery projectslist_datasets(project)- List datasets in a projectlist_tables(dataset, table_type)- List tables in a datasetanalyze_table(table)- Get table structure and statisticsanalyze_columns(table, columns, sample_size)- Deep column analysisexecute_query(query, format, limit, timeout)- Execute SELECT queries
Configuration
CLI Arguments
python src/server.py \
--project "analytics-prod:user_*,session_*" \
--project "logs-prod:application_*" \
--billing-project "my-billing-project" \
--log-level INFO \
--timeout 20 \
--max-limit 50000
Config File (Optional)
bigquery:
billing_project: "your-project"
location: "EU"
projects:
- project_id: "analytics-prod"
datasets: ["user_*", "session_*"]
- project_id: "logs-prod"
datasets: ["application_*"]
Contributing
- Fork the repository
- Create a feature branch from
develop - Make your changes with tests
- Submit a pull request to
develop
License
MIT License - see LICENSE file.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.