justynroberts/rundeck-mcp-server-production
If you are the rightful owner of rundeck-mcp-server-production and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.
A production-ready MCP server for the Rundeck automation platform, enabling management of projects, jobs, executions, and infrastructure directly from Claude Desktop or any MCP-enabled client.
Rundeck MCP Server
A production-ready MCP (Model Context Protocol) server for Rundeck automation platform. Manage projects, jobs, executions, and infrastructure directly from Claude Desktop or any MCP-enabled client.
🚀 Quick Start
1. Install uvx
# macOS/Linux
curl -LsSf https://astral.sh/uv/install.sh | sh
# Or using Homebrew
brew install uv
# Windows
powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
2. Get Your Rundeck API Token
- Log into your Rundeck server
- Click your username → Profile
- Navigate to User API Tokens
- Click Generate New Token
- Copy and save the token securely
3. Configure Claude Desktop
Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"rundeck-mcp": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/yourusername/rundeck-mcp-server",
"rundeck-mcp",
"serve",
"--enable-write-tools"
],
"env": {
"RUNDECK_URL": "https://your-rundeck.com",
"RUNDECK_API_TOKEN": "your-token-here"
}
}
}
}
4. Restart Claude Desktop
That's it! You can now manage Rundeck from Claude Desktop.
💡 Features
- 30+ Tools for complete Rundeck automation
- Multi-Server Support - Connect to multiple Rundeck instances
- Read-Only Mode - Safe exploration without modifications
- Write Operations - Create jobs, run executions, manage projects
- Intelligent Job Creation - Automatic variable extraction and step splitting
- Job Analysis - Risk assessment and workflow visualization
🔧 Advanced Configuration
Multiple Rundeck Servers
{
"mcpServers": {
"rundeck-mcp": {
"command": "uvx",
"args": ["--from", "git+https://github.com/yourusername/rundeck-mcp-server", "rundeck-mcp", "serve", "--enable-write-tools"],
"env": {
"RUNDECK_URL": "https://prod.rundeck.com",
"RUNDECK_API_TOKEN": "prod-token",
"RUNDECK_NAME": "production",
"RUNDECK_URL_1": "https://dev.rundeck.com",
"RUNDECK_API_TOKEN_1": "dev-token",
"RUNDECK_NAME_1": "development"
}
}
}
}
API Version Configuration
If your Rundeck server uses a different API version:
"env": {
"RUNDECK_URL": "https://your-rundeck.com",
"RUNDECK_API_TOKEN": "your-token",
"RUNDECK_API_VERSION": "55"
}
Development from Local Clone
# Clone repository
git clone https://github.com/yourusername/rundeck-mcp-server.git
cd rundeck-mcp-server
# Install dependencies
uvx --from . rundeck-mcp validate
Update Claude Desktop config to use local path:
"args": ["--from", "/absolute/path/to/rundeck-mcp-server", "rundeck-mcp", "serve", "--enable-write-tools"]
🛠️ Available Tools
Read-Only Tools (Always Available)
list_servers- List configured Rundeck serversget_projects- List all projectsget_jobs- List jobs in a projectget_job_definition- Get complete job configurationanalyze_job- Analyze job risk and recommendationsvisualize_job- Generate workflow diagramsget_executions- List execution historyget_execution_status- Get execution detailsget_execution_output- View execution logsget_nodes- List infrastructure nodesget_node_summary- Infrastructure statisticsget_execution_metrics- Analytics and trendscalculate_job_roi- ROI analysis
Write Tools (Require --enable-write-tools)
run_job- Execute a jobrun_job_with_monitoring- Execute and monitor jobcreate_job- Create new jobjob_import- Import jobs from YAML/JSONmodify_job- Modify existing jobdelete_job- Delete a jobjob_control- Enable/disable jobs and schedulescreate_project- Create new projectabort_execution- Stop running executionretry_execution- Retry failed execution
📝 Usage Examples
From Claude Desktop
"List all projects on the production server"
"Show me jobs in the DevOps project"
"Create a new job that backs up the database daily"
"Run the deployment job with version 1.2.3"
"Show execution logs for execution 12345"
Command Line Testing
# Validate configuration
uvx --from . rundeck-mcp validate
# Test connection
curl -H "X-Rundeck-Auth-Token: $RUNDECK_API_TOKEN" \
$RUNDECK_URL/api/47/system/info
🔍 Troubleshooting
Connection Issues
Token not authorized:
- Verify token has API access permissions
- Check token hasn't expired
- Ensure user has required ACLs
Wrong API version:
- Check server version:
curl $RUNDECK_URL/api/47/system/info - Update
RUNDECK_API_VERSIONenvironment variable
Cannot connect:
- Verify URL is accessible
- Check firewall/network settings
- Ensure HTTPS for cloud instances
Debug Mode
# Run with debug logging
uvx --from . rundeck-mcp serve --log-level DEBUG --no-validate-config
Common Fixes
# Refresh installation
uvx --from git+https://github.com/yourusername/rundeck-mcp-server --force rundeck-mcp validate
# Clear uvx cache
rm -rf ~/.local/share/uv/cache
📚 Documentation
- - Variable substitution and step types
- - Detailed troubleshooting
- - Technical documentation
🤝 Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Run tests:
make check - Submit a pull request
📄 License
MIT License - see file for details.
🔗 Links
Built with ❤️ for the Rundeck community