Skip to main content
Glama
Power Automate MCP

Power Automate MCP

by Mr-M-tastic

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 a flow-builder subagent — 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_action wires connectionReferences + parameters.$connections automatically.

  • 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

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 build

Claude Code — from the repo folder:

/plugin marketplace add .
/plugin install power-automate@pa-flow

The 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.

  1. Open your flow in Power Automate and copy the URL from the address bar: https://make.powerautomate.com/environments/<env>/flows/<flowId>

  2. Start a session — tell the assistant: "Configure session for <paste URL>" → runs configure_session.

  3. 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.

  4. 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>.json directly.

  5. Validate & push — "validate then push" → validate_flow then sync_push.

  6. 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

/configure-pa-flow-mcp

Connect to a flow from its Designer URL, sign in, pull locally

/edit-flow

Pull → edit (action/condition/trigger) → validate → push

/add-connector-action

Add a SharePoint/Dataverse/SQL/Outlook/Excel/Teams (or any) connector step

/manage-runs

Turn flows on/off, list runs, resubmit, cancel

/report-issue

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

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 tools
add_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

    C2.7/5.0

    Scored across 18 tools

    Disambiguation3/5

    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.

    Naming Consistency4/5

    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.

    Tool Count3/5

    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.

    Completeness3/5

    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

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables 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.
      2
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables 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 npm
      2
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables 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