drio
Open app

BigQuery

Source

(by LucasHild) - This server enables LLMs to inspect database schemas and execute queries on BigQuery.

Catalog onlyCatalog onlySTDIO

Overview

BigQuery is a Model Context Protocol server developed by LucasHild that facilitates large language models (LLMs) in inspecting database schemas and executing queries on Google BigQuery.

To use BigQuery, users must configure the server with the Google Cloud Project ID and location, then execute queries through the provided tools. Users can list tables, describe table schemas, and run SQL queries.

  • Execute SQL queries using BigQuery dialect - List all tables in a BigQuery database - Describe the schema of specific tables
  1. Integrating LLM capabilities for seamless database querying.
  2. Assisting data analysts in managing large datasets by allowing natural language queries.
  3. Enhancing application features requiring real-time database schema inspection and querying capabilities.

Add to your AI client

Use these steps to connect BigQuery in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "bigquery-lucashild": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-bigquery-lucashild"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "bigquery-lucashild": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-bigquery-lucashild"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "bigquery-lucashild": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-bigquery-lucashild"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "bigquery-lucashild": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-bigquery-lucashild"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "bigquery-lucashild": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-bigquery-lucashild"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "bigquery-lucashild": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-bigquery-lucashild"
      ]
    }
  }
}

FAQ

What is required to run BigQuery?

You need a valid Google Cloud Project ID and specify a location in the configuration.

Can I query different datasets within the same project?

Yes, you can specify multiple datasets during configuration.

Is it necessary to install dependencies before using the server?

Yes, dependencies need to be synced and the package built before execution.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":59,"uuid":"5defc0e3-a73d-4c39-a8bf-53297e914f5d","name":"bigquery","title":"BigQuery","description":"(by LucasHild) - This server enables LLMs to inspect database schemas and execute queries on BigQuery.","avatar_url":"https://r2.trys.ai/imgs/137i7jpg6-1733451073146.png","created_at":"2024-12-05T16:27:19.593Z","updated_at":"2024-12-13T07:45:16.611Z","status":"created","author_name":"LucasHild","author_avatar_url":"","tags":"bigquery,database-querying,llm-integration","category":"research-and-data","is_featured":false,"sort":1,"url":"https://github.com/LucasHild/mcp-server-bigquery","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":null,"user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]