Content
# Power Automate MCP Server
An MCP (Model Context Protocol) server for editing and generating Microsoft Power Automate packages.
## Features
- **Read Operations**: Parse packages, list actions/triggers/connections, get details
- **Write Operations**: Update actions, add/delete actions, modify triggers, rename flows
- **Generation**: Create new flows from scratch or templates
- **Export**: Create valid .zip packages for import into Power Automate
## Installation
```bash
pip install -e .
```
## Usage
### As an MCP Server
Add to your Claude Code `mcp.json`:
```json
{
"mcpServers": {
"power-automate": {
"command": "python",
"args": ["-m", "power_automate_mcp.server"]
}
}
}
```
### Available Tools
| Tool | Description |
|------|-------------|
| `pa_read_package` | Read and parse a .zip package |
| `pa_get_flow_summary` | Get flow name, trigger, action count |
| `pa_list_actions` | List all actions with types and dependencies |
| `pa_list_connections` | List connection references |
| `pa_get_action_details` | Get full details of specific action |
| `pa_update_action` | Modify action parameters |
| `pa_add_action` | Add new action to flow |
| `pa_delete_action` | Remove action from flow |
| `pa_update_trigger` | Modify trigger config |
| `pa_rename_flow` | Change flow display name |
| `pa_export_package` | Export package to new location |
| `pa_create_empty_flow` | Create new empty flow |
| `pa_add_recurrence_trigger` | Add scheduled trigger |
| `pa_list_templates` | List available templates |
## Development
```bash
# Install with dev dependencies
pip install -e ".[dev]"
# Run tests
pytest tests/ -v
```
## License
MIT