Power Automate MCP
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., "@Power Automate MCP Pull my flow and add a SharePoint Get items action"
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.
pa-flow-mcp
Free, open MCP server to edit Power Automate cloud flows live from GitHub Copilot, Codex, or Claude Code — like Power Apps external tools, but for flows. Open a flow in the browser, paste its URL, and your AI assistant reads/writes the flow definition, manages connectors, and syncs changes back.
Why
No official "external tools" exist for Power Automate. This MCP gives any AI assistant authenticated access to the same APIs the Designer uses. Free for everyone.
Related MCP server: Minerva MCP
Features
Plugin for Copilot & Claude Code: ships skills (
/configure-pa-flow-mcp,/edit-flow,/add-connector-action,/manage-runs,/report-issue) and aflow-buildersubagent — same plugin shape as Microsoft's Power Platform skills.Auth: interactive browser login (loopback port), Azure CLI public client, token cached. No az CLI, no app registration.
1250+ connectors: discover live (
list_connectors) + curated catalog (SharePoint, Dataverse, SQL, Outlook, Excel, Teams).No connection-reference errors:
add_connector_actionwiresconnectionReferences+parameters.$connectionsautomatically.Local ↔ flow sync: pull to
.pa-flow/<id>.json, edit, validate, push.Setup wizard: URL + login + assistant (Copilot / Codex / Claude).
Clear errors on no access / not found.
Requirements (end user)
Node.js 18+ (
node -v).A Power Automate license + access to the flow you want to edit.
GitHub Copilot CLI/Chat or Claude Code (latest).
A browser for one-time sign-in. No admin rights, no Azure CLI.
Install
A. As a plugin (recommended)
Clone and build once, then register the local marketplace in your AI tool.
git clone https://github.com/Mr-M-tastic/Power-Automate-MCP && cd pa-flow-mcp
npm install && npm run buildClaude Code — from the repo folder:
/plugin marketplace add .
/plugin install power-automate@pa-flowThe plugin auto-registers the pa-flow MCP server (.mcp.json uses ${CLAUDE_PLUGIN_ROOT}) and loads the skills. Then run /configure-pa-flow-mcp or just say "edit my flow".
GitHub Copilot — copy .vscode/mcp.json into your project (already provided). Reload VS Code; the pa-flow tools and the skills under skills/ are picked up automatically.
B. Manual MCP config
If you don't use the plugin loader, point your assistant at the built server directly:
{ "servers": { "pa-flow": { "command": "node", "args": ["dist/index.js"] } } }Claude Code / Codex use the mcpServers key and an absolute path to dist/index.js. AGENTS.md / CLAUDE.md are auto-read for usage.
Run it against your flow (step by step)
You don't run commands by hand — you chat with your assistant and it calls the tools.
Open your flow in Power Automate and copy the URL from the address bar:
https://make.powerautomate.com/environments/<env>/flows/<flowId>Start a session — tell the assistant: "Configure session for
<paste URL>" → runsconfigure_session.Pull the flow — "Pull the flow" →
sync_pull. First time a browser opens — sign in with your work account. The token is cached, so login is one-time. A working copy is written to.pa-flow/<flowId>.json.Edit — either ask in plain English ("add a SharePoint Get items action" →
add_connector_action, which auto-wires the connection) or edit.pa-flow/<flowId>.jsondirectly.Validate & push — "validate then push" →
validate_flowthensync_push.Refresh the browser tab — your edits are now live in the Designer.
What gets created on your machine
Working copy:
.pa-flow/<flowId>.json(safe to hand-edit)Cached login:
~/.pa-flow-mcp-token.json
Notes
No Azure CLI, admin rights, or app registration needed.
If a connector says "create connection in maker portal", make it once in Power Automate, then retry the push.
Optional env vars
PA_CLIENT_ID, PA_PORT, PA_API_BASE, PA_API_VERSION — override defaults if needed.
Skills (slash commands)
Command | Description |
| Connect to a flow from its Designer URL, sign in, pull locally |
| Pull → edit (action/condition/trigger) → validate → push |
| Add a SharePoint/Dataverse/SQL/Outlook/Excel/Teams (or any) connector step |
| Turn flows on/off, list runs, resubmit, cancel |
| Open a prefilled GitHub issue with diagnostics |
Reference docs the agents read live in references/ (FlowAuthoring.md, Connectors.md); the flow-builder subagent in agents/ applies one approved change at a time.
Tools
configure_session, setup_wizard, list_environments, list_flows, get_flow, update_flow, turn_on/off_flow, list_runs, resubmit_run, cancel_run, list_connectors, list_connections, ensure_connection, add_connector_action, sync_pull, validate_flow, sync_push
Related Microsoft tooling
This plugin follows the conventions of Microsoft's power-platform-skills (canvas-apps, model-apps, power-pages). It focuses on cloud flows; for solution ALM, environments, and Dataverse use the Power Platform CLI (PAC) and the Power Platform Tools VS Code extension.
License
MIT
Available Tools
18 toolsadd_connector_actionC
Add connector action to local flow (wires connectionReferences)
Inputs: inputs (required), connector (required), operationId (required), connectionName (required).
cancel_runC
Cancel a run
Inputs: runId (required), flowId.
configure_sessionB
Set Power Automate Designer URL; extracts environmentId + flowId; pick assistant
Inputs: url (required), assistant.
ensure_connectionA
Check connector exists + has connection; errors clearly if missing/no access
Inputs: connector (required).
get_flowA
Get full flow definition JSON
Inputs: flowId.
list_connectionsA
List existing connections (re-used so no connection-reference errors)
Inputs: no named parameters.
list_connectorsB
List 1000+ live connectors in env (or curated catalog)
Inputs: curated.
list_environmentsA
List environments you can access
Inputs: no named parameters.
list_flowsB
List flows in current/given environment
Inputs: environmentId.
list_runsC
List flow runs
Inputs: flowId.
resubmit_runC
Resubmit a run
Inputs: runId (required), trigger (required), flowId.
setup_wizardB
Guided setup: paste flow URL, confirm login, pick assistant
Inputs: no named parameters.
sync_pullB
Pull live flow into local .pa-flow copy
Inputs: no named parameters.
sync_pushC
Push local flow live; refresh browser tab to see
Inputs: connectionReferences.
turn_off_flowC
Disable flow
Inputs: flowId.
turn_on_flowD
Enable flow
Inputs: flowId.
update_flowC
Write modified flow definition (refresh browser tab to see)
Inputs: flowId, definition.
validate_flowB
Validate local flow before push
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 18 tools
Most tools target distinct resources, but there are overlapping boundaries: setup_wizard and configure_session both handle setup, sync_pull and get_flow both retrieve flow data, and update_flow and sync_push both modify flows. The descriptions help clarify intent, but the overlaps could still cause an agent to select the wrong tool.
The naming is largely consistent, using snake_case with imperative verb_noun patterns like list_flows, get_flow, update_flow, turn_on_flow, and cancel_run. A few names like setup_wizard and sync_pull/sync_push deviate slightly from the dominant pattern, but the style is readable and predictable overall.
With 18 tools, the server sits in the borderline range. The count is justified by the broad Power Automate domain covering setup, connectors, connections, flow lifecycle, and runs, but includes some possible redundancy such as setup_wizard vs configure_session and sync_pull vs get_flow.
The tool surface covers configuration, connectors, flow retrieval/update, enabling/disabling, and run management, but lacks obvious lifecycle operations like create_flow and delete_flow. It also doesn't provide detailed run retrieval, so some workflows will require workarounds.
Maintenance
Related MCP Connectors
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
Connect AI assistants to your approved computer for files, commands, browser and desktop tasks.
- DNS-DATA RemoteDeprecatedcom.dns-data
Connect AI assistants to authorized Windows and macOS devices for files, commands, and management.
Connect assistants to your workspace knowledge, skills, and work tools.
Related MCP Servers
- 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
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to administer Microsoft 365 and Azure, including PowerShell-only areas like Exchange, SharePoint, Teams, and Purview, with risk classification and human approval for write operations.53 npm2MIT
- 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
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to perform read/write management of Microsoft Intune and Entra ID across devices, apps, users, groups, Conditional Access, Cloud PC, compliance, and reports via Microsoft Graph.MIT