MCP Power Automate
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Power Automate list my cloud flows"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Power Automate
Local-first MCP server and Chromium extension for AI-assisted Microsoft Power Automate work.
Use your existing logged-in browser session to let an MCP client inspect, validate, edit, run, review, and revert Power Automate cloud flows. No Microsoft Entra ID app registration, admin consent flow, or custom enterprise application setup is required to get started.
Early public signal: 15,000+ LinkedIn post views and 14 GitHub stars while the project is still small, practical, and moving fast.
Why It Exists
Power Automate is powerful, but AI agents need more than raw convenience before they should touch real flows. This project keeps the workflow visible and reversible:
The browser extension captures the active Power Automate context and compatible tokens from your own Chromium session.
The MCP server exposes a v1 command surface for targeting, reading, previewing, validating, saving, run inspection, and rollback.
The extension stays mostly passive: status, diagnostics, and review surfaces instead of mystery buttons that hide what changed.
Local state, snapshots, and backups stay on your machine.
Related MCP server: Chrome MCP Server
What It Can Do
Area | Capabilities |
Context | Detect browser-captured flows, list flows, and explicitly lock onto a target flow. |
Safe editing | Read the flow, preview the smallest candidate update, validate, save, review the diff, and revert. |
Debugging | Inspect recent runs, latest run details, and action-level failures. |
Testing | Invoke safe manual/request trigger flows and wait for the resulting run. |
Solutions | List unmanaged Dataverse solutions, inspect solution components and environment variables, add existing flows, and create blank flows inside solutions. |
Write operations are deliberately scoped. The MCP does not expose solution deletion, component deletion, managed-solution modification, environment-variable writes, or blind production edits as the default path.
Quickstart
Register the MCP in Codex:
codex mcp add power-automate-local -- npx -y @kaael1/mcp-power-automateFind the packaged extension path:
npx -y @kaael1/mcp-power-automate extension-pathLoad that folder in Chromium:
Open
chrome://extensionsoredge://extensions.Enable Developer Mode.
Choose
Load unpacked.Select the folder printed by
extension-path.
Then open or focus a Power Automate flow page. The extension captures the session and target context automatically.
Check readiness:
npx -y @kaael1/mcp-power-automate doctorRecommended Agent Loop
For a supervised edit, ask your MCP client to follow this loop:
doctorget_contextconnect_flowget_flowpreview_flow_updatevalidate_flowapply_flow_updateget_last_updatevalidate_flowagain when available
For run inspection and manual/request trigger tests, use list_runs, get_latest_run, get_run, get_run_actions, wait_for_run, get_trigger_callback_url, and invoke_trigger.
For Dataverse solution work, use list_solutions, list_solution_components, list_environment_variables, add_flow_to_solution, and create_flow_in_solution. Solution writes are intentionally limited to adding cloud flows to unmanaged solutions.
Public v1 Tools
get_context
doctor
connect_flow
list_flows
list_solutions
list_solution_components
list_environment_variables
add_flow_to_solution
get_flow
preview_flow_update
validate_flow
apply_flow_update
get_last_update
revert_last_update
list_runs
get_latest_run
get_run
get_run_actions
wait_for_run
get_trigger_callback_url
invoke_trigger
create_flow
create_flow_in_solution
clone_flowSafety Model
Inspect with
get_context,connect_flow, andget_flowbefore any write.Preview with
preview_flow_updatebefore saving.Validate before and after meaningful edits when Power Automate accepts validation.
Review
get_last_updateafter save so the diff is visible.Use
revert_last_updatewhen the saved result is wrong.Prefer test or staging flows before production flows.
If Power Automate rejects a save because of a connection permission problem, the MCP reports CONNECTION_AUTHORIZATION_FAILED and waits for the user to fix that connection in Power Automate. If the service rejects a field such as retryPolicy, the MCP reports SCHEMA_VALIDATION_FAILED with the rejected member so the agent can correct the candidate flow instead of guessing.
Browser-Backed Auth
The extension can capture Power Automate, Power Platform/BAP, and Dataverse-audience tokens from your logged-in browser session. When those tokens are present, get_context and /health expose readiness details such as canManageSolutions.
This means the MCP can work without a new Microsoft Entra app registration, but it also means the browser session remains the live authority. If a token expires or a permission is missing, reopen or focus the relevant Power Automate, Power Apps, or Dataverse page and retry after capture.
HTTP Bridge
The local bridge listens on 127.0.0.1:17373.
GET /healthis kept for simple probes.GET /v1/healthreturns bridge identity and readiness.GET /v1/contextreturns the same context used by the MCP.GET /v1/commandslists the public v1 command surface.POST /v1/commands/:nameruns any public v1 command with a JSON body.
Only the process that owns the bridge port executes stateful work. If another process already owns the port, new MCP instances refuse to reuse it; stop the existing bridge process or choose a different POWER_AUTOMATE_BRIDGE_PORT.
Development
npm install
npm run typecheck
npm run lint
npm run test
npm run build
npm run pack:dry-runFor a local clone, prefer registering Codex against the built server from this checkout:
npm run build
$nodePath = (Get-Command node).Source
$serverPath = Join-Path (Get-Location) "dist/server/index.js"
codex mcp add power-automate-local -- $nodePath $serverPathIf an older local entry exists, remove it first:
codex mcp remove power-automate-localLoad the browser extension from dist/extension after rebuilding. Runtime state lives in data/ and must not be committed.
Docs
Package Links
npm: https://www.npmjs.com/package/@kaael1/mcp-power-automate
MCP Registry: https://registry.modelcontextprotocol.io/v0/servers?search=io.github.kaael1/mcp-power-automate
License
MIT. See LICENSE.
Available Tools
24 toolsadd_flow_to_solutionC
Add an existing cloud flow to an unmanaged Dataverse solution.
Inputs: flowId (required), solutionUniqueName (required), addRequiredComponents, doNotIncludeSubcomponents, +1 more.
apply_flow_updateC
Apply a flow edit and return the saved flow plus the persisted review diff.
Inputs: flow (required), displayName, target.
clone_flowC
Clone an existing flow inside the current environment and optionally connect the clone.
Inputs: sourceFlowId (required), displayName, makeActive.
connect_flowC
Connect the MCP to a flow using flowId, tabId, or nameQuery. Returns candidates if the request is ambiguous.
Inputs: no named parameters.
create_flowC
Create a new blank flow in the current environment and connect it as the active target.
Inputs: displayName (required), triggerType.
create_flow_in_solutionB
Create a new blank flow in the current environment, add it to an unmanaged solution, and connect it as the active target.
Inputs: displayName (required), solutionUniqueName (required), triggerType, addRequiredComponents, +2 more.
doctorA
Return bridge identity, diagnostics, public command names, and current Power Automate readiness.
Inputs: no named parameters.
get_contextB
Return the current Power Automate context, capabilities, selection, and cached summaries.
Inputs: no named parameters.
get_flowC
Fetch the selected Power Automate flow target and return a normalized editable payload.
Inputs: target.
get_last_updateA
Return the last successful flow update recorded by the local bridge.
Inputs: no named parameters.
get_latest_runC
Return the most recent run for the selected flow target.
Inputs: target.
get_runA
Return details for a specific run of the selected flow target.
Inputs: runId (required), target.
get_run_actionsC
Return action-level statuses for a specific run of the selected flow target.
Inputs: runId (required), target.
get_trigger_callback_urlC
Return the callback URL for the selected flow trigger when it supports manual invocation.
Inputs: triggerName, target.
invoke_triggerC
Invoke the selected flow trigger using its callback URL when it supports manual execution.
Inputs: body, target, triggerName.
list_environment_variablesC
List Dataverse environment variable definitions and current values without changing them.
Inputs: envId, solutionUniqueName.
list_flowsC
List flows from live catalog plus browser-captured flows in the current environment.
Inputs: limit, query.
list_runsC
List recent runs for the selected flow target.
Inputs: limit, target.
list_solution_componentsB
List Dataverse solution components for a solution unique name without changing them.
Inputs: solutionUniqueName (required), enrich, envId.
list_solutionsB
List visible Dataverse solutions in the current or provided environment without changing them.
Inputs: envId, includeManaged, query.
preview_flow_updateA
Preview a flow edit without saving it, returning the proposed review diff and summary.
Inputs: flow (required), displayName, target.
revert_last_updateC
Revert the selected flow target to the last recorded before-state.
Inputs: target.
validate_flowC
Validate a flow definition using the flow service validation API when available.
Inputs: flow (required), target.
wait_for_runB
Poll the latest run or a specific run until it reaches a terminal status or timeout.
Inputs: pollIntervalSeconds, runId, target, timeoutSeconds.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 24 tools
All tools have distinct purposes. Even similar tools like preview_flow_update and apply_flow_update are clearly differentiated by their descriptions (preview vs. apply). No ambiguity.
Every tool follows a consistent verb_noun pattern in snake_case (e.g., add_flow_to_solution, list_flows, invoke_trigger). No mixed conventions or vague naming.
With 24 tools, the server is on the heavy side of the acceptable range. While each tool serves a specific function, the count feels slightly high for a single domain, though still workable.
The tool set covers flow creation, editing, validation, runs, triggers, solutions, and environment variables. A notable gap is the absence of a delete or remove flow tool, which agents may need.
Maintenance
Related MCP Connectors
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
MCP server for secureFlows: token-free URL builders and integration-linting tools for AI agents.
Open-source Zapier/n8n alternative as an MCP server: agents build, run and debug your workflows.
Build and run AI workflows, agents, data tables and 1000+ API integrations from any MCP client.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn extension-based MCP server that enables AI assistants to control your browser, leveraging existing sessions and login states for automation and content analysis. It provides over 20 tools for semantic tab search, interactive element manipulation, and network monitoring directly within your daily Chrome environment.MIT
- AlicenseNot gradedqualityNot gradedmaintenanceAn extension-based MCP server that enables AI assistants to control your existing Chrome browser, leveraging your active login states and settings for automation. It provides over 20 tools for tasks like semantic tab search, screen capture, network monitoring, and direct element interaction.-
- AlicenseNot gradedqualityDmaintenanceA self-hosted MCP server that enables AI assistants to inspect and manage Microsoft Power Automate cloud flows and Dataverse records locally, using your own Azure identity.MIT
- AlicenseAqualityBmaintenanceMCP server that lets AI agents drive your real Chromium browser with your existing signed-in sessions, providing visible, local, and inspectable automation for tasks like navigation, clicking, typing, and form filling.252Apache 2.0