Connect your LLMs to BigQuery effortlessly for natural language data queries and analysis
BigQuery MCP Server is an essential component in the Model Context Protocol (MCP) ecosystem, designed to facilitate secure and efficient communication between AI applications like Claude Desktop and enterprise databases. By leveraging MCP, this server acts as a bridge, enabling natural language queries directly into your BigQuery data, empowering seamless data exploration without manual SQL coding.
BigQuery MCP Server offers a robust set of features that enhance the capabilities of AI applications through MCP protocol integration:
The following Mermaid diagram illustrates the flow of communication between an MCP Client (e.g., Claude Desktop) and a BigQuery dataset:
graph TD
A[AI Application] -->|MCP Client| B[MCP Server]
B --> C[BigQuery Dataset]
style A fill:#e1f5fe
style C fill:#f3e5f5
To ensure broad compatibility, BigQuery MCP Server is tested and certified with the following AI application clients:
MCP Client | Resources | Tools | Prompts | Status |
---|---|---|---|---|
Claude Desktop | ✅ | ✅ | ✅ | Full Support |
Continue | ✅ | ✅ | ✅ | Full Support |
Cursor | ❌ | ✅ | ❌ | Tools Only |
BigQuery MCP Server adheres to the Model Context Protocol (MCP) standards for protocol implementation, ensuring seamless integration and compatibility with other services. The server parses natural language queries from the AI application client and executes them against BigQuery using an internal query engine.
The server includes a layer that translates the native communication protocols of MCP clients into SQL commands compatible with BigQuery’s API. This ensures that complex queries formulated through natural language are accurately translated for execution, providing a consistent user experience across different AI applications.
To get started with BigQuery MCP Server, ensure you meet the necessary infrastructure and software requirements:
For simplicity and ease of use, we recommend installing BigQuery MCP Server through the Smithery CLI:
npx @smithery/cli install @ergut/mcp-bigquery-server --client claude
This command automatically configures your system and restarts Claude Desktop with the new MCP server.
For detailed manual setup, follow these steps:
Authenticate with Google Cloud:
gcloud auth application-default login
for development.npx @ergut/mcp-bigquery-server --key-file /path/to/service-account-key.json
.Configure MCP Server in Claude Desktop:
{
"mcpServers": {
"bigquery": {
"command": "npx",
"args": [
"-y",
"@ergut/mcp-bigquery-server",
"--project-id",
"your-project-id",
"--location",
"us-central1"
]
}
}
}
Restart Claude Desktop: After making changes, restart the application to apply the new configuration.
Scenario 1: Sales Analytics Dashboard
Scenario 2: Customer Service Chatbots
BigQuery MCP Server, like its MCP framework counterparts, aims to standardize access to various data sources. While tailored specifically for integration within Claude Desktop, it caters to potential expansion across multiple AI applications in future updates.
The server provides a default 1GB query limit per execution but offers extensible configurations suited for different use cases:
For robust security practices:
For developers looking to extend functionality, a local development setup allows for fine-grained control over server behavior:
git clone https://github.com/ergut/mcp-bigquery-server
cd mcp-bigquery-server
npm install
npm run build
dotenv
or similar tools to store sensitive information in .env
files and reference them via Node.js.For those interested in contributing to the project:
npm
.BigQuery MCP Server is part of the broader Model Context Protocol (MCP) ecosystem, offering compatibility and interchangeability with various AI tools and data sources. For more information on the MCP protocol, visit the official documentation.
MIT License - See LICENSE file for details.
Salih Ergüt
This project is proudly sponsored by:
See CHANGELOG.md for updates and version history.
By utilizing BigQuery MCP Server, AI developers can enhance their applications with secure and efficient data handling capabilities, bridging the gap between complex databases and intuitive user interfaces through the Model Context Protocol (MCP).
RuinedFooocus is a local AI image generator and chatbot image server for seamless creative control
Access NASA APIs for space data, images, asteroids, weather, and exoplanets via MCP integration
Simplify MySQL queries with Java-based MysqlMcpServer for easy standard input-output communication
Build stunning one-page websites track engagement create QR codes monetize content easily with Acalytica
Learn to set up MCP Airflow Database server for efficient database interactions and querying airflow data
Explore CoRT MCP server for advanced self-arguing AI with multi-LLM inference and enhanced evaluation methods