MCPInstall
rundeck-mcp-server logo

rundeck-mcp-server

by LokiMCPUniverse 3 stars LokiMCPUniverse/rundeck-mcp-server

MCP server for Rundeck - Runbook automation and job scheduling

READMEmain

Rundeck MCP Server

Rundeck Mcp Server

GitHub stars GitHub forks GitHub watchers

License Issues Pull Requests Last Commit

Python MCP

A Model Context Protocol (MCP) server for driving Rundeck from GenAI agents. Built on the official mcp Python SDK (>=1.27) with FastMCP, an async httpx client, and pydantic-settings for configuration.

Features

  • Project, job, execution and node tooling for Rundeck API v41+
  • API-token authentication via the X-Rundeck-Auth-Token header
  • Async httpx client with typed exceptions (AuthenticationError, NotFoundError, APIError)
  • Managed client lifecycle via FastMCP lifespan
  • Unit tests with mocked httpx (pytest-httpx)

Installation

pip install rundeck-mcp-server

Or install from source:

git clone https://github.com/asklokesh/rundeck-mcp-server.git
cd rundeck-mcp-server
pip install -e .

Configuration

Set the following environment variables (prefix RUNDECK_):

VariableDefaultDescription
RUNDECK_BASE_URLhttp://localhost:4440Base URL of the Rundeck server
RUNDECK_API_TOKEN(empty)API token used for authentication
RUNDECK_API_VERSION41Rundeck API version
RUNDECK_VERIFY_SSLtrueVerify TLS certificates
RUNDECK_TIMEOUT30HTTP timeout (seconds)

Tools

  • list_projects
  • list_jobs(project)
  • get_job(job_id)
  • run_job(job_id, options?, node_filter?)
  • get_execution(execution_id)
  • get_execution_output(execution_id)
  • abort_execution(execution_id)
  • list_executions(project, status?, max=20)
  • list_nodes(project, filter?)
  • enable_job_schedule(job_id) / disable_job_schedule(job_id)
  • enable_job_execution(job_id) / disable_job_execution(job_id)

Running the server

rundeck-mcp

The server communicates over stdio per the MCP specification.

Development

python3 -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"
pytest

License

MIT License - see LICENSE file for details