PowerBI REST API integration. Query workspaces, datasets, and execute DAX queries via MCP.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent โ or use 1-click editor setup below.
๐ก Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
A Model Context Protocol (MCP) server that provides tools for interacting with PowerBI REST APIs. This server enables AI assistants like Claude to query PowerBI workspaces, datasets, and execute DAX queries.
[!WARNING] Security Best Practices
- Never commit credentials to version control
- Store credentials in
.envfiles (add to.gitignore)- Rotate client secrets regularly in Azure AD
- Use least-privilege access (only grant necessary workspace permissions)
- This server has read/write access to PowerBI datasets - use with caution
See all available tools below.
| Scenario | Example Prompt |
|---|---|
| Explore available data | "What workspaces do I have access to?" |
| Discover reports | "What reports are available in my workspace?" |
| Understand data schema | "Show me the schema for dataset [dataset-name]" |
| Monitor data freshes | "When was this dataset last refreshed?" |
| Check parameters | "What parameters does this dataset accept?" |
| Query data with DAX | "Run a DAX query to get top 10 sales by region from [dataset]" |
| Analyze data quality | "What tables are in the Sales dataset?" |
| Extract insights | "Get the list of all measures in the Financial dataset" |
Before installing the server, you need to set up an Azure AD application with PowerBI access.
After registration, collect these values:
[!NOTE] Service principals can access workspaces where they've been granted explicit permissions (Admin, Member, or Contributor roles).
For each workspace you want to access:
Once published to PyPI, this is the simplest installation method.
Add the following to your MCP client configuration file:
For Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
For Claude Code (./.mcp.json in your project directory):
When using Claude Code, create a .env file in your project directory (where you run Claude Code from):
[!TIP] The
.envfile should be in your working directory, not where the server is installed.
For OpenCode (~/.config/opencode/opencode.json):
After adding the configuration, restart your MCP client.
This method uses uvx to run the server directly from GitHub without cloning the repository.
Add the following to your MCP client configuration file:
For Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
For Claude Code (./.mcp.json in your project directory):
When using Claude Code, create a .env file in your project directory (where you run Claude Code from):
[!TIP] The
.envfile should be in your working directory, not where the server is installed.
The server will automatically load environment variables from the .env file in your current working directory.
For OpenCode (~/.config/opencode/opencode.json):
After adding the configuration, restart your MCP client.
For contributors who want to run from a local clone:
For Claude Desktop:
For Claude Code (./.mcp.json in your project directory):
For OpenCode (~/.config/opencode/opencode.json):
Replace /absolute/path/to/powerbi-mcp with the actual path to your cloned repository.
When using Claude Code or OpenCode, create a .env file in your project directory with your credentials (see Method 1 Claude Code section above for the format).
Once installed, try these steps to get started:
No reviews yet โ be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/powerbi-mcp-server)<a href="https://allmcps.com/mcp/powerbi-mcp-server"><img src="https://allmcps.com/api/badge/powerbi-mcp-server?style=directory" alt="PowerBI MCP Server on AllMCPs" /></a>