Local companion · runs on your machine · coming soon to npm

The design agent for Power BI, on your machine

Power BI projects (.pbip) are folders of JSON on your disk, and the hosted MCP server can't reach them. The VizForge companion runs the same design engine as the free Brand Makeover and Design Check locally: score a report, apply a brand from a theme, PowerPoint template, colours or logo, and get a new project folder you open in Power BI Desktop. Your AI assistant gets the same tools through a local MCP server.

Install

Coming soon

Audit, rebrand and re-lay out Power BI projects (PBIP) from the terminal, and give Claude, Cursor or VS Code a local MCP server that works on the files in your repo. Runs on your machine; nothing is uploaded. The companion is built and tested, and it isn't on npm yet. This block will show the one-line install the day it is published.

Until then, with access to the VizForge source repository: build from source
git clone https://github.com/nawafshrf/vizforge.git
cd vizforge
npm ci
npm run cli:build
node packages/cli/dist/vizforge.mjs init --dry-run

The free browser tools do the same work today: the Brand Makeover, Design Check and the hosted MCP server.

What init changes, and how to undo it

init only writes the files below, only for the AI clients it finds (add --client to choose), and copies each existing file to <file>.vizforge-backup before its first change. --dry-run prints the list and writes nothing. Running init again changes nothing; uninstall removes only entries init recognises as its own.

Claude Code.mcp.json in the folder you run it in (a “vizforge” entry under mcpServers)Undo: uninstall removes the entry
Claude Desktopclaude_desktop_config.json (macOS ~/Library/Application Support/Claude, Windows %APPDATA%\Claude, Linux ~/.config/Claude)Undo: uninstall removes the entry
Cursor~/.cursor/mcp.jsonUndo: uninstall removes the entry
VS Code (Copilot).vscode/mcp.json in the folder you run it in (a “vizforge” entry under servers)Undo: uninstall removes the entry
Agent rulesAGENTS.md in the folder you run it in, between <!-- vizforge:begin --> and <!-- vizforge:end --> (--rules claude,copilot also adds it to CLAUDE.md or .github/copilot-instructions.md)Undo: uninstall removes the block; your own text stays
Power BI Desktop External Tool (Windows)VizForge.pbitool.json in C:\Program Files (x86)\Common Files\Microsoft Shared\Power BI Desktop\External Tools (needs admin rights; if refused, init prints the copy command)Undo: uninstall deletes the file

Commands

vizforge init [--dry-run]

Registers the local MCP server with the AI clients it finds, installs the Power BI Desktop External Tool (Windows) and adds an agent rules block to AGENTS.md. Backs up every file before changing it; running it twice changes nothing.

vizforge uninstall

Removes exactly what init added. The backups stay.

vizforge audit <pbip-folder> [--json] [--min-score N]

Design Check and readability findings for every page. Exit code 1 when a page scores below --min-score, for CI.

vizforge brand <pbip-folder> --theme | --pptx | --colors | --logo [--preset P]

The Brand Makeover into a new folder next to the project. Stops, and writes nothing, if a field binding, query, filter, bookmark or the semantic model would change.

vizforge relayout <pbip-folder> [--preset P]

The same layout engine, keeping the report's own theme colours.

vizforge theme --colors "#0B5394,#F1C232" > theme.json

A contrast-checked Power BI theme JSON from colours, a PowerPoint template, a theme file or a PNG logo.

vizforge template get <slug> --out <dir>

A free template as a PBIP project with its sample semantic model (template list searches them).

vizforge svg <pattern> --set value=[Sales]

A DAX measure that draws an SVG chart in a table or card.

vizforge mcp

The local MCP server (stdio) that init registers. Your AI client starts it; you don't run it yourself.

vizforge open [pbip-folder]

What the External Tools ribbon button runs: zips the project on this PC and opens the browser Brand Makeover.

Presets: executive, analyst, operational, board and accessible, the same as the browser makeover. Exit codes: 0 ok, 1 audit below --min-score, 2 bad input, 3 the integrity gate stopped a makeover, 4 refused for safety (uncommitted changes, an existing output folder, a path outside the project).

The local MCP server

init registers vizforge mcp as a stdio server. Its tools take paths to files in the folder your AI client is working in; a path outside it (including through a symlink) is refused unless you start the server with --allow-path. Results are short summaries plus the paths written.

  • audit_report — Scores every page of a PBIP project (read-only).
  • apply_brand — Brand + layout preset into a new folder, behind the integrity gate.
  • relayout_report — New layout, the report's own colours.
  • generate_theme — Theme JSON from colours, a PowerPoint template, a theme file or a logo.
  • get_template — Search templates; write one as a PBIP project.
  • dax_svg_measure — DAX SVG chart measures (same tool as the hosted server).
  • check_design — Design Check for a VizForge design file.
  • The hosted VizForge MCP server keeps working alongside it for templates, site search and design links; init --remote adds both.
  • With the VIZFORGE_API_KEY environment variable set, the local server also lists the paid AI custom-visual tools and forwards those calls to vizforge.ai with your key (API docs). Without it, nothing leaves your machine.
  • VizForge is the design layer. For the semantic model (tables, measures, relationships, DAX) Microsoft ships the Power BI Modeling MCP server; VizForge never writes the model.

