PowerBI MCP Server

v0.1.2
io.github.gurvinder-dhillon/powerbi-mcp Checked 2 days ago Published 10 months ago

PowerBI REST API integration.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_workspaces

Get list of PowerBI workspaces (also called groups) accessible to the service principal. This tool retrieves all workspaces that the configured service principal has access to. Workspaces are containers for dashboards, reports, datasets, and dataflows in PowerBI. Use this when you need to: - Discover available workspaces - Find a workspace ID for further operations - List all accessible PowerBI workspaces Parameters: - top (optional): Maximum number of workspaces to return (1-5000, for pagination) - skip (optio…

ParameterTypeDescription
detailstring
formatstring
skip
top

get_reports

Get PowerBI reports from a workspace. Returns report information including: - Report name and ID - Web URL for viewing - Embed URL for embedding - Associated dataset ID Useful for discovering available reports and getting report URLs. Parameters: - workspace_id (optional): Workspace ID. Omit to get reports from "My workspace" - format: Response format - "json" or "markdown" (default: "markdown") - detail: Detail level - "concise" or "detailed" (default: "concise") Returns: List of repor…

ParameterTypeDescription
detailstring
formatstring
workspace_id

get_datasets

Get list of datasets from a specific workspace or My workspace. Datasets in PowerBI contain the data model, including tables, columns, relationships, and measures. This tool retrieves all datasets accessible in the specified workspace. Use this when you need to: - List all datasets in a workspace - Find a dataset ID for querying - Discover available data sources - Check dataset refresh status and configuration Parameters: - workspace_id (optional): Workspace (group) ID. If not provided, returns datasets from "M…

ParameterTypeDescription
detailstring
formatstring
workspace_id

get_dataset

Get detailed information about a specific dataset. Retrieves comprehensive metadata about a PowerBI dataset including configuration, refresh settings, and data source information. Use this when you need to: - Get detailed metadata about a specific dataset - Check dataset configuration and capabilities - Verify dataset refresh settings - Understand dataset storage mode and requirements Parameters: - dataset_id (required): The unique identifier of the dataset - workspace_id (optional): Workspace (group) I…

ParameterTypeDescription
dataset_id *string
formatstring
workspace_id

get_refresh_history

Get refresh history for a PowerBI dataset. Shows recent refresh operations including: - Status (Completed, Failed, Unknown) - Start and end times - Request ID and refresh type - Error messages (for failed refreshes) Useful for monitoring data freshness and troubleshooting refresh failures. Parameters: - dataset_id (required): The dataset ID - workspace_id (optional): Workspace ID. Omit for datasets in "My workspace" - top: Number of refresh records to return (default: 5, max: 60) - format: Respo…

ParameterTypeDescription
dataset_id *string
formatstring
topinteger
workspace_id

get_parameters

Get parameters defined in a PowerBI dataset. Returns parameter definitions including: - Name and data type - Current value - Whether parameter is required - Suggested values (if defined) Useful for discovering available parameters before querying parameterized datasets. Note: Not supported for datasets with SQL, Oracle, Teradata, SAP HANA DirectQuery connections or datasets modified via XMLA endpoint. Parameters: - dataset_id (required): The dataset ID - workspace_id (optional): Workspace ID. O…

ParameterTypeDescription
dataset_id *string
detailstring
formatstring
workspace_id

query_dataset

Execute DAX (Data Analysis Expressions) queries against a PowerBI dataset. This tool allows you to query dataset tables using DAX, PowerBI's formula language. DAX queries can retrieve data, perform calculations, and apply filters. Use this when you need to: - Retrieve data from dataset tables - Perform calculations and aggregations - Filter and analyze dataset data - Get specific rows or aggregated results DAX Query Syntax: - Basic table query: EVALUATE TableName - Filtered query: EVALUATE FILTER(TableN…

ParameterTypeDescription
dataset_id *string
dax_query *string
formatstring
workspace_id