{"id":29113744,"url":"https://github.com/lucashild/mcp-server-bigquery","last_synced_at":"2026-01-12T12:47:50.106Z","repository":{"id":266334602,"uuid":"898062517","full_name":"LucasHild/mcp-server-bigquery","owner":"LucasHild","description":"A Model Context Protocol server that provides access to BigQuery","archived":false,"fork":false,"pushed_at":"2025-05-30T06:31:33.000Z","size":58,"stargazers_count":91,"open_issues_count":3,"forks_count":22,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-30T08:04:55.140Z","etag":null,"topics":["bigquery","mcp","mcp-server"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LucasHild.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-12-03T18:09:19.000Z","updated_at":"2025-05-30T06:32:19.000Z","dependencies_parsed_at":"2025-05-30T07:30:32.514Z","dependency_job_id":"ce3d1a88-89d0-48b1-a528-28a30cdf7239","html_url":"https://github.com/LucasHild/mcp-server-bigquery","commit_stats":null,"previous_names":["lucashild/mcp-server-bigquery"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/LucasHild/mcp-server-bigquery","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LucasHild%2Fmcp-server-bigquery","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LucasHild%2Fmcp-server-bigquery/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LucasHild%2Fmcp-server-bigquery/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LucasHild%2Fmcp-server-bigquery/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LucasHild","download_url":"https://codeload.github.com/LucasHild/mcp-server-bigquery/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LucasHild%2Fmcp-server-bigquery/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262581379,"owners_count":23331913,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bigquery","mcp","mcp-server"],"created_at":"2025-06-29T11:05:47.257Z","updated_at":"2026-01-12T12:47:50.093Z","avatar_url":"https://github.com/LucasHild.png","language":"Python","funding_links":[],"categories":["Databases"],"sub_categories":["How to Submit"],"readme":"# BigQuery MCP server\n\n[![smithery badge](https://smithery.ai/badge/mcp-server-bigquery)](https://smithery.ai/server/mcp-server-bigquery)\n\nA Model Context Protocol server that provides access to BigQuery. This server enables LLMs to inspect database schemas and execute queries.\n\n## Components\n\n### Tools\n\nThe server implements one tool:\n\n- `execute-query`: Executes a SQL query using BigQuery dialect\n- `list-tables`: Lists all tables in the BigQuery database\n- `describe-table`: Describes the schema of a specific table\n\n## Configuration\n\nThe server can be configured either with command line arguments or environment variables.\n\n| Argument     | Environment Variable | Required | Description                                                                                                                                                                                                                                                                                                                                                    |\n| ------------ | -------------------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `--project`  | `BIGQUERY_PROJECT`   | Yes      | The GCP project ID.                                                                                                                                                                                                                                                                                                                                            |\n| `--location` | `BIGQUERY_LOCATION`  | Yes      | The GCP location (e.g. `europe-west9`).                                                                                                                                                                                                                                                                                                                        |\n| `--dataset`  | `BIGQUERY_DATASETS`  | No       | Only take specific BigQuery datasets into consideration. Several datasets can be specified by repeating the argument (e.g. `--dataset my_dataset_1 --dataset my_dataset_2`) or by joining them with a comma in the environment variable (e.g. `BIGQUERY_DATASETS=my_dataset_1,my_dataset_2`). If not provided, all datasets in the project will be considered. |\n| `--key-file` | `BIGQUERY_KEY_FILE`  | No       | Path to a service account key file for BigQuery. If not provided, the server will use the default credentials.                                                                                                                                                                                                                                                 |\n\n## Quickstart\n\n### Install\n\n#### Installing via Smithery\n\nTo install BigQuery Server for Claude Desktop automatically via [Smithery](https://smithery.ai/server/mcp-server-bigquery):\n\n```bash\nnpx -y @smithery/cli install mcp-server-bigquery --client claude\n```\n\n#### Claude Desktop\n\nOn MacOS: `~/Library/Application\\ Support/Claude/claude_desktop_config.json`\nOn Windows: `%APPDATA%/Claude/claude_desktop_config.json`\n\n##### Development/Unpublished Servers Configuration\u003c/summary\u003e\n\n```json\n\"mcpServers\": {\n  \"bigquery\": {\n    \"command\": \"uv\",\n    \"args\": [\n      \"--directory\",\n      \"{{PATH_TO_REPO}}\",\n      \"run\",\n      \"mcp-server-bigquery\",\n      \"--project\",\n      \"{{GCP_PROJECT_ID}}\",\n      \"--location\",\n      \"{{GCP_LOCATION}}\"\n    ]\n  }\n}\n```\n\n##### Published Servers Configuration\n\n```json\n\"mcpServers\": {\n  \"bigquery\": {\n    \"command\": \"uvx\",\n    \"args\": [\n      \"mcp-server-bigquery\",\n      \"--project\",\n      \"{{GCP_PROJECT_ID}}\",\n      \"--location\",\n      \"{{GCP_LOCATION}}\"\n    ]\n  }\n}\n```\n\nReplace `{{PATH_TO_REPO}}`, `{{GCP_PROJECT_ID}}`, and `{{GCP_LOCATION}}` with the appropriate values.\n\n## Development\n\n### Building and Publishing\n\nTo prepare the package for distribution:\n\n1. Increase the version number in `pyproject.toml`\n\n2. Sync dependencies and update lockfile:\n\n```bash\nuv sync\n```\n\n3. Build package distributions:\n\n```bash\nuv build\n```\n\nThis will create source and wheel distributions in the `dist/` directory.\n\n4. Publish to PyPI:\n\n```bash\nuv publish\n```\n\nNote: You'll need to set PyPI credentials via environment variables or command flags:\n\n- Token: `--token` or `UV_PUBLISH_TOKEN`\n- Or username/password: `--username`/`UV_PUBLISH_USERNAME` and `--password`/`UV_PUBLISH_PASSWORD`\n\n### Debugging\n\nSince MCP servers run over stdio, debugging can be challenging. For the best debugging\nexperience, we strongly recommend using the [MCP Inspector](https://github.com/modelcontextprotocol/inspector).\n\nYou can launch the MCP Inspector via [`npm`](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) with this command:\n\n```bash\nnpx @modelcontextprotocol/inspector uv --directory {{PATH_TO_REPO}} run mcp-server-bigquery\n```\n\nUpon launching, the Inspector will display a URL that you can access in your browser to begin debugging.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucashild%2Fmcp-server-bigquery","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flucashild%2Fmcp-server-bigquery","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucashild%2Fmcp-server-bigquery/lists"}