Back to blog
4 min read

Power UI in your terminal: introducing the Power UI MCP

Style Power BI themes from Claude Code, Cursor, or any terminal MCP client — without leaving your editor.

Power UIMCPClaude CodeCursorPower BI

The studio is great for picking colors and previewing live. But sometimes you've already got a .pbip open in VS Code, you're chatting with an AI agent about your report, and switching to a browser to fiddle with theme JSON breaks flow. What if the agent could just do it — load your theme, change the title font, push the result into the report you're editing?

That's the Power UI MCP.

What it is

@powerui/mcp is an npm package that exposes the Power UI tool surface to any Model Context Protocol client. Your agent can list and load themes from your Power UI account, modify them in plain language, and write the result directly into a .pbip report's RegisteredResources/. It runs locally and authenticates with a personal API key.

A short example

Open Claude Code in a project that contains your .pbip:

claude-code

> Load my Acme theme, change the title font to Inter Display, set the page background to a subtle radial gradient, and inject it into ~/reports/q2-revenue.pbip.

load_theme — "Acme" loaded
set_title_style — font set to Inter Display
set_page_background — radial gradient applied
inject_theme — written to q2-revenue.Report/StaticResources/RegisteredResources/

Reopen the report in Power BI Desktop and the styling is there. No tab switching, no copy-paste, no JSON-by-hand.

What the agent can do

Two scopes — anything you can do in the studio or the in-app AI assistant is now available to your local agent.

Account

  • list_themes
  • load_theme
  • save_theme
  • list_palettes
  • create_palette
  • update_palette
  • open_in_studio

Theme styling

  • create_theme
  • modify_theme
  • set_title_style
  • set_effects_style
  • set_visual_property
  • set_page_background
  • inject_theme
  • export_theme

Getting started

Mint an API key from your Power UI settings, drop the standard MCP config snippet into your client, restart, and you're live. Full setup instructions and the complete tool reference are in the MCP docs.

A few honest notes

  • Pro feature. The MCP requires a Power UI Pro plan. Free accounts can still use the studio and the in-app AI assistant.
  • Terminal-based clients only. The MCP runs locally and writes to your filesystem (so inject_theme can patch your .pbip). That works in Claude Code and Cursor; the Claude Desktop app does not have the project access this needs.
  • Power BI Desktop holds open files. Close the report before injecting, then reopen — Desktop will overwrite from its in-memory cache otherwise.

What's next

We'll be watching how people actually use this and tightening the tool surface around what matters. If you build something cool with it, or hit a sharp edge, we want to hear.

Ready to try it?

Mint a key, paste the config, and your agent is live in under two minutes.