Skip to main content

A Model Context Protocol server that provides access to BigQuery. This server enables LLMs to inspect database schemas and execute queries.

Project description

BigQuery MCP server

A Model Context Protocol server that provides access to BigQuery. This server enables LLMs to inspect database schemas and execute queries.

Components

Tools

The server implements one tool:

  • read-query: Executes a SQL query using BigQuery dialect
  • list-tables: Lists all tables in the BigQuery database
  • describe-table: Describes the schema of a specific table

Configuration

[TODO: Add configuration details specific to your implementation]

Quickstart

Install

Claude Desktop

On MacOS: ~/Library/Application\ Support/Claude/claude_desktop_config.json On Windows: %APPDATA%/Claude/claude_desktop_config.json

Development/Unpublished Servers Configuration ``` "mcpServers": { "bigquery": { "command": "uv", "args": [ "--directory", "{{PATH_TO_REPO}}", "run", "mcp_server_bigquery", "--project", "{{GCP_PROJECT_ID}}", "--location", "{{GCP_LOCATION}}" ] } } ```
Published Servers Configuration ``` "mcpServers": { "bigquery": { "command": "uvx", "args": [ "mcp_server_bigquery" ] } } ```

Development

Building and Publishing

To prepare the package for distribution:

  1. Sync dependencies and update lockfile:
uv sync
  1. Build package distributions:
uv build

This will create source and wheel distributions in the dist/ directory.

  1. Publish to PyPI:
uv publish

Note: You'll need to set PyPI credentials via environment variables or command flags:

  • Token: --token or UV_PUBLISH_TOKEN
  • Or username/password: --username/UV_PUBLISH_USERNAME and --password/UV_PUBLISH_PASSWORD

Debugging

Since MCP servers run over stdio, debugging can be challenging. For the best debugging experience, we strongly recommend using the MCP Inspector.

You can launch the MCP Inspector via npm with this command:

npx @modelcontextprotocol/inspector uv --directory /Users/lucashild/Code/mcp_server_bigquery run mcp-server-bigquery

Upon launching, the Inspector will display a URL that you can access in your browser to begin debugging.

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

mcp_server_bigquery-0.1.0.tar.gz (16.9 kB view details)

Uploaded Source

Built Distribution

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

mcp_server_bigquery-0.1.0-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file mcp_server_bigquery-0.1.0.tar.gz.

File metadata

  • Download URL: mcp_server_bigquery-0.1.0.tar.gz
  • Upload date:
  • Size: 16.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.4

File hashes

Hashes for mcp_server_bigquery-0.1.0.tar.gz
Algorithm Hash digest
SHA256 20f56b8146986f2f394bc220b8f889bfd393743d2b46e783bee8b63b3f53d8b4
MD5 6c8ddef6811e7a62119843197057fb2e
BLAKE2b-256 52c5642e52d0736f78b05b1e9681772041724a7bd3b8ffb6e6913f5366e9caf8

See more details on using hashes here.

File details

Details for the file mcp_server_bigquery-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_server_bigquery-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6e4db86878a0728e242e761129e71e1b370036c699d8191e1ee0b9cf51a3e97a
MD5 39f3d8bb8db42fa79d2ada502ae20990
BLAKE2b-256 84d9ecb56f20cc4f8c7edf77f323c419426e8fde91ddcf58a2b9ac6a98c1c2f9

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