workflows-mcp-server

workflows-mcp-server

cyanheads

MCP server for AI workflow automation with YAML-defined multi-step processes, enabling agents to organize and execute co

An MCP server that enables AI agents to discover, create, and execute complex multi-step workflows defined in simple YAML files for structured task automation.

30422 views6Local (stdio)

About workflows-mcp-server

workflows-mcp-server is a community-built MCP server published by cyanheads that provides AI assistants with tools and capabilities via the Model Context Protocol. MCP server for AI workflow automation with YAML-defined multi-step processes, enabling agents to organize and execute co It is categorized under ai ml. This server exposes 4 tools that AI clients can invoke during conversations and coding sessions.

How to install

You can install workflows-mcp-server in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.

License

workflows-mcp-server is released under the Apache-2.0 license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.

Tools (4)

workflow_return_list

Discovers and lists available workflows with optional filtering by category, tags, and tool inclusion

workflow_get_instructions

Retrieves the complete definition for a single workflow by name and version with dynamic global instructions

workflow_create_new

Creates a new permanent workflow YAML file from structured JSON with automatic categorization and indexing

workflow_create_temporary

Creates temporary workflows for complex tasks that can be called by name but are not permanently listed

MCP Workflow Orchestration Server

TypeScript Model Context Protocol Version License Status GitHub

Empower your AI agents with a powerful, declarative workflow engine.

An MCP (Model Context Protocol) server that allows a Large Language Model (LLM) to discover, understand, and execute complex, multi-step workflows defined in simple YAML files.

Built on the cyanheads/mcp-ts-template, this server follows a modular architecture with robust error handling, logging, and security features.

šŸš€ Core Capabilities: Workflow Tools šŸ› ļø

This server equips your AI with specialized tools to interact with the workflow engine:

Tool NameDescriptionKey Features
workflow_return_listDiscovers and lists available workflows.- category: Filter by a specific category.
- tags: Filter by a list of tags.
- includeTools: Optionally include a list of tools used in each workflow.
workflow_get_instructionsRetrieves the complete definition for a single workflow.- name: The exact name of the workflow.
- version: The specific version to retrieve (defaults to latest).
- Dynamically injects global instructions for consistent execution.
workflow_create_newCreates a new, permanent workflow YAML file.- Takes a structured JSON object matching the workflow schema.
- Automatically categorizes and re-indexes workflows.
workflow_create_temporaryCreates a temporary workflow that is not listed, but can be called by name.- Ideal for defining multi-step plans for complex tasks.
- Can be passed to other agents by name.

Table of Contents

| Overview | Features | Installation | | Configuration | Project Structure | | Tools | Development | License |

Overview

The Workflow MCP Server acts as a powerful orchestration layer that helps your LLM agents manage complex workflows. This provides a structured way to perform 'short' multi-step tasks that would otherwise require hard-coded logic or extensive manual intervention.

It's as easy as telling your LLM "Use the workflows-mcp-server to create a new workflow that does X, Y, and Z, using the current tools you currently have access to" or "Find me a workflow that can help with task A". The server will handle the rest, allowing your agents to focus on higher-level reasoning and decision-making. The temporary workflows can be used to allow your LLM agent to "collect its thoughts" and create a structured temporary plan; even the act of defining a workflow can help the agent clarify its own understanding of the task at hand and improve tool use performance.

Instead of hard-coding multi-step logic, your tools can leverage this server to:

  • Automate complex processes: Define a sequence of tool calls in a simple YAML file and execute it with a single command.
  • Promote reusability: Create a library of common workflows that can be used across different agents and applications.
  • Improve agent reliability: Provide agents with a clear, structured plan to follow, reducing errors and improving predictability.
  • Dynamically guide agent behavior: Use global instructions to provide up-to-date, high-level strategy to all workflows without modifying them individually.

Developer Note: This repository includes a .clinerules file that serves as a developer cheat sheet for your LLM coding agent with quick reference for the codebase patterns, file locations, and code snippets.

Features

Core Utilities

Leverages the robust utilities provided by the mcp-ts-template:

  • Logging: Structured, configurable logging with sensitive data redaction.
  • Error Handling: Centralized error processing and standardized error types (McpError).
  • Configuration: Environment variable loading (dotenv) with comprehensive validation using Zod.
  • Input Validation/Sanitization: Uses zod for schema validation.
  • Request Context: Tracking and correlation of operations via unique request IDs.
  • Type Safety: Strong typing enforced by TypeScript and Zod schemas.
  • HTTP Transport: High-performance HTTP server using Hono, featuring session management and robust authentication.
  • Authentication: Modular authentication layer supporting JWT and OAuth 2.1.

Workflow Engine

  • YAML-based Workflows: Define complex, multi-step workflows in a simple, human-readable format.
  • Dynamic Indexing: Automatically discovers and indexes all workflow files on startup and watches for changes.
  • Global Instructions: Dynamically injects a central set of instructions into every workflow, allowing for global strategy updates.
  • Temporary Workflows: Create "hidden" workflows on the fly for complex tasks or for passing structured plans between agents.

Installation

Prerequisites

MCP Client Settings

Add the following to your MCP client's configuration file (e.g., cline_mcp_settings.json). This configuration uses npx to run the server, which will automatically install the package if not already present:

{
  "mcpServers": {
    "workflows-mcp-server": {
      "command": "npx",
      "args": ["workflows-mcp-server"],
      "env": {
        "MCP_LOG_LEVEL": "info"
      }
    }
  }
}

If running manually (not via MCP client) for development or testing

Install via npm

npm install workflows-mcp-server

Alternatively Install from Source

  1. Clone the repository:

    git clone https://github.com/cyanheads/workflows-mcp-server.git
    cd workflows-mcp-server
    
  2. Install dependencies:

    npm install
    
  3. Build the project:

    npm run build
    

Configuration

Environment Variables

Configure the server using environment variables. These can be set in a .env file or directly in your shell.

VariableDescriptionDefault
MCP_TRANSPORT_TYPETransport mechanism: stdio or http.stdio
MCP_HTTP_PORTPort for the HTTP server (if MCP_TRANSPORT_TYPE=http).3010
MCP_HTTP_HOSTHost address for the HTTP server (if MCP_TRANSPORT_TYPE=http).127.0.0.1
MCP_ALLOWED_ORIGINSComma-separated list of allowed origins for CORS (if MCP_TRANSPORT_TYPE=http).(none)
MCP_LOG_LEVELLogging level (debug, info, warning, error).debug
MCP_AUTH_MODEAuthentication mode for HTTP: jwt or oauth.jwt
MCP_AUTH_SECRET_KEYRequired for jwt auth in production. Minimum 32-character secret key.(none)
NODE_ENVRuntime environment (development, production).development

Project Structure

The codebase follows a modular structure within the src/ directory:

src/
ā”œā”€ā”€ index.ts              # Entry point: Initializes and starts the server
ā”œā”€ā”€ config/               # Configuration loading (env vars, package info)
│   └── index.ts
ā”œā”€ā”€ mcp-server/           # Core MCP server logic and capability registration
│   ā”œā”€ā”€ server.ts         # Server setup, capability registration
│   ā”œā”€ā”€ transports/       # Transport handling (stdio, http)
│   └── tools/            # MCP Tool implementations (subdirs per tool)
ā”œā”€ā”€ services/             # External service integrations
│   └── workflow-indexer/ # Discovers and indexes workflow YAML files
ā”œā”€ā”€ types-global/         # Shared TypeScript type definitions
└── utils/                # Common utility functions (logger, error handler, etc.)

For a detailed file tree, run `npm run tre


README truncated. View full README on GitHub.

Alternatives