Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile
# Use a Node.js image as the base image
FROM node:18-alpine AS builder

# Set the working directory
WORKDIR /app

# Copy the package.json and package-lock.json files
COPY package.json package-lock.json ./

# Install dependencies
RUN npm install --ignore-scripts

# Copy the rest of the application code
COPY . .

# Build the application
RUN npm run build

# Create a new stage for the release image
FROM node:18-alpine AS release

# Set the working directory
WORKDIR /app

# Copy the built files and necessary package files
COPY --from=builder /app/dist /app/dist
COPY --from=builder /app/package.json /app/package-lock.json ./

# Install only production dependencies
RUN npm ci --omit=dev

# Expose port (if necessary)
# EXPOSE 3000

# Define environment variables for the Google Cloud project and key file
ENV GOOGLE_APPLICATION_CREDENTIALS=/app/key.json

# Define the entrypoint command
ENTRYPOINT ["node", "dist/index.js"]

# Default command arguments (these can be overridden at runtime)
CMD ["--project-id", "your-project-id", "--location", "us-central1"]
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# BigQuery MCP Server
[![smithery badge](https://smithery.ai/badge/@ergut/mcp-bigquery-server)](https://smithery.ai/protocol/@ergut/mcp-bigquery-server)
[![smithery badge](https://smithery.ai/badge/@ergut/mcp-bigquery-server)](https://smithery.ai/server/@ergut/mcp-bigquery-server)
<div align="center">
<img src="assets/mcp-bigquery-server-logo.png" alt="BigQuery MCP Server Logo" width="400"/>
</div>
Expand Down Expand Up @@ -42,10 +42,10 @@ Here's all you need to do:
- Claude Desktop (currently the only supported LLM interface)

### Option 1: Quick Install via Smithery (Recommended)
To install BigQuery MCP Server for Claude Desktop automatically via [Smithery](https://smithery.ai/protocol/@ergut/mcp-bigquery-server), run this command in your terminal:
To install BigQuery MCP Server for Claude Desktop automatically via [Smithery](https://smithery.ai/server/@ergut/mcp-bigquery-server), run this command in your terminal:

```bash
npx @smithery/cli install @ergut/mcp-bigquery-server --client claude
npx -y @smithery/cli install @ergut/mcp-bigquery-server --client claude
```
The installer will prompt you for:

Expand Down
24 changes: 24 additions & 0 deletions smithery.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Smithery configuration file: https://smithery.ai/docs/config#smitheryyaml

startCommand:
type: stdio
configSchema:
# JSON Schema defining the configuration options for the MCP.
type: object
required:
- projectId
properties:
projectId:
type: string
description: Your Google Cloud project ID.
location:
type: string
default: us-central1
description: The BigQuery location, defaults to 'us-central1'.
keyFile:
type: string
description: Path to the service account key JSON file.
commandFunction:
# A function that produces the CLI command to start the MCP on stdio.
|-
(config) => ({command: 'node', args: ['dist/index.js', '--project-id', config.projectId, '--location', config.location, '--key-file', config.keyFile]})