looker-studio-mcp
This server exposes read-only BigQuery and Looker Studio inspection plus a report-link builder; no write/edit tools are available in this schema.
Check BigQuery credentials and Looker Studio browser sign-in.
List BigQuery datasets, tables, and views; describe table/view fields, row counts, and view SQL.
Run single read-only GoogleSQL
SELECT/WITHqueries, optionally dry-run to estimate bytes scanned and cap returned rows.List Looker Studio reports (filter by name) and list report pages.
Screenshot a report page in view mode for visual checking.
List page components (charts, text, shapes) with layout details and describe a component's Setup/Style settings.
Build a Looker Studio Linking API URL to create a report from BigQuery tables or a template.
Cannot create, edit, delete, or share reports/components/data sources here because write tools are not included.
Enables building and managing Looker Studio dashboards on top of BigQuery, including creating reports, adding charts, text boxes, and shapes, updating components and themes, managing pages, sharing/deleting reports, and capturing screenshots of report pages.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@looker-studio-mcp Build a dark dashboard for campusfind_analytics.bq_feature_usage with KPI cards and charts"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
looker-studio-mcp
MCP server that lets an AI assistant build Looker Studio (formerly Data Studio) dashboards on top of BigQuery: explore datasets, run read-only queries, create views, and design reports — charts, text, shapes, themes, exact layouts — then check the result with a screenshot.
Looker Studio has no public API to edit reports, so the report tools drive the real Looker Studio editor in a dedicated, signed-in Chrome profile (Playwright). BigQuery goes through its REST API.
"Build a dark dashboard for analytics.events:
a header band, three KPI cards, uses per feature as bars, the share as a donut
and a table at the bottom."Quick start
npm install && npm run build
npx playwright install chromium # Playwright's driver; reports run on your Google Chrome
node build/cli/main.js init --project my-gcp-project --enable-writes
node build/cli/main.js login # sign in to Google once, then quit Chrome (⌘Q)
gcloud auth application-default login # or --credentials-file for a service account
node build/cli/main.js auth # checks bothRegister it with your MCP client (Claude Code shown):
claude mcp add looker-studio -- node /path/to/looker-studio-mcp/build/cli/main.js serve --enable-writesRelated MCP server: BigQuery MCP Server
Table of contents
Authentication
Two independent credentials:
For | How | Check |
BigQuery (datasets, queries, views) | Application Default Credentials, or |
|
Looker Studio reports | A Chrome profile at |
|
login opens your regular Google Chrome (not an automated one: Google refuses sign-in in automated browsers). Sign in, open Looker Studio once, then quit Chrome completely with ⌘Q so the session is written to disk. Every later run reuses that profile; the server never sees your password.
Configuration
~/.looker-studio-mcp/config.yaml (written by init):
project_id: my-gcp-project # default project for BigQuery tools
location: US # BigQuery location
auth:
credentials: adc # adc | file
credentials_file: null
browser_profile_dir: ~/.looker-studio-mcp/browser-profile
browser_channel: chrome # chrome | chromium | msedge
headless: true # false (or serve --headed) to watch the editor
writes:
enabled: false
dry_run: false # true: write tools only describe what they would do
query:
max_rows: 500
max_bytes_billed: 1000000000 # 1 GB per query
ui:
step_timeout_ms: 30000
logging:
level: infoEnvironment overrides: LOOKER_STUDIO_MCP_PROJECT, LOOKER_STUDIO_MCP_CREDENTIALS_FILE, LOOKER_STUDIO_MCP_HEADLESS. CLI flags override both.
Write operations
Write tools are registered only when both writes.enabled: true is in the config and serve --enable-writes is passed. Every write is appended to ~/.looker-studio-mcp/audit.ndjson. With writes.dry_run: true they only describe the change.
delete_report also needs confirm_name to match the report's name. run_query refuses anything but a single SELECT/WITH, and every query is capped by max_bytes_billed.
Available tools
Read tools (always available)
Tool | What it does |
| Checks the BigQuery credentials and the signed-in browser profile |
| Explore BigQuery (fields, row counts, view SQL) |
| One read-only query, rows as a table; |
| Your Looker Studio reports, filterable by name |
| Pages of a report |
| Charts, texts and shapes of a page: index, kind, layout |
| Every Setup/Style setting of a component with its exact label and value |
| PNG of a page in view mode, returned as an image |
| A Linking API URL that creates a report from BigQuery tables, custom queries or Google Sheets |
| Every chart of a report (or a page) that shows "No data", a configuration error, a data set error (Too Many Rows, BigQuery errors) or is still loading, with page, index, kind, fields and Looker's details (docs) |
| Data sources of a report: name, alias (ds0…), table or custom query SQL, charts using it, data credentials, data freshness; |
| Read a report into a JSON spec (theme, data sources, pages, components with fields and main style) that |
| The report's email delivery schedule (recipients, pages, start, repeat with weekdays, time, time zone, Filters tab values), if any |
| File › Version history: index, name or date, and authors of each version, newest first |
Write tools (require writes)
Tool | What it does |
| BigQuery views (dry-run validated first) |
| New report connected to a BigQuery table, view or custom query ( |
| Connect another BigQuery table, view or custom query ( |
| Re-read a data source's fields after a column was added to the table or view |
| All 49 chart presets: tables (with bars/heatmap), scorecards (compact, with dimension, sparkline), time series, bars (stacked, 100%), histogram, pie, donut, line, area, combo, pivot tables (with bars/heatmap), funnel, waterfall, sankey, bullet, gauge, treemap, scatter, bubble, boxplot, candlestick, timeline, geo and Google Maps — with dimensions, metrics (aggregation, display name), breakdown, sorts (Sort #2…), extra Setup slots, filters (AND/OR), default date range (preset or fixed dates), comparison period, combo series, value colors, reference lines and bands, conditional formatting, title, layout and Style settings |
| Drop-down, fixed-size list, input box, advanced filter, slider, checkbox, preset filter, date range, data control, dimension control, button (link to a URL or page, or a report action) |
| Logo or header art from a local file or https URL |
| A formula field on a data source (ratios, CASE groupings, date parts) |
| Text box: size, color, bold, alignment, background |
| Rectangle, circle, triangle, heart, diamond, pentagon, star, hexagon, octagon, cylinder, block arrows, callout: fill, border, radius |
| Straight line between two points: color, dash style, arrow heads |
| URL embed (a page that allows being embedded) |
| Move/resize, switch the chart type, Style/Setup settings, Setup slots, filters, sorts, reference lines/bands, conditional formatting, date range, comparison, series, value colors, rename fields, restack (front/back), make report-level, button action, embed URL |
| Copy a component with its settings and place the copy |
| Align, distribute evenly, group or ungroup components |
| Remove a component |
| Filters, default date range, date range dimension and data source of a whole page or of the whole report; page background and size |
| Edit (rename, replace clauses), duplicate or delete a filter of the report |
| Parameters (with permitted values and default), group fields (named buckets) and bin fields (numeric ranges) |
| Blend 2 to 5 data sources with left/right/inner/full/cross joins |
| Built-in theme, custom theme settings, page size, Layout settings (tab navigation, header) |
| Invite several people at once as viewers or editors; existing access is changed in place |
| Report management; |
| Community visualization from the gallery by name ("Gauge", "Sunburst Chart"…) or your own by |
| Remove a data source by name or alias; refuses while charts use it unless |
| Rename a data source, replace a custom query's SQL, set data credentials ( |
| Change a data source field's type (Number, Text, Date…), default aggregation and/or name |
| Run a list of editing actions (any of the tools above, same arguments) in one editor visit: validated first, a result per action |
| Build a report from a JSON spec, or add the missing pages and components to an existing one, in one visit |
| File › Make a copy under a new name; |
| Link settings: restricted, unlisted (anyone with the link) or public, with the link's role (viewer/editor) |
| Email the report on a schedule: recipients, start date, time, time zone, repeat (daily, weekly, monthly, weekdays, custom every N days, weeks on chosen weekdays, or months on the day or weekday), pages, and the Filters tab (filter control values, date range controls); or delete the schedule |
| Restore a version by its index or label from |
| File › Embed report: turns embedding on if needed and returns the iframe code and embed URL (width, height, page, navigation) |
Settings are addressed by the label the properties panel shows ("Bar color", "Show data labels", "Border radius"…). describe_component lists them; settings that do not exist come back as warnings instead of failing silently.
Custom queries
create_report, add_data_source and build_report_link take sql instead of dataset_id and table_id; project_id is then the billing project and source_name names the data source. The SQL is dry-run in BigQuery first: a query BigQuery rejects comes back with BigQuery's message and the browser never opens. date_range_params and viewer_email_param pass @DS_START_DATE/@DS_END_DATE and @DS_USER_EMAIL to the query (not through the Linking API). The data source then works like any other. See docs/custom-queries.md for naming, field types, validation and cost.
Other connectors
create_report, add_data_source and build_report_link take connector (default bigquery, so existing calls are unchanged):
google_sheets:spreadsheet(URL or id),worksheet(tab name) orworksheet_id(its gid),use_first_row_as_headers,include_hidden_and_filtered_cells,range.postgresql,mysql:host,port,database,user,password,ssl, andtable_idorsql. Not available inbuild_report_link(the Linking API has no such connector).
Passwords are redacted from the audit log and never appear in replies. See docs/connectors.md.
Batches and report specs
Each editing tool opens the report, does its work and closes it. apply_actions runs many of them in one editor visit, several times faster: {"report_id": "…", "actions": [{"tool": "add_text", "args": {"text": "Title"}}, …]}. export_report_spec and apply_report_spec read a report into JSON and build one from it (copies, templates, dashboards written by hand). See docs/report-spec.md.
Designing dashboards
See docs/design-guide.md for the canvas grid, the card pattern, color and type choices, and a full worked example. The short version:
set_themefirst (e.g.Constellation+"Report background color": "#0B1020").Shapes for structure (header band), then charts, each with
layouton a 20 px grid.Card look on charts and scorecards:
{"Background": "#151B33", "Border color": "#151B33", "Border radius": 16}.Human labels: metric
labelinadd_chart,labelsinupdate_component.screenshot_reportafter each section; fix withupdate_component.
CLI reference
Command | Purpose |
| Start the MCP server on stdio (default command) |
| Sign in to Google in the MCP browser profile |
| Check BigQuery credentials and the browser sign-in |
| Write the config without prompts |
Limits
Report tools depend on the Looker Studio editor UI. Selectors are kept in one file (
src/contexts/reports/infrastructure/ui/selectors.ts) and the editor is opened in English (hl=en) regardless of the account language, but a Looker Studio redesign can break them.One editor action per page visit: each tool call takes a few seconds.
Time series need a date or date-time dimension with a sensible granularity; a raw timestamp gives "Too many rows". Add a
DATE(...)column in a view.Field chips are matched by their display name, so rename fields (
labels) after the setup that refers to them.add_pageappends after the last page.manage_filteredit rewrites every clause of the filter; charts that use it keep it.Filter values are typed as free text (the editor's value suggestions are turned off), so a value that is not in the data is accepted: check the spelling. "In" takes its values comma separated.
Custom queries: always pass
source_nameand cast columns whose type Looker Studio may guess wrong. The automatic dry run catches unknown columns and syntax errors, not errors that only happen when the query runs (details).PostgreSQL and MySQL were written against the live connector form, but not run end to end against a database: the table list and custom query step after AUTHENTICATE are untested (details).
build_report_linkcannot enable date range or viewer email parameters: the Linking API has no parameter for them.check_reportopens the editor, so it needs edit access, and reads the English messages of Looker Studio.Community visualizations define their own Setup slots and Style settings: use
describe_componentto read them.add_community_vizaccepts the gallery's consent prompt for you.share_reportopens a visible Chrome window for a few seconds: Google refuses invitations sent from a headless browser. It sends one invitation per address, since a batch fails with "An unknown error occurred".set_link_sharing,schedule_deliveryandremove_deliveryalso open a visible window: Google refuses link changes and schedules from a headless browser.copy_reportcopies only the data sources a component uses (an unused one is dropped, and a report with no chart loses its data). Any of them can be swapped for a reusable data source of the account (reusable); only embedded ones can be reconnected to a new table or query, since a reusable one is shared with other reports. To swap in a source that is still embedded somewhere, make it reusable first (update_data_sourcewithmake_reusable: true); reusable data sources live in the account's Data sources list until deleted there. Looker Studio names the copy in the account language; the tool renames it.schedule_delivery: one schedule per report and account, and the signed-in account is always a recipient (its chip cannot be removed). The dialog has no subject or message. Times are half-hour slots. The time zone is not a field of the dialog: a new schedule takes the browser's, and keeps it.time_zoneopens the window in that zone and recreates an existing schedule (options not passed go back to their defaults); Looker Studio shows its own name for the zone, chosen by the current offset (America/Bogota is saved as "Eastern Time - Indianapolis", which observes daylight saving time). Weekly and monthly repeat on the weekday of the start date; custom repeats takeweekdaysfor weeks andmonthly_onfor months.filtersset the Filters tab: the report's filter controls by page (drop-downs and lists by value, input boxes, date range controls); a single-select control on a field with one value cannot hold it.list_deliveriesshows the schedule of one report: Looker Studio has no list of every schedule.list_versions: the current version is the live draft, so edits within a few minutes are grouped into it; indexes shift after every save, so calllist_versionsright beforerestore_version.get_embed_codereturns the URL on the host the account uses (some accounts still getdatastudio.google.com). "Public" link sharing can be turned off by a Google Workspace admin; the tool then fails with that message.
Architecture
DDD with bounded contexts:
src/contexts/authentication Google token provider, browser session (Playwright profile)
src/contexts/google-api Authenticated REST client with retries
src/contexts/bigquery Datasets, tables, read-only queries, views
src/contexts/reports Report model + use cases; UI adapter driving the editor
src/mcp Tool schemas, handlers, registry (writes gated)
src/shared-kernel Config, logging, audit, errors, writes gate
src/cli serve, login, auth, initDependency rules are enforced by npm run check:deps. See AGENTS.md.
License
MIT
Available Tools
11 toolsbuild_report_linkBuild a report linkARead-only
Build a Looker Studio Linking API URL that creates a report (blank or copied from a template) connected to BigQuery tables. The user opens it to confirm.
Inputs: sources (required), report_name (required), template_report_id.
check_authCheck authenticationARead-only
Check the Google API credentials (BigQuery) and the signed-in Looker Studio browser profile. Use first when other tools fail with auth errors.
Inputs: no named parameters.
describe_componentDescribe a componentARead-only
Show every Setup and Style setting of one component with its exact label and current value. Use it to learn the labels update_component and the style options accept.
Inputs: index (required), report_id (required), page.
describe_tableDescribe a table or viewARead-only
Show the fields of a table or view, its row count and, for views, the SQL.
Inputs: table_id (required), dataset_id (required), project_id.
list_componentsList page componentsARead-only
List the charts, texts and shapes of a report page with their index, kind and layout (x, y, width, height in px). Indexes go back to front; other component tools take them.
Inputs: report_id (required), page.
list_datasetsList BigQuery datasetsCRead-only
List the BigQuery datasets of a Google Cloud project.
Inputs: project_id.
list_report_pagesList report pagesCRead-only
List the pages of a Looker Studio report.
Inputs: report_id (required).
list_reportsList Looker Studio reportsBRead-only
List the Looker Studio reports of the signed-in account, optionally filtered by name.
Inputs: query.
list_tablesList tables and viewsBRead-only
List the tables and views of a BigQuery dataset.
Inputs: dataset_id (required), project_id.
run_queryRun a read-only queryARead-only
Run one SELECT in GoogleSQL and return the rows as a table. Writes are refused. Use dry_run to check a query and how many bytes it scans before running it.
Inputs: sql (required), dry_run, max_rows, project_id.
screenshot_reportScreenshot a reportARead-only
Take a PNG of a report page in view mode, to check charts after editing.
Inputs: report_id (required), page.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 11 tools
Each tool targets a distinct resource+action: BigQuery querying (run_query, list_datasets, list_tables, describe_table) versus Looker Studio browsing (list_reports, list_report_pages, list_components, describe_component, screenshot_report), plus auth and link building. The parallel list/describe hierarchies are clearly separated by domain and no two tools overlap in purpose.
All names use a consistent snake_case verb_noun pattern (list_reports, describe_component, run_query, build_report_link, check_auth). There are no mixed conventions or vague verbs, making the naming highly predictable.
11 tools is well within the ideal range and each earns its place: reading BigQuery, reading reports/pages/components, auth checks, and link building. Nothing feels redundant or padded.
The surface is read-only yet descriptions reference editing operations that do not exist: describe_component tells you to learn the labels 'update_component' accepts, list_components says 'other component tools take' indexes, and screenshot_report is 'to check charts after editing'. Agents will hit dead ends because the referenced write/edit tools (e.g. update_component, add_component) are absent.
Maintenance
Related MCP Connectors
Connect an AI assistant to your Google Sheets, Drive, Docs, PDFs, BigQuery and Gmail.
Read-only Google Search Console and Google Analytics for AI agents.
SEO & marketing toolkit for AI agents: GA4, Search Console, AdSense, GTM, PageSpeed, Trends.
- AdCopilotDeprecatedcloud.adcopilot
Google Ads, GA4, Search Console and Tag Manager for AI assistants. Every change is proposed first.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI assistants to query Google Analytics accounts, properties, and run reports using natural language through the Admin and Data APIs.62Apache 2.0
- AlicenseNot gradedqualityDmaintenanceEnables LLMs to explore BigQuery datasets and tables, run safe read-only queries, and optionally perform vector search using BigQuery embeddings.102 PyPI10MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to query and analyze Google BigQuery data, including schema browsing, running queries, and comparing datasets through natural language.MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to query trusted BigQuery analytics using curated Business Intelligence tools, providing secure, accurate business metrics and KPIs through natural language.MIT