power-automate-desktop-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
power-automate-desktop-mcp
A local MCP server that lets AI agents run and monitor Power Automate Desktop flows (RPA).
Small. One file, no dependencies. You can read all of it in a few minutes:
server/index.mjs.Local. It runs on the PC where Power Automate Desktop is installed. It makes no network calls.
No sign-in. It never asks for, reads or stores a Microsoft login.
Status: early version (0.1.0). Starting flows and reading run folders work in the project's tests.
get_runcurrently returns the raw log lines rather than a tidy "succeeded / failed". See What is and isn't tested.
What the agent can do
Tool | What it does |
| Starts a flow by name or ID, with optional input values. Returns a |
| Shows how a run went, from the log folder Power Automate writes on the PC. |
| Lists recent runs on this PC, newest first. |
| Lists the flows this PC has a record of. |
| Checks the PC is ready: Power Automate installed, run link registered, app open. |
Related MCP server: Power BI Desktop Local MCP Server
What it can't do
It can't create or edit flows. Microsoft provides no supported way to change a desktop flow's steps from outside the designer.
It can't list every flow in your account. That list lives in your Microsoft account, and this server doesn't sign in. It lists flows that have run on this PC. Any flow can still be started by its exact name.
It can't see runs on other machines, or runs started by cloud flows elsewhere.
Requirements
Windows, with Power Automate Desktop installed, open and signed in.
A Power Automate Premium licence (or a pay-as-you-go environment). This is Microsoft's rule for starting flows from outside the app, not this project's.
Node.js 18 or newer.
Install
Claude Code (terminal, desktop app Code tab, VS Code)
claude plugin marketplace add Roy6T9/power-automate-desktop-mcp
claude plugin install power-automate-desktop-mcp@power-automate-desktop-mcpThen start a new session and ask: "Check my Power Automate setup."
Gemini CLI
gemini extensions install https://github.com/Roy6T9/power-automate-desktop-mcpChatGPT desktop app and Codex
Add this to ~/.codex/config.toml:
[mcp_servers.pad]
command = "npx"
args = ["-y", "github:Roy6T9/power-automate-desktop-mcp"]Claude Desktop and any other MCP app
Add this to the app's MCP settings (for Claude Desktop: claude_desktop_config.json):
{
"mcpServers": {
"pad": {
"command": "npx",
"args": ["-y", "github:Roy6T9/power-automate-desktop-mcp"]
}
}
}Or clone this repo and point the app at the file directly: node C:\path\to\server\index.mjs.
The confirmation pop-up
By default, Power Automate asks the person at the PC to confirm every flow started from outside the app. That is a safety feature: it stops a flow running without anyone noticing.
This project never turns it off for you. If you want hands-free runs, you can switch it off yourself in the Power Automate console settings (Display confirmation dialog when invoking flows externally). Read Microsoft's warning first, and only do it on a PC where you trust every flow.
How it works
run_flowbuilds Microsoft's documented run link,ms-powerautomate:/console/flow/run?workflowName=...&runId=..., and opens it. TherunIdis a fresh GUID made for that run.Because of the
runId, Power Automate writes that run's logs to%LOCALAPPDATA%\Microsoft\Power Automate Desktop\Console\Scripts\<flow id>\Runs\<run id>.get_runfinds that folder and reads it.
Details: Run desktop flows via URL or desktop shortcuts (Microsoft Learn).
Good to know:
Only one flow can run at a time in attended mode. If one is already running, a new start is skipped.
run_flowonly requests a start. An agent should always follow it withget_run.Inputs can be text, numbers or true/false.
Privacy and safety
No network calls, no telemetry, no sign-in.
The server remembers the runs it started in
%LOCALAPPDATA%\power-automate-desktop-mcp\state.json: flow name, run ID, start time and the names of any inputs. It never saves input values.Flow names and input values are URL-encoded, and the run link is handed to Windows through an environment variable, so nothing an agent sends is ever pasted into a command line.
get_runreturns log lines from your own PC to your own AI app. Those logs can contain whatever your flow logs, so think about that before pointing it at flows that handle secrets.
What is and isn't tested
Tested:
The MCP conversation, every tool's input checks, link building and run-folder reading (
npm test, in dry-run mode against a made-up logs folder).check_setupandlist_flowsagainst a real Power Automate Desktop install (Microsoft Store version) on Windows 11.The plugin files, with
claude plugin validate.
Not yet tested:
A real flow start to finish, including flow inputs.
The Gemini CLI, ChatGPT desktop and Claude Desktop installs above.
The MSI (non-Store) install of Power Automate Desktop.
Development
npm testEnvironment variables:
Variable | What it does |
| Builds the run link and returns it without starting anything. |
| Use a different folder as Power Automate's |
| Use a different folder for this server's |
Licence
MIT. Not affiliated with or endorsed by Microsoft. "Power Automate" is a Microsoft trademark.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Debug, build, and manage Power Automate cloud flows with AI agents
Connect AI assistants to your approved computer for files, commands, browser and desktop tasks.
Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.
Build, test and publish agentic workflows from your AI client: approve steps, read tables, see runs.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceDebug, build, and manage Microsoft Power Automate cloud flows with AI agents. Get action-level error details, build flows from natural language, trigger and resubmit runs, and operate across multiple tenants. Requires a Flow Studio MCP subscription — get an API key at https://mcp.flowstudio.app35MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to discover and interact with local Power BI Desktop instances, including inspecting table/column schema and executing DAX queries.2-
- AlicenseNot gradedqualityDmaintenanceEnables MCP clients to manage and troubleshoot Power Automate cloud flows, including listing environments, flows, and runs, with optional write capabilities for triggering, enabling, disabling, and deleting flows.2MIT
- AlicenseAqualityDmaintenanceEnables AI agents to inspect and edit your personal cloud flows through a local MCP server, authenticated with your own Microsoft account and no admin consent.71MIT