# YAML Workflow MCP server

> Exposes declarative YAML-defined workflows as tools for AI agents to automate CI/CD, data processing, and DevOps tasks.

- Repository: https://github.com/orieg/yaml-workflow
- Page: https://hostedmcp.org/servers/orieg/yaml-workflow
- Transport: stdio
- Stars: 5
- License: MIT
- Latest version: 0.9.6

## Install

### Claude Code

```sh
claude mcp add yaml-workflow -- uvx yaml-workflow
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "yaml-workflow": {
      "command": "uvx",
      "args": [
        "yaml-workflow"
      ]
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "yaml-workflow": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "yaml-workflow"
      ]
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"yaml-workflow","type":"stdio","command":"uvx","args":["yaml-workflow"]}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "yaml-workflow": {
      "command": "uvx",
      "args": [
        "yaml-workflow"
      ]
    }
  }
}
```

### Codex

```sh
codex mcp add yaml-workflow -- uvx yaml-workflow
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.yaml-workflow]
command = "uvx"
args = ["yaml-workflow"]
```

### Gemini CLI

```sh
gemini mcp add -s user yaml-workflow uvx -- yaml-workflow
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "yaml-workflow": {
      "command": "uvx",
      "args": [
        "yaml-workflow"
      ]
    }
  }
}
```

## FAQ

### How can I use YAML Workflow with an AI agent?

You can expose your workflows as AI agent tools by installing the MCP server component using pip install yaml-workflow[mcp].

### Can I run workflows in parallel?

Yes, you can achieve parallel execution of independent steps by using the depends_on keyword to define step dependencies.

### What happens if a workflow fails?

The engine supports state persistence and allows you to resume a workflow after a failure.

### Does it support templating?

Yes, it uses Jinja2 for YAML-driven workflow definitions and variable substitution.
