Power Platform CLI: Exploring the MCP Server Benefits

I can’t believe I missed it, but the Power Platform CLI has support for the MCP Server, so definitely something you need to explore! Here’s a quick write-up on setting it up, wiring it into VS Code, and using it to analyze a Power Platform solution through prompts.

Installing or updating

If you have installed the PAC CLI without the dotnet tool make sure to uninstall and re-install (or update if you already have it installed) using the following command:

dotnet tool install --global Microsoft.PowerApps.CLI.Tool

Once installed, the MCP server lives within the CLI package, you can find the full path required to register it by running the following command:

pac copilot mcp

The command will return the full command to the executable that you will need later, it will look something like this:

C:\Users\youruser\.dotnet\tools\.store\microsoft.powerapps.cli.tool\1.45.3\microsoft.powerapps.cli.tool\1.45.3\tools\net9.0\any\pac-mcp.exe

Where the username and the version might differ based on your setup. The executable is self contained, no other installation is required.

Setting it up in VSCode

You can use the UI to register the MCP server in VS Code, simply by adding the full path to the executable in the settings, or you can add it using your mcp.json settings file, by adding a a json snippet that contains the following:

{
 "servers": {
  "power-platform": {
   "type": "stdio",
   "command": "C:\\Users\\youruser\\.dotnet\\tools\\.store\\microsoft.powerapps.cli.tool\\1.45.3\\microsoft.powerapps.cli.tool\\1.45.3\\tools\\net9.0\\any\\pac-mcp.exe",
   "args": []
  }
    }
}

Doing so will result in in the following tools being available in VSCode:

VSCode available tools from the pac cli MCP server

Running the MCP server

Once you have registered the MCP server, you can use it, assuming you are already signed in to the Power Platform CLI, and have an auth context. If you are not yet signed in, you can follow along to create an authentication context, or use the MCP server to sign in.

In my case I opted to analyze a specific solution using the MCP server. To do this, I ran the following command:

Can you get the Power Platform Solution 'Agent Demo', export and extract it, and provide recommendations for:
- scalability
- naming conventions
- usability
- Other Agentic AI best practices

Running this command will result in the MCP server recognizing the solution, picking the export and then looping through the files to analyze the solution.

Exporting the solution

And based on the analysis, it will provide you with recommendations for the solution, which you can then use to improve your solution.

Exporting the solution

Now the results are far from perfect, but it does give a great starting point to improve your solution. And the best part is that you can use the MCP server to analyze any solution, so you can use it to analyze your own solutions, or give it other prompts to analyze specific details or results.

I can’t wait to see what prompt samples will come out for these kinds of scenarios 🔥!

About The Author

Albert-Jan Schot

CTO at Blis Digital

Schot, A (04/02/2026) Power Platform CLI: Exploring the MCP Server Benefits. Power Platform CLI: Exploring the MCP Server Benefits · CloudAppie

Share this on...