SP

synergy2test/powerautomate-mcp-docs

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

0 stars 7 forks 质量 66 趋势 0MIT

An MCP (Model Context Protocol) server that connects Claude to Microsoft Power Automate. Create, manage, and deploy Power Automate flows using natural language.

概览

An MCP (Model Context Protocol) server that connects Claude to Microsoft Power Automate. Create, manage, and deploy Power Automate flows using natural language. - - Build flows from natural language descriptions with guided wizard - - Automatic testing with intelligent error diagnosis - - Pre-flight checks with best practices scoring (0-100) - - List, update, clone, and delete flows - - Interactive Power Automate expression reference - - Full knowledge of 400+ connectors and schemas - - Works on Windows, macOS, and Linux - Node.js 20+ - Microsoft 365 work account with Power Automate access - Azure AD app registration (see below) - : libsecret for secure token storage This interactive wizard will: 1. Sign you in via browser 2. Discover your Power Automate environments 3. Create the configuration file : ~/Library/Application Support/Claude/claude_desktop_config.json : %APPDATA%\Claude\claude_desktop_config.json : ~/.config/Claude/claude_desktop_config.json Restart Claude.

README

以下为原文 README 节选,完整内容请查看原文。

Power Automate MCP Server

An MCP (Model Context Protocol) server that connects Claude to Microsoft Power Automate. Create, manage, and deploy Power Automate flows using natural language.

Features

  • Create Flows - Build flows from natural language descriptions with guided wizard
  • Test & Debug - Automatic testing with intelligent error diagnosis
  • Validate - Pre-flight checks with best practices scoring (0-100)
  • Manage Flows - List, update, clone, and delete flows
  • Expression Help - Interactive Power Automate expression reference
  • Connector Intelligence - Full knowledge of 400+ connectors and schemas
  • Cross-Platform - Works on Windows, macOS, and Linux

Installation

Prerequisites

  • Node.js 20+
  • Microsoft 365 work account with Power Automate access
  • Azure AD app registration (see below)
  • Linux only: libsecret for secure token storage
    # Ubuntu/Debian
    sudo apt-get install libsecret-1-dev gnome-keyring
    
    # Fedora/RHEL
    sudo dnf install libsecret-devel gnome-keyring
    

Install from npm

npm install -g powerautomate-mcp

First-Time Setup

powerautomate-mcp --setup

This interactive wizard will:

  1. Sign you in via browser
  2. Discover your Power Automate environments
  3. Create the configuration file

Register with Claude

Add to your Claude configuration:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json Linux: ~/.config/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "powerautomate": {
      "command": "powerautomate-mcp"
    }
  }
}

Restart Claude. The Power Automate tools will appear automatically.


Azure AD App Registration (Required)

Before using this MCP server, an Azure AD app registration must be configured in your tenant. This requires Global Administrator or Application Administrator role.

Who Needs to Do This?

Role Action Required
IT Admin / Global Admin Create app registration, grant admin consent
End Users Just run powerautomate-mcp --setup after admin completes setup
# Requires: Azure CLI (https://aka.ms/installazurecli)
# Requires: Global Admin or Application Administrator role

az login
./scripts/Register-PublishedApp.ps1

The script will:

  1. Create the app registration
  2. Configure required permissions
  3. Output the admin consent URL

Option 2: Manual Setup

  1. Go to Azure Portal > Microsoft Entra ID > App registrations > New registration

  2. Configure basic settings:

    • Name: Power Automate MCP
    • Supported account types: Accounts in any organizational directory (multi-tenant)
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "powerautomate": { "command": "powerautomate-mcp" } } }