npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

slurm-mcp

v0.2.2

Published

Read-only Slurm MCP server for LLM tools (TypeScript)

Readme

slurm-mcp

A Model Context Protocol (MCP) server that exposes read-only Slurm REST API endpoints as MCP tools. This server connects to your Slurm cluster via the official Slurm REST API, providing secure, read-only access to job and cluster information. You can use it with Cursor, any other MCP-compatible tool.

Quick start (npx)

SLURM_API_BASE_URL="http://YOUR-SLURM-REST:6820" \
SLURM_API_VERSION="v0.0.40" \
SLURM_AUTH_MODE="bearer" \
SLURM_API_KEY="YOUR_TOKEN" \
SLURM_USERNAME="root" \
NPM_CONFIG_YES=true npx slurm-mcp@latest
  • ESM only; Node >= 20 required.
  • The server starts and waits on stdio for an MCP client.

Integrate with Cursor

Add to .cursor/mcp.json:

{
  "mcpServers": {
    "slurm": {
      "command": "npx",
      "args": ["-y", "slurm-mcp@latest"],
      "env": {
        "SLURM_API_BASE_URL": "http://YOUR-SLURM-REST:6820",
        "SLURM_API_VERSION": "v0.0.40",
        "SLURM_AUTH_MODE": "bearer",
        "SLURM_API_KEY": "YOUR_TOKEN",
        "SLURM_USERNAME": "root",
        "SLURM_TTL_NODES": "60",
        "SLURM_TTL_QUEUE": "10",
        "SLURM_TTL_PARTITIONS": "60",
        "SLURM_TTL_JOB": "5"
      }
    }
  }
}

Tools

  • slurm_ping: Slurm REST health (core/db)
  • slurm_cluster_info: API metadata and ping results
  • slurm_queue_summary: Totals and per-partition pending/running
  • slurm_job_get: Get job by ID (tries core, falls back to SlurmDB)
  • slurm_jobs_search: Flexible job search (user/states/partitions/window)
  • slurm_jobs_list: Cluster-wide list (no user filter)
  • slurm_jobs_list_for_user: List jobs for a specific user
  • slurm_jobs_history: Historical jobs over a time window
  • slurm_partitions_list: Partitions and limits
  • slurm_nodes_list: Node summaries
  • slurm_node_get_by_name: Get a single node by name
  • slurm_nodes_search_by_feature: Nodes filtered by feature
  • slurm_fairshare_get: Fairshare info for a user

Examples

  • Search nodes by feature:
{ "feature": "gpu" }
  • Get node by name:
{ "name": "c002" }

Configuration (env)

Required:

  • SLURM_API_BASE_URL: Base URL to slurmrestd (no trailing /slurm)
  • SLURM_AUTH_MODE: bearer or header
  • SLURM_API_KEY: token (Bearer or X-SLURM-USER-TOKEN)
  • SLURM_USERNAME: only needed when header mode is used

Optional:

  • SLURM_API_VERSION: default v0.0.40
  • SLURM_CLUSTER_ID: default default
  • SLURM_REQUEST_TIMEOUT_MS: default 5000
  • SLURM_DEFAULT_HISTORY_DAYS: default 7
  • SLURM_DEFAULT_MAX_RESULTS: default 100
  • Cache TTLs: SLURM_TTL_QUEUE (10), SLURM_TTL_PARTITIONS (60), SLURM_TTL_NODES (60), SLURM_TTL_JOB (5)

Security & efficiency

  • Read-only wrapper; no write operations to Slurm are exposed.
  • Response caching with short TTLs to reduce load.
  • Bounded queries (limits, cursors) to avoid expensive scans.