Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The remote Power BI MCP server enables AI agents to query Power BI semantic models using natural language. Through the Model Context Protocol (MCP), AI assistants can retrieve model schemas, generate DAX queries, and execute queries to deliver insights from your data.
This article shows you how to:
- Connect to the remote Power BI MCP server in Visual Studio Code
- Connect GitHub Copilot to your Power BI semantic models
- Validate the connection with test queries
Note
Not all MCP clients support remote endpoints. Verify that your MCP client supports HTTP-based MCP servers before proceeding.
Tip
Advanced scenario: For custom agents using Service Principal authentication, see:
Prerequisites
Before you begin, ensure you have:
- Administrator approval - Your Power BI admin must enable the tenant setting: "Users can use the Power BI Model Context Protocol server endpoint (preview)"
- Visual Studio Code - Download VS Code
- GitHub Copilot - Enable GitHub Copilot in VS Code
- Semantic model access - Build permissions on at least one Power BI semantic model
- (Recommended) Optimized models - Prepare your semantic models for AI to improve query generation quality
Set up the remote Power BI MCP server in VS Code
The remote Power BI MCP server is available at:
https://api.fabric.microsoft.com/v1/mcp/powerbi
Quick installation (recommended)
The easiest way to configure the server is using the one-click installer:
This automatically configures the MCP server in your VS Code settings.
Manual installation
To manually configure the server, add the following to your MCP configuration file:
{
"servers": {
"powerbi-remote": {
"type": "http",
"url": "https://api.fabric.microsoft.com/v1/mcp/powerbi"
}
}
}
Learn more: MCP servers in VS Code
Test your connection
Once configured, verify the setup is working:
Start the MCP server in VS Code
- Open the MCP servers panel
- Ensure the Power BI MCP server shows as connected
Open GitHub Copilot
- Launch the chat window in VS Code
- Enable agent mode
Provide your semantic model ID
- Get your semantic model ID from the Power BI service (see Find your semantic model ID)
- Share the ID with Copilot in your conversation
Ask a question
- Example: "What tables are in this semantic model?"
- Example: "Show me the top 10 products by sales"
Authorize the tool
- When prompted, allow Copilot to use the MCP server tool
- Authenticate with your Microsoft credentials if requested
Review the response
- Copilot will query your model and return results
Tip
For best query results, prepare your semantic models for AI by adding AI instructions and verified answers.
Troubleshooting: Manage MCP servers in VS Code
Next steps
Now that your MCP server is configured, explore the available tools and capabilities: