Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello,
I installed the extension of Power BI MCP in vs code . when I try to connect to my open report always receive strange answers.
so is there anything wrong ?
Thank you
Solved! Go to Solution.
Hi @ahmedshalabyy12,
Based on your description that the Power BI MCP server extension isn't functioning correctly in VS Code.
So you need to:
Or add this JSON in your VS Code setting
{
"mcp.servers": {
"powerbi": {
"command": "node",
"args": [
"C:/Users/[YourUsername]/.vscode/extensions/powerbi-extension-path/mcp-server.js"
]
}
}
}
And if you want it for SSMS you should:
Or you can just use PowerShell (Temporary)
# Connect directly via PowerShell
$server = "localhost:51345"
$query = "EVALUATE 'YourTableName'"
Invoke-ASCmd -Server $server -Query $query
Hi @ahmedshalabyy12,
Based on the Microsoft Learn resources the MCP technology for Power BI is still evolving and can be unstable You can try:
Close both VS Code and Power BI Desktop completely
Open Power BI Desktop first - wait until fully loaded
Open your .pbix file - ensure it's completely loaded
Open VS Code
Run Command Palette: MCP: Reset Cached Tools
Retry your Power BI connection
Also make sure to note the Power BI Port From:
Power BI Desktop go to Help → About Power BI Desktop
Note the Local Analysis Services port number
Test-NetConnection localhost -Port 51345
You can check this resource also:
Thank you @Ahmed-Elfeel
I did what you said, but the problem it keeps ignoring my commands and asks me to open the report via SSMS, tabular editor, or PowerShell
Hi @ahmedshalabyy12,
Based on your description that the Power BI MCP server extension isn't functioning correctly in VS Code.
So you need to:
Or add this JSON in your VS Code setting
{
"mcp.servers": {
"powerbi": {
"command": "node",
"args": [
"C:/Users/[YourUsername]/.vscode/extensions/powerbi-extension-path/mcp-server.js"
]
}
}
}
And if you want it for SSMS you should:
Or you can just use PowerShell (Temporary)
# Connect directly via PowerShell
$server = "localhost:51345"
$query = "EVALUATE 'YourTableName'"
Invoke-ASCmd -Server $server -Query $query
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 41 | |
| 38 | |
| 36 | |
| 31 | |
| 28 |
| User | Count |
|---|---|
| 128 | |
| 88 | |
| 79 | |
| 68 | |
| 63 |