Power BI Report MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MCP_TOOLS | No | Optional. Controls tool loading mode. Set to "minimal" to load only the 12 default tools at startup (saves ~7,500 catalog tokens; remaining tools activate on demand via pbir_load_tools). "all" is a legacy alias for the default load-all mode (56 tools). Defaults to loading all tools. | |
| PBIR_REPORT_PATH | No | Optional. Auto-binds a .Report folder at startup instead of calling pbir_set_report (e.g. PBIR_REPORT_PATH=evals/fixtures/sample.Report). If the path is invalid the server logs to stderr and continues running unbound. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| resources | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| pbir_set_reportA | Connect to a different Power BI report (.Report folder or parent .pbip project folder). Use this to switch reports mid-session without restarting the server. |
| pbir_get_reportA | Show the currently connected report path. Includes |
| pbir_list_pagesA | List pages (paginated). Slim default returns id/displayName/width/height/visualCount/isActive/hidden; slim:false adds displayOption. includeVisuals:true (or pageId) embeds per-visual summaries. Top-level |
| pbir_create_pageB | Create a new page in the report. Supports standard, tooltip, and drillthrough page types. |
| pbir_rename_pageA | Rename an existing page's display name. Does not change its internal page ID, or any bookmarks/navigation targets that reference it by ID. |
| pbir_delete_pageA | Permanently delete a page and every visual on it. Irreversible once written to disk — there's no undo. |
| pbir_reorder_pagesA | Set the page order. |
| pbir_set_active_pageA | Set which page opens by default when the report is first loaded in Power BI Desktop or the Service. |
| pbir_set_page_visibilityA | Show or hide a page in the navigation pane. Hidden pages still work for drillthrough. |
| pbir_get_report_settingsA | Get the report-level settings and theme configuration |
| pbir_update_report_settingsB | Merge report-level settings. Keys: useStylableVisualContainerHeader, useEnhancedTooltips, exportDataMode (0|1), persistentFilters, keyboardNavigationEnabled, defaultDrillFilterOtherVisuals, allowChangeFilterTypes, useDefaultAggregateDisplayName. |
| pbir_update_page_sizeA | Update the page's width/height and/or displayOption. Does NOT reposition or resize the visuals already on it — they keep their x/y/width/height, so shrinking the page can push them outside the new canvas. |
| pbir_auto_layoutA | Auto-arrange EXISTING visuals already on a page into a simple equal-size grid (evenly split by rows/cols/padding). Use this to tidy up visuals that are already placed. To PLAN AND CREATE new visuals in a precise grid (per-cell spans, bindings, validated margins/gaps) use |
| pbir_duplicate_pageA | Duplicate an entire page with all its visuals to a new page |
| pbir_reload_reportA | Reload the report in Power BI Desktop by closing and reopening the .pbip file. SAFETY: closes PBIDesktop.exe, so any unsaved work in Desktop (including modeling-MCP measures/relationships not yet flushed by Desktop autosave) is LOST. Requires confirm:true to proceed — otherwise returns a save-first warning for the agent to relay to the user. |
| pbir_set_filter_paneB | Show or hide the filter pane. |
| pbir_manage_extension_measuresA | Manage extension measures (report-level DAX in reportExtensions.json). Empty file crashes PBI Desktop — tool auto-deletes when empty. |
| pbir_set_page_backgroundB | Set the page canvas background and/or wallpaper. Hex color (#0D1117). Transparency 0-100. |
| pbir_set_visual_interactionA | Set cross-filter interaction (Filter/Highlight/NoFilter) from source visual to target visual. |
| pbir_get_visual_typesA | List available visual types. Default returns slim type list (~150 tokens). Pass verbose:true for per-type data-role bucket metadata (~1,200 tokens). |
| pbir_list_custom_visualsA | List custom visuals (AppSource/organizational, e.g. 'htmlContent<32-hex-guid>') actually registered/installed in the connected report. Only these visualTypes can be safely used by pbir_add_visual / pbir_change_visual_type — anything else fails to render in Desktop even though the PBIR JSON is valid. |
| pbir_list_visualsA | List visuals on a page (paginated). Default slim returns id/type/x/y/w/h/title. slim:false includes filterCount. Use limit/offset to page through large pages. Use |
| pbir_get_visualA | Get visual details. Default returns id/type/position/title/bindings summary. verbose:true returns full PBIR JSON. |
| pbir_add_visualA | Add visuals to a page via |
| pbir_delete_visualA | Permanently delete one visual from a page. Irreversible. To remove several at once, use |
| pbir_move_visualA | Move, resize, and/or change the stacking (z) order of a visual on a page. x/y/width/height/z are all optional — only the ones you pass are changed. |
| pbir_duplicate_visualB | Duplicate an existing visual, optionally to a different page or position |
| pbir_change_visual_typeA | Change the visual type of an existing visual (e.g. barChart to columnChart) while keeping data bindings |
| pbir_set_visual_titleB | Set or update the title of a visual. Can set text, visibility, font, size, alignment. |
| pbir_format_visualA | Format visual properties. Auto-routes title/background/border/padding/dropShadow/visualHeader to container, others to visual; override with target='visual'|'container'. Call |
| pbir_set_datapoint_colorsA | Set data point colors. Series-based charts use metadata mode. Category-based (no Series) requires categoryEntity+categoryProperty. |
| pbir_set_conditional_formatB | Apply conditional formatting to a visual container background or title font. formatType: rules / gradient / clear. ComparisonKind: 0=Eq,1=GT,2=GTE,3=LT,4=LTE,5=NEq. |
| pbir_apply_themeB | Apply a named theme preset to all visuals on a page. Themes: dark, light, corporate, blue-purple. |
| pbir_set_visual_sortA | Set the sort order of a visual. Overrides the auto-sort. Use Table[Column] for field refs. |
| pbir_update_visual_bindingsA | Update the data bindings of an existing visual. Replaces the query state entirely. Supports Table[Column] shorthand: use { "field": "Sales[Net Price]", "type": "measure" } as an alternative to separate entity/property fields. |
| pbir_set_report_themeC | Apply a custom JSON theme. Hex colors. dataColors 6-12 values. visualStyles keyed by visualType or '*'. |
| pbir_get_report_themeA | Get the currently applied theme. Returns base theme name + custom theme JSON if any. |
| pbir_remove_report_themeA | Remove the custom theme from the report, reverting to the default base theme. The theme file is kept in StaticResources but unlinked from report.json. |
| pbir_diff_report_themeA | Compare a proposed theme JSON against the currently applied theme and return what would be added, removed, or changed. Useful for previewing theme changes before applying. |
| pbir_list_report_themesA | List all theme files stored in the report's StaticResources/RegisteredResources/ folder. |
| pbir_audit_theme_complianceA | Audit visuals on a page for theme overrides. Returns summary header + topN findings (default 20). topN:0 = all. |
| pbir_list_filtersA | List filters on a page or visual. Slim mode (default) returns Table[Column] strings. |
| pbir_add_page_filterA | Add a filter to a page or visual. Omit visualId for page-level. topN requires visualId. Types: categorical / topN / relativeDate / advanced (Equals, GreaterThan, Contains, IsBlank, etc; supports And/Or compounds). |
| pbir_remove_filterA | Remove a specific filter by name from a page or visual. |
| pbir_clear_filtersA | Remove ALL filters from a page or a specific visual. |
| pbir_bulk_delete_visualsB | Delete multiple visuals from a page. Set confirmBulk:true when >5. |
| pbir_bulk_update_formatA | Apply the same formatting to multiple visuals. target='container' (title/background/border) or 'visual' (axes/legend/labels). Set confirmBulk:true when >5. |
| pbir_bulk_bindA | Rebind multiple visuals in one call. Replaces existing bindings. Set confirmBulk:true when >5. continueOnError:true validates per-entry — bad bindings don't abort the batch. |
| pbir_list_bookmarksA | List all bookmarks defined in the report. |
| pbir_add_bookmarkA | Create a new bookmark. The bookmark is created with an empty exploration state — open Power BI Desktop to capture the current view state into it. |
| pbir_delete_bookmarkA | Delete a bookmark by ID. |
| pbir_rename_bookmarkB | Rename an existing bookmark. |
| pbir_guideA | Domain knowledge for Power BI report development. Topics discovered live from skills/*.md — call with topic:'list' to enumerate. |
| pbir_layout_gridA | Compute a deterministic rows×cols grid; server owns margin/gap/remainder math. Use this INSTEAD of N pbir_add_visual calls when building NEW visuals from scratch with precise per-cell spans and bindings. planOnly:true (default) returns the plan; planOnly:false validates bindings+layout then writes in one call. See guide('wireframes') for grid-shape selection. To re-arrange visuals that already exist on the page instead, use |
| pbir_validate_wireframeA | Validate a page's (or the whole report's) layout against the wireframe rules — margins, gaps, overlap, off-canvas, banner geometry. Returns errors + warnings per visual plus stats (visual count, coverage, bottom edge). Read-only. Pair with pbir_audit_theme_compliance for full project verification. |
| pbir_lookup_theme_propertyA | Query the bundled Power BI theme schema for valid visualStyles property names. No args = list visual types; +visualType = list categories; +category = list properties with types/enums. |
| pbir_model_usageA | Cross-reference the semantic model with the report — shows where every measure and column is used, DAX dependencies, unused fields, and per-page coverage. Also generates an HTML dashboard for visual inspection. Requires a sibling |
| pbir_load_toolsA | List on-demand tools (no args) or activate by name (pass |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| pbir-instructions | |
| pbir-skill-calculations | |
| pbir-skill-elicitation | |
| pbir-skill-errors | |
| pbir-skill-filters | |
| pbir-skill-formatting | |
| pbir-skill-pages | |
| pbir-skill-post-edit-checklist | |
| pbir-skill-report-design | |
| pbir-skill-report | |
| pbir-skill-shapes | |
| pbir-skill-slicers | |
| pbir-skill-svg-visuals | |
| pbir-skill-themes-per-visual | |
| pbir-skill-themes | |
| pbir-skill-token-usage | |
| pbir-skill-visuals | |
| pbir-skill-wireframes |
TDQS
Scored across 58 tools
Despite 58 tools, most target clearly distinct resources and actions, and the descriptions actively disambiguate the risky pairs (auto_layout vs layout_grid, clear_filters vs remove_filter, apply_theme vs set_report_theme, format_visual vs set_visual_title). A few real overlaps remain — set_visual_title vs format_visual title routing, and set_datapoint_colors vs set_conditional_format vs format_visual — but descriptions steer correctly in most cases.
The surface is uniformly snake_case with a pbir_ namespace prefix, which makes the family instantly recognizable. A handful of names break the verb_noun pattern (pbir_model_usage, pbir_guide, pbir_auto_layout, pbir_layout_grid) and the bulk_* variants live after the prefix, but overall it reads consistently.
58 tools is far beyond a comfortable single-server surface, even for a complex PBIR editing domain; page, visual, filter, theme, bookmark, layout, and bulk operations each sprawl across many entries. The on-demand pbir_load_tools mechanism is a sensible mitigation, but the advertised count is still heavy enough to strain tool selection.
Coverage is genuinely deep: full page/visual lifecycle, filters, themes with diff/audit/list, bookmarks, formatting, bulk ops, layout validation, and semantic-model cross-referencing. Minor gaps exist — bookmark state capture is deferred to Desktop, and data/measure authoring is delegated to a separate modeling MCP — but agents can work around both.