Power BI MCP Server

Power BI MCP Server

power-bi-mcp-server•bymichaelmckinleyconsulting

A Model Context Protocol server that lets AI assistants work with Power BI workspaces, datasets, reports, and dashboards programmatically.

License: Not specified•Runtime: Awaiting documentation review•Category: databases storage

WHAT IT DOES

  • •Manages Power BI workspaces, including listing workspaces and adding or removing users.
  • •Handles report operations such as accessing, cloning, exporting (PDF, PPTX, PNG), and rebinding to different datasets.
  • •Manages datasets by executing DAX queries, triggering refreshes, managing refresh schedules, and retrieving refresh history.
  • •Supports dashboards and push datasets, including creating push datasets, adding rows, and clearing table data.

BEST FOR

  • •Running DAX queries against Power BI datasets through an AI assistant.
  • •Exporting Power BI reports to formats such as PDF or PowerPoint.
  • •Refreshing datasets and reviewing refresh history.

ABOUT POWER-BI-MCP-SERVER

Power BI MCP Server is cataloged as an MCP server attributed to michaelmckinleyconsulting. A Model Context Protocol server that lets AI assistants work with Power BI workspaces, datasets, reports, and dashboards programmatically. It is categorized under databases storage. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Power BI MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

How does the server authenticate with Power BI?

It supports interactive sign-in via browser using Authorization Code flow with PKCE, or app-only client credentials requiring admin consent.

Can the server be used for commercial purposes?

Non-commercial use is free, but commercial use requires a separate commercial license.

Upstream README

View this exact version on GitHub

README.md · dc2992fa02fe · Fetched 2026-11-13 11:34:54 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

Power BI MCP Server

A Model Context Protocol (MCP) server that enables AI assistants to interact with Power BI workspaces, datasets, reports, and dashboards programmatically.

🚀 Features

  • Workspace Management: List and manage Power BI workspaces
  • Report Operations: Access, clone, export, and rebind reports
  • Dataset Management: Execute DAX queries, refresh datasets, manage schedules
  • Dashboard Access: List and interact with dashboards
  • Push Datasets: Create and manage push datasets with real-time data
  • Authentication: Secure OAuth2 authentication with Microsoft Entra ID

📋 Prerequisites

  • Node.js (v18 or higher)
  • npm or yarn
  • Power BI Pro or Premium license
  • Microsoft Entra ID app registration
  • MCP-compatible AI assistant (Claude Desktop, etc.)

🔧 Installation

  1. Clone the repository:
git clone https://github.com/michaelmckinleyconsulting/powerbi-mcp-server.git
cd powerbi-mcp-server
  1. Install dependencies:
npm install
  1. Build the project:
npm run build

⚙️ Configuration

1. Microsoft Entra ID Setup

  1. Register an application in Azure Portal
  2. Configure API permissions for Power BI Service
  3. Note your:
    • Client ID
    • Tenant ID
    • Client Secret (if using app-only auth)

2. Environment Variables

Create a .env file in the root directory (see .env.example for template):

PBI_PUBLIC_CLIENT_ID=your_client_id
PBI_TENANT_ID=your_tenant_id  # Optional, defaults to 'common'
PBI_SCOPES=https://analysis.windows.net/powerbi/api/.default  # Optional, or specify custom scopes

Note: This server uses Authorization Code flow with PKCE (no client secret required). Configure your Azure app with redirect URIs:

  • http://localhost
  • http://127.0.0.1

3. MCP Configuration

Add to your MCP client configuration:

Claude Desktop

{
  "mcpServers": {
    "powerbi": {
      "command": "node",
      "args": ["path/to/powerbi-mcp-server/dist/index.js"],
      "env": {
        "PBI_PUBLIC_CLIENT_ID": "your_client_id",
        "PBI_TENANT_ID": "your_tenant_id"
      }
    }
  }
}

VS Code MCP Extension

