# mcp-power-automate

An MCP server that lets an agent read, validate, edit and revert Power Automate cloud flows, using the Chromium session you are already signed into.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 27
- Author: kaael1
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/kaael1/mcp-power-automate
- Updated: 2026-06-01
- HTML: https://affpapa.org/en/nevibecode/mcp/mcp-power-automate

## What it does

The server sits on top of a browser session that is already logged in to Power Automate. A packaged extension lifts the flow context and the matching tokens; the MCP then hands the agent commands for reading a flow, previewing a change, validating it, saving, checking the diff and reverting. No Entra ID app registration or admin consent is involved.

Setup of the extension is manual: turn on Developer Mode at `chrome://extensions`, pick `Load unpacked`, and select the directory printed by `npx -y @kaael1/mcp-power-automate extension-path`. Nothing gets captured until that is done. The local bridge claims `127.0.0.1:17373` and keeps all state in the process that owns it, so a second MCP instance will not share the port; stop the running bridge or set a different `POWER_AUTOMATE_BRIDGE_PORT`.

Your browser stays the authority. Let a token lapse and you have to refocus the Power Automate, Power Apps or Dataverse tab before retrying. Writes are narrow on purpose: the MCP will not delete solutions or components, touch managed solutions, or write environment variables. A rejected save surfaces as `CONNECTION_AUTHORIZATION_FAILED` when a connection lacks permission, or as `SCHEMA_VALIDATION_FAILED` naming the offending member, which lets the agent correct the candidate instead of guessing.

## Requirements
- Needs: Node.js (commands run via npx)

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add mcp-power-automate -- npx -y @kaael1/mcp-power-automate
```

### Codex

**Platform CLI**
```bash
codex mcp add mcp-power-automate -- npx -y @kaael1/mcp-power-automate
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "mcp-power-automate": {
            "command": "npx",
            "args": [
                "-y",
                "@kaael1/mcp-power-automate"
            ]
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "mcp-power-automate": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "@kaael1/mcp-power-automate"
            ]
        }
    }
}
```

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add mcp-power-automate npx -y @kaael1/mcp-power-automate
```

## When to use it
- pin the agent to one flow so edits cannot land elsewhere
- preview the smallest change and validate it before saving
- roll back a saved flow that came out wrong
- trace which action failed in the latest run
- attach an existing cloud flow to an unmanaged Dataverse solution

## Example prompts
- Lock onto the invoice approval flow and list its actions before any edit.
- Preview a change to `retryPolicy`, validate it, then save and show me the diff.
- Invoke the manual trigger, wait for the run, and tell me which action failed.

## Similar
- [Scrapling MCP Server](https://affpapa.org/en/nevibecode/mcp/scrapling-mcp-server.md) — MCP server · ★ 89433
- [browser-use](https://affpapa.org/en/nevibecode/mcp/browser-use.md) — MCP server · ★ 119160
- [AIHawk](https://affpapa.org/en/nevibecode/mcp/aihawk.md) — MCP server · ★ 32221
- [Skyvern](https://affpapa.org/en/nevibecode/mcp/skyvern.md) — MCP server · ★ 23263
- [SeleniumBase MCP](https://affpapa.org/en/nevibecode/mcp/seleniumbase-mcp.md) — MCP server · ★ 13169
- [Inbox Zero](https://affpapa.org/en/nevibecode/mcp/inbox-zero.md) — MCP server · ★ 12791

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
