BLOG/AI AGENTS
THEME
AI AGENTS

The OrchStep MCP server for agents

Run orchstep mcp serve and your agent calls workflows as native tools — run tasks, list them, lint, manage modules, and scaffold new YAML, all over the Model Context Protocol.

Mar 26, 2026 OrchStep Team 6 minROLE: AnySCALE: Any

There are two ways an agent can drive OrchStep. It can shell out to the orchstep binary and parse the text. Or it can call OrchStep as a set of native tools over the Model Context Protocol, with structured arguments and structured responses. The second way is what the MCP server is for.

One command starts it:

orchstep mcp serve

Now any MCP-aware agent — Claude Desktop, a custom client, whatever you've built — sees OrchStep as a tool provider and can run tasks, inspect plans, manage modules, and generate new workflows without you gluing together string parsing.

The tools it exposes

The server presents OrchStep functionality as a small, focused set of tools:

ToolWhat it does
orchstep_list_tasksList available tasks in the current workflow
orchstep_planDry-run a task: rendered commands and verdicts, nothing executes
orchstep_runExecute a workflow task with vars, returns the run result
orchstep_lintLint a workflow file, returns warnings and errors
orchstep_module_searchSearch the module registry
orchstep_module_installInstall a module from the registry
orchstep_versionReport version and edition

Read-only tools are annotated as such, so a client can auto-approve list_tasks, plan and lint while still asking before run. orchstep_run returns the same JSON document as orchstep run --output json: a status and a steps array with per-step status and output, exactly the shape a model can branch on.

The workflow it runs

The tools operate on a normal workflow file. Nothing about MCP changes the YAML; it just gives the agent a clean way to call into it. Here is a workflow an agent might list_tasks and then run:

orchstep.yml
name: api
defaults:
  target: staging
tasks:
  deploy:
    steps:
      - name: build
        func: shell
        do: echo "building api"
      - name: rollout
        func: shell
        do: echo "rolling out to {{ vars.target }}"
  health:
    steps:
      - name: check
        func: shell
        do: echo "checking {{ vars.target }} health"

The agent doesn't need to know the task names in advance. It calls orchstep_list_tasks, sees deploy and health, then calls orchstep_run with the one it wants:

{
  "name": "orchstep_run",
  "arguments": {
    "task": "deploy",
    "vars": { "target": "production" }
  }
}

And gets back something it can reason about directly:

{
  "workflow": "api",
  "task": "deploy",
  "status": "success",
  "steps": [
    { "task": "deploy", "name": "build", "status": "ok", "output": "building api" },
    { "task": "deploy", "name": "rollout", "status": "ok", "output": "rolling out to production" }
  ]
}

Useful patterns

A few flows the server is built for:

  • Preview, then run. Call orchstep_plan to show the user the exact rendered commands, then orchstep_run once they approve. The agent never executes something nobody saw.
  • Validate before running. Call orchstep_lint first; if it comes back clean, call orchstep_run. The agent catches a broken workflow before it executes a single step.
  • Discover and run. Call orchstep_list_tasks to learn what's available, then run the right task instead of guessing a name.
  • Module-based. Search the registry with orchstep_module_search, install with orchstep_module_install, then run the module's tasks.

When a run fails, the tool result is flagged isError and the JSON carries an error message that names the problem and the fix (an unknown task, for instance, says to run orchstep list-tasks). The agent recovers by reading it, not by you writing recovery logic.

Wiring it into a client

For Claude Desktop, point an MCP server entry at the binary:

{
  "mcpServers": {
    "orchstep": {
      "command": "orchstep",
      "args": ["mcp", "serve"],
      "cwd": "/path/to/project"
    }
  }
}

That's the whole setup. The agent now has OrchStep as a first-class tool surface.

Where to go next

  • MCP Server — full tool reference, parameters, and error codes
  • Skills — the orchstep-mcp-integration skill that teaches agents these tools
  • LLM Agent Integration — the bigger picture of agents and OrchStep

Already running an MCP client? Add the orchstep mcp serve entry above and your agent can run real workflows on the next turn.

#AGENTS#MCP#TOOLS#AUTOMATION
Try it in two minutes — one binary, no signup.
curl -fsSL https://orchstep.dev/install.sh | sh

RELATED — AI AGENTS