mcp-server
v2.0.0BIQ BLUE MCP Server - BigQuery cost optimization for coding agents: savings opportunities, playbooks, code tracing and impact verification
MCP server for BIQ BLUE — BigQuery cost optimization and analytics for AI assistants (Claude, Cursor, Codex, Gemini, etc.). Add to ~/.config/opencode/config.json: No API key needed. Authentication happens automatically on first use.
Summary extracted from the README.
@biqblue/mcp-server
MCP server for BIQ BLUE — BigQuery cost optimization and analytics for AI assistants (Claude, Cursor, Codex, Gemini, etc.).
Installation
Claude Code
# macOS / Linux
claude mcp add biqblue -- npx -y @biqblue/mcp-server
# Windows
claude mcp add biqblue -- cmd /c npx -y @biqblue/mcp-server
Claude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"biqblue": {
"command": "npx",
"args": ["-y", "@biqblue/mcp-server"]
}
}
}
Codex
# macOS / Linux
codex mcp add biqblue -- npx -y @biqblue/mcp-server
# Windows
codex mcp add biqblue -- cmd /c npx -y @biqblue/mcp-server
OpenCode
Add to ~/.config/opencode/config.json:
{
"mcp": {
"biqblue": {
"type": "local",
"command": ["npx", "-y", "@biqblue/mcp-server"],
"enabled": true
}
}
}
Gemini CLI
Add to ~/.gemini/settings.json:
{
"mcpServers": {
"biqblue": {
"command": "npx",
"args": ["-y", "@biqblue/mcp-server"]
}
}
}
No API key needed. Authentication happens automatically on first use.
First use
- Create your BIQ BLUE instance on go.biq.blue (a few clicks).
- Run
biqblue_init: it shows a URL and a code — open the URL, enter the code, sign in with Google. - Run
biqblue_initagain: credentials are saved to~/.biq/mcp-config.jsonand reused across sessions.
Built for coding agents
BIQ BLUE gives your agent (Claude Code, Codex, Cursor…) the high-level view it cannot get from BigQuery alone — where the money goes, which optimizations are worth it, and how to apply them — while the agent uses its own BigQuery access and your repositories to make the changes and open pull requests.
| Tool | What it gives the agent |
|---|---|
biqblue_overview |
The bill: compute spend vs previous period, by pricing model, storage, top projects / users, realistic savings and top opportunities |
biqblue_opportunities |
Ranked opportunities with their targets and change_type (code → PR, infra, config); overlapping ones are counted once |
biqblue_plan |
The playbook for one opportunity: evidence, steps, SQL / DDL, validation, PR vs user-approval rules |
biqblue_query_sources |
Which code sends a recurring query: origin (app, dbt, scheduled job, Looker Studio…), service accounts, labels, frequency, fragments to grep |
biqblue_jobs |
Search enriched jobs by project, user, table, improvement or SQL text |
biqblue_verify |
Before / after cost around a deploy date, to report the real savings |
biqblue_init |
Sign-in and connectivity |
All tools are read-only: BIQ BLUE never changes anything in your BigQuery.
Prompts
/biqblue-optimize— find the biggest savings and turn them into pull requests/biqblue-weekly-review— spend trend, new opportunities, impact of what was shipped
Example
"Find the recurring queries we can fix in this repo and open a PR for the biggest one."
biqblue_opportunities(change_type="code") → biqblue_plan(id="recurring-queries", target="<query_hash>") → biqblue_query_sources → code change + dry run → PR → a week later biqblue_verify(since="…", query_hash="…").
License
Proprietary - BY ROBOTS SAS. See LICENSE for details.