MCP Directory

How to add BigQuery MCP server to Cursor

Inspect BigQuery schemas and run SQL queries from your LLM client. Paste the config into ~/.cursor/mcp.json and restart Cursor.

Last updated June 14, 2026 · 127 · stdio · no auth

Cursor config for BigQuery MCP server

npx -y @smithery/cli install mcp-server-bigquery --client claude
{
  "mcpServers": {
    "bigquery-mcp-server": {
      "command": "uvx",
      "args": [
        "mcp-server-bigquery"
      ],
      "env": {
        "BIGQUERY_PROJECT": "{{GCP_PROJECT_ID}}",
        "BIGQUERY_LOCATION": "{{GCP_LOCATION}}"
      }
    }
  }
}

Requires `uv` (the Python package runner). Install it from https://docs.astral.sh/uv/ if `uvx` is not found.

Setup steps

  1. 1Open Cursor → Settings → MCP → Add new MCP server (or edit ~/.cursor/mcp.json directly).
  2. 2Paste the BigQuery MCP server config below into the "mcpServers" object.
  3. 3Fill in placeholder secrets, then save.
  4. 4Cursor reloads MCP servers automatically — check Settings → MCP for a green status dot.
  5. 5Ask Cursor to use one of BigQuery MCP server's tools to confirm it's connected.

Before you start

  • A Google Cloud project with BigQuery enabled
  • GCP credentials: a service account key file or default application credentials
  • uvx (uv) available to run the server, or Smithery CLI to install

What BigQuery MCP server can do in Cursor

execute-query

Executes a SQL query using the BigQuery dialect.

list-tables

Lists all tables in the BigQuery database.

describe-table

Describes the schema of a specific table.

Security

Authenticates to BigQuery using a service account key file (--key-file / BIGQUERY_KEY_FILE) or the environment's default GCP credentials. Use --dataset / BIGQUERY_DATASETS to restrict which datasets are exposed to the LLM.

BigQuery MCP server + Cursor FAQ

Where is the Cursor config file?

Cursor reads MCP servers from ~/.cursor/mcp.json. Paste the BigQuery MCP server config there under the "mcpServers" key and restart the client.

Is BigQuery MCP server safe to use with Cursor?

Authenticates to BigQuery using a service account key file (--key-file / BIGQUERY_KEY_FILE) or the environment's default GCP credentials. Use --dataset / BIGQUERY_DATASETS to restrict which datasets are exposed to the LLM.

How do I authenticate to BigQuery?

Provide a service account key file via the --key-file argument or BIGQUERY_KEY_FILE environment variable. If not provided, the server uses the environment's default GCP credentials.

Can I limit which datasets the server can access?

Yes. Use the --dataset argument (repeatable) or the BIGQUERY_DATASETS environment variable (comma-separated) to restrict the server to specific datasets. If omitted, all datasets in the project are considered.

Which configuration values are required?

The GCP project ID (--project / BIGQUERY_PROJECT) and the GCP location (--location / BIGQUERY_LOCATION) are required. Dataset filtering, key file, and timeout are optional.

View repo Full BigQuery MCP server page