{
  "mcp.servers": {
    "powerbi": {
      "command": "node",
      "args": ["path/to/powerbi-mcp-server/dist/index.js"],
      "transport": "stdio",
      "env": {
        "PBI_PUBLIC_CLIENT_ID": "your_client_id"
      }
    }
  }
}

📖 Usage

Basic Operations

Once configured, your AI assistant can:

  • List workspaces: "Show me all my Power BI workspaces"
  • Execute DAX: "Run a DAX query to get sales by region"
  • Export reports: "Export the quarterly report to PDF"
  • Refresh datasets: "Refresh the sales dataset"
  • Manage access: "Add user@example.com to the Analytics workspace"

Example Prompts

"List all reports in my Sales workspace"
"Execute this DAX query against the Finance dataset: EVALUATE SUMMARIZE(...)"
"Export the Monthly KPI report to PowerPoint"
"Show me the refresh history for the Customer dataset"
"Create a push dataset for real-time monitoring"

🔐 Authentication

The server supports two authentication methods:

  1. Interactive (Recommended): User signs in via browser
  2. App-Only: Uses client credentials (requires admin consent)

On first run, the server will prompt for authentication via your default browser.

📁 Project Structure

powerbi-mcp-server/
├── src/
│   ├── index.ts           # Main server entry point
│   ├── auth/              # Authentication logic
│   ├── handlers/          # Request handlers
│   ├── types/             # TypeScript definitions
│   └── utils/             # Utility functions
├── dist/                  # Compiled JavaScript (git-ignored)
├── package.json
├── tsconfig.json
└── README.md

🛠️ Development

Running in Development Mode

npm run dev

Running Tests

npm test

Building for Production

npm run build

📊 Supported Power BI Operations

Workspaces (Groups)

  • List workspaces
  • Get workspace users
  • Add/remove users

Reports

  • List reports
  • Get report metadata
  • Clone reports
  • Export to various formats (PDF, PPTX, PNG)
  • Rebind to different datasets

Datasets

  • List datasets
  • Execute DAX queries
  • Trigger refreshes
  • Manage refresh schedules
  • Get refresh history

Dashboards

  • List dashboards
  • Get dashboard tiles

Push Datasets

  • Create push datasets
  • Add rows to tables
  • Clear table data

🔧 Troubleshooting

Common Issues

  1. Authentication fails: Ensure your Azure app registration has proper Power BI permissions
  2. No workspaces found: Verify your account has access to Power BI workspaces
  3. DAX queries fail: Check dataset permissions and query syntax
  4. Export timeouts: Large reports may take time; the server handles async polling

Debug Mode

Enable verbose logging:

DEBUG=powerbi:* node dist/index.js

📄 License

This project is source-available under a Modified MIT License with Commons Clause - see the LICENSE file for details.

Non-Commercial Use: Free for personal, educational, and internal company use.

Commercial Use: Requires a separate commercial license. Contact [michael@mckinley.consulting] for commercial licensing.

This is not OSI-approved "open source" due to the commercial restrictions, but allows full community use for non-commercial purposes.

🤝 Contributing

We welcome contributions! Please note:

  1. By contributing, you agree that your contributions will be licensed under the same license
  2. For substantial changes, please open an issue first to discuss
  3. Ensure all tests pass and add tests for new features

💬 Support

🙏 Acknowledgments

  • Built on the Model Context Protocol specification
  • Uses Microsoft Power BI REST APIs
  • Inspired by the MCP community

Note: This is not an official Microsoft product. Power BI is a trademark of Microsoft Corporation.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Power BI MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/power-bi-mcp-server)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related databases storage MCP Servers

Alternative and complementary servers in the same category

View all in databases storage →
AIStor MCP server
mcp-server-aistor•minio

This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

Repository stats unavailable
Databases & Storage
InfluxDB v2 MCP Server
influxdb-mcp-server•idoru

A Model Context Protocol (MCP) server that exposes access to an InfluxDB v2 instance using the InfluxDB OSS API v2.

Repository stats unavailable
Databases & Storage