Srunx logo

Srunx

by ksterx

Manage local or SSH-connected SLURM clusters through MCP, including jobs, workflows, GPUs, profiles, and file synchronization.

Install Srunx

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "ksterx-srunx": {
      "command": "uvx",
      "args": [
        "--from",
        "srunx[mcp]",
        "srunx-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

uvx --from srunx[mcp] srunx-mcp

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

ksterx/srunx connects MCP clients to SLURM clusters, either locally or through configured SSH profiles. Its 14 tools cover job submission and control, YAML workflow execution, GPU and job monitoring, SSH profile management, and remote file synchronization. Reach for it when an agent needs to operate an HPC workload without manually switching between SLURM commands, SSH sessions, and file-transfer tools. The package also includes a CLI, Python API, and FastAPI web dashboard.

Use cases

  • Submit training jobs to a local or remote SLURM cluster
  • Run dependent YAML workflows with an MCP client
  • Check GPU availability before launching workloads
  • Monitor job states and stream cluster logs
  • Synchronize code and manage SSH cluster profiles

Key features

  • 14 MCP tools for SLURM and SSH-backed clusters
  • Local and remote job submission
  • YAML workflows with dependency graphs
  • GPU and job-state monitoring
  • SSH profile and file synchronization support
  • Pyxis, Apptainer, and Singularity integration

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

15/15 checks healthy over the last 112d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 4d ago via OSV.dev · srunx-mcp (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars23Stargazers on the source repository.
Last commit8d agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Directory activity8 viewsConfig copies, upvotes, and views on AllMCPs.

How Srunx works

What ksterx/srunx does

ksterx/srunx gives AI agents an MCP interface to SLURM workload management. It can target a local SLURM installation or dispatch operations to an SSH-connected cluster through a named profile. The package covers the routine job lifecycle: submit work, inspect status, cancel jobs, follow logs, and review cluster resources.

The server is part of the broader srunx package, which also provides a command-line interface, Python API, and FastAPI web dashboard. MCP support is installed through the package's optional mcp extra.

How it works

Operations can run against the local cluster or use an SSH profile to reach a remote cluster. Remote execution uses the same operational model as local execution: the target is selected with a profile rather than a separate remote command mode. srunx can synchronize code to the remote environment, submit the job there, and stream logs back.

Workflow execution is based on YAML definitions. A workflow can describe multiple jobs, dependencies, arguments, exported values, and container settings. Jobs whose dependencies are complete can proceed, while independent branches can run in parallel. Command-line overrides support workflow arguments and matrix-style parameter sweeps.

The underlying package requires Python 3.12 or newer and access to a SLURM cluster, either directly or through SSH. Container-oriented workloads can use Pyxis, Apptainer, or Singularity settings.

Setup and configuration

Install the package with either uv add srunx or pip install srunx. Add the MCP extra when the MCP server is needed:

bash
uv add "srunx[mcp]"

Configure SSH targets as srunx profiles, then select one for remote operations. The CLI supports an SRUNX_SSH_PROFILE environment variable as an alternative to repeatedly passing a profile option. SSH profiles can be added, listed, synchronized, and tested through the srunx SSH commands.

The same installation includes the web dashboard and Slack notification support. The dashboard can be launched locally with srunx ui; its default address is http://127.0.0.1:8000, and the port can be changed.

Tools and capabilities

The MCP integration spans 14 tools for interacting with SLURM and SSH-backed clusters. Its supported task areas include:

  • Submitting and cancelling SLURM jobs.
  • Listing active jobs, partitions, node states, and accounting information.
  • Viewing or streaming job output and watching job or resource changes.
  • Running and validating YAML workflows with dependency graphs.
  • Passing workflow arguments and launching parameter sweeps with parallelism limits.
  • Summarizing GPU availability across partitions.
  • Managing SSH profiles and synchronizing files for remote execution.
  • Managing per-remote-account secrets and srunx configuration.
  • Creating, listing, and pruning read-only code snapshots for cluster use.

The wider srunx package also provides job templates, a browser-based dashboard, workflow DAG visualization, remote file browsing, and notifications through Slack. These package features complement the MCP interface but are accessed through the CLI or web UI where applicable.

Limitations and notes

srunx is designed around SLURM and requires access to a compatible cluster. It is aimed at the workflow of SLURM job submission, monitoring, and lightweight dependency orchestration rather than a full scientific workflow platform. For larger workflow systems, the project positions tools such as Snakemake or Nextflow as better fits.

Remote operation depends on SSH profile configuration and the target cluster's SLURM environment. Container support covers Pyxis, Apptainer, and Singularity, but the relevant runtimes and cluster configuration still need to be available on the target system.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Srunx

ksterx/srunx is an MCP server that connects AI clients to local SLURM installations and SSH-accessible HPC clusters. Its main tools submit, monitor, cancel, and inspect jobs; run YAML workflows; check GPU resources; manage SSH profiles; and synchronize files for remote execution.

Install srunx with the MCP extra using `uv add "srunx[mcp]"` or the equivalent pip installation. Python 3.12 or newer and access to a local or SSH-connected SLURM cluster are required.

Yes, ksterx/srunx can submit to remote clusters through SSH profiles. Select a profile for the operation; srunx synchronizes code, runs the SLURM submission remotely, and can stream logs back without requiring a separate remote command mode.

Yes, it runs YAML workflows with dependency graphs. Dependent jobs wait for their prerequisites, independent branches can run in parallel, and workflow arguments or matrix sweep values can be supplied from the command line.

Yes, ksterx/srunx can be used with Cursor as an MCP server. Install srunx with its `mcp` extra and configure the server in the client before using its SLURM and SSH-backed capabilities.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewSrunx AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/ksterx-srunx?style=directory)](https://allmcps.com/mcp/ksterx-srunx)
HTML Embed
<a href="https://allmcps.com/mcp/ksterx-srunx"><img src="https://allmcps.com/api/badge/ksterx-srunx?style=directory" alt="Srunx on AllMCPs" /></a>