Power BI Desktop

  • On Windows, init adds a VizForge button to the External Tools ribbon by saving a .pbitool.json file in Desktop's External Tools folder, which Desktop loads when it starts. Restart Desktop to see it.
  • Desktop passes an external tool the server, port and name of its local model (%server% and %database%) and nothing about the report. The button looks for the .pbip Desktop was opened with, zips it on your PC and opens the browser Brand Makeover, which reads it inside the tab; if it can't tell which project is open, it shows the command to run instead.
  • Only reports saved in the PBIR format (a definition folder) can be edited outside Desktop. Save in Desktop first; current versions then offer Apply external changes, otherwise close and reopen the .pbip. A makeover written to a new folder is simply a new project to open.

What you can check

  • Runs locally. Needs Node.js 20+; no account; no telemetry.
  • Readable: the package is a single, unminified JavaScript file with no runtime dependencies to install. You can unpack and read it before running anything (npm pack, then open dist/vizforge.mjs).
  • Safe by default: new output folder, integrity gate, in-place only on a clean git tree, paths kept inside the project, a backup of every config file it edits.
  • The Windows helper below is a plain text file at /install.ps1. It checks for Node.js, checks that npm serves the reviewed release (its integrity hash is pinned in the script), then runs the same npx command. Until the release is on npm it stops at the first check and runs nothing.
Show /install.ps1
# VizForge local companion: Windows helper. Read it before you run it.
#
#   irm https://vizforge.ai/install.ps1 | iex
#
# What it does, and nothing else:
#   1. checks that Node.js 20 or newer is installed (it does not install Node.js);
#   2. checks that the npm package is the reviewed VizForge release
#      (its npm integrity hash must equal $Integrity below);
#   3. runs:  npx --yes vizforge@<version> init
#
# It needs no administrator rights and changes nothing itself. `vizforge init`
# lists every file it changes and backs each one up first; undo it with
#   npx vizforge uninstall
# Same command on macOS and Linux: npx vizforge init

$ErrorActionPreference = 'Stop'

$Package   = 'vizforge'
$Version   = '0.1.0'
# npm "dist.integrity" of $Package@$Version. 'UNPUBLISHED' until the release
# is on npm; then the publisher pastes the value here (PUBLISHING.md step 6).
$Integrity = 'UNPUBLISHED'
$NodeMin   = 20

if ($Integrity -eq 'UNPUBLISHED') {
  Write-Host "VizForge's companion is not published on npm yet, so there is nothing to install."
  Write-Host 'See https://vizforge.ai/cli for the release, and the free browser tools you can use today.'
  return
}

$node = Get-Command node -ErrorAction SilentlyContinue
if (-not $node) {
  Write-Host "Node.js $NodeMin or newer is needed. Install the LTS from https://nodejs.org, open a new PowerShell window and run this again."
  return
}
$major = [int]((& node -p 'process.versions.node.split(".")[0]').Trim())
if ($major -lt $NodeMin) {
  Write-Host "Node.js $NodeMin or newer is needed (this PC has $(& node --version)). Update it from https://nodejs.org and run this again."
  return
}

$published = (& npm view "$Package@$Version" dist.integrity 2>$null | Out-String).Trim()
if ($published -ne $Integrity) {
  Write-Host "Stopped: npm's $Package@$Version is not the reviewed VizForge release (integrity mismatch). Nothing was run."
  return
}

Write-Host "Running: npx --yes $Package@$Version init"
& npx --yes "$Package@$Version" init

Questions

Is anything uploaded?
No. Every command reads and writes files on your computer; the CLI sends no analytics. The one exception is optional: if you set VIZFORGE_API_KEY, the local MCP server also offers the paid AI custom-visual tools, and those calls go to vizforge.ai with your key and spend your credits.
Can it break my report?
It writes a new folder next to your project by default. Before anything is written, an integrity gate compares every field binding, query, filter, bookmark and the semantic model with the original and stops if any of them would change. Writing into the project itself (--in-place) is refused unless the folder is in git with no uncommitted changes.
Does it change my data model or DAX?
No. VizForge works on the report layer (pages, visual positions, formatting, theme, backgrounds). For tables, measures and relationships use Microsoft's Power BI Modeling MCP server; the two work side by side.
What does the Power BI Desktop button do?
Desktop passes an external tool only the address and name of its local model, not the report's folder. VizForge's button looks for the .pbip that Desktop was opened with; when it finds it, it zips the project on your PC and opens the free Brand Makeover in your browser, which reads the zip inside the tab. When it can't tell which project is open, it opens the page and shows the one command to run.
How do I remove it?
Run the uninstall command. It removes the MCP entries, the rules block and the External Tool file that init added, and keeps the backups it made.

Prefer the browser? The Brand Makeover, the Design Studio and every free tool run in your browser with nothing uploaded.