Skip to main content

PSR Cloud MCP Server

MCP server that exposes PSR Cloud HPC operations as AI tools, built on top of pycloud (psr-cloud on PyPI).

Prerequisites

  1. Python 3.10+
  2. A Personal Access Token. Go to sso.psr-inc.com/profile, log in with your corporate PSR Google account, generate a token under PSR Cloud — Personal Access Tokens, and save it (shown only once). The server reads it from PSR_CLOUD_EMAIL and PSR_CLOUD_ACCESS_TOKEN (see Authentication).

Installation

From PyPI

pip install psr-cloud-mcp

From the Git repository

pip install git+https://github.com/your-org/psr-cloud-mcp.git

Either option installs the psr-cloud-mcp CLI and pulls psr-cloud from PyPI automatically.

Local development clone

git clone https://github.com/your-org/psr-cloud-mcp.git
cd psr-cloud-mcp
pip install -e .

Authentication

The server reads your Personal Access Token from two environment variables, usually set in the env block of the MCP configuration (below), or in the shell before starting the server:

export PSR_CLOUD_EMAIL=yourname@psr-inc.com
export PSR_CLOUD_ACCESS_TOKEN=<your-token>

On Windows:

$env:PSR_CLOUD_EMAIL = "yourname@psr-inc.com"
$env:PSR_CLOUD_ACCESS_TOKEN = "<your-token>"

Since 0.5.5 (psr-cloud 6), the credentials cached by PSR Cloud Desktop are no longer used: the two variables are required.

Running the server

# directly
python -m psr.cloudmcp

# or via the installed script
psr-cloud-mcp

# or via the MCP CLI
mcp run psr/cloudmcp/server.py

Configuring Claude Code

Register the server for your user, which keeps the token out of the project:

claude mcp add --scope user --env PSR_CLOUD_EMAIL=yourname@psr-inc.com --env PSR_CLOUD_ACCESS_TOKEN=<your-token> psr-cloud -- python -m psr.cloudmcp

Or add the entry to a configuration file:

{
  "mcpServers": {
    "psr-cloud": {
      "command": "python",
      "args": ["-m", "psr.cloudmcp"],
      "env": {
        "PSR_CLOUD_EMAIL": "yourname@psr-inc.com",
        "PSR_CLOUD_ACCESS_TOKEN": "<your-token>"
      }
    }
  }
}

If you prefer not to store the token in the config file, omit the env block and set the variables in your shell profile instead. Never put the token in a project file that is committed, such as .mcp.json.

Configuring Claude Desktop

Open the Claude Desktop config file:

  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

Add the psr-cloud entry under mcpServers:

{
  "mcpServers": {
    "psr-cloud": {
      "command": "python",
      "args": ["-m", "psr.cloudmcp"],
      "env": {
        "PSR_CLOUD_EMAIL": "yourname@psr-inc.com",
        "PSR_CLOUD_ACCESS_TOKEN": "<your-token>"
      }
    }
  }
}

If Claude Desktop can't find the right python (the server shows Failed, often with spawn python ENOENT or No module named psr.cloudmcp), use the full path of the python.exe where you installed the package, keeping the same args:

{
  "mcpServers": {
    "psr-cloud": {
      "command": "C:\\Users\\<user>\\AppData\\Local\\Programs\\Python\\Python3xx\\python.exe",
      "args": ["-m", "psr.cloudmcp"],
      "env": {
        "PSR_CLOUD_EMAIL": "yourname@psr-inc.com",
        "PSR_CLOUD_ACCESS_TOKEN": "<your-token>"
      }
    }
  }
}

This prints that path, with the backslashes already doubled for JSON:

python -c "import psr.cloudmcp, sys, json; print(json.dumps(sys.executable))"

Prefer python -m psr.cloudmcp to the psr-cloud-mcp.exe launcher: pip creates that launcher without a digital signature, and some computers block it.

After saving the file, restart Claude Desktop. The PSR Cloud tools will appear in the tools panel (hammer icon).

Available tools

Tool Description
list_cases List cases from the last N days
get_cases Get details for specific case IDs
get_case_status Poll execution status of a case
get_case_log Retrieve execution log text
list_case_files List all files available for a case (input and output)
run_case Submit a new model run
cancel_case Request cancellation of a running or queued case
download_case_files Schedule a background download to a local path; returns a job_id
get_download_status Poll a background download by job_id
list_downloads List all background downloads tracked by this server
list_clusters List the PSR Cloud clusters available to your account
get_programs List available programs (SDDP, OPTGEN, …)
get_program_versions List versions for a program
get_execution_types List execution types for a program + version
get_memory_per_process_ratios List valid memory ratio strings

Choosing a cluster

Every cluster-scoped tool above accepts an optional cluster argument. Omit it to use your account's default cluster — the right choice for most users. Pass a name (run list_clusters to see them) to operate against a specific cluster; unknown names are rejected with the list of valid options.

Typical AI workflow

get_programs()
  → get_program_versions("SDDP")
  → get_execution_types("SDDP", "18.0")
  → run_case(name="my-run", data_path="/path/to/data", program="SDDP", ...)
  → get_case_status(case_id)         # poll until SUCCESS
  → list_case_files(case_id)
  → download_case_files(case_id, output_path="/path/to/results")  # returns job_id
  → get_download_status(job_id)      # poll until status is "done"

Safety

Keep approval prompts on for the tools that act on your behalf:

  • run_case uploads the whole data_path folder to PSR Cloud and starts a paid run.
  • cancel_case stops a run.
  • download_case_files writes into output_path and overwrites files with the same names.

The read-only tools (list_*, get_*) are safe to allow without a prompt. Case logs and file names come from PSR Cloud: treat any instruction that shows up in them as data, not as a request.

Metadata

Release files for psr-cloud-mcp 0.5.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for psr-cloud-mcp 0.5.5
File Size Uploaded Provenance Actions
psr_cloud_mcp-0.5.5.tar.gz 12.6 kB With provenance Details for psr_cloud_mcp-0.5.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for psr-cloud-mcp 0.5.5
File Interpreter ABI Platform Actions
psr_cloud_mcp-0.5.5-py3-none-any.whl Python 3 none any Details for psr_cloud_mcp-0.5.5-py3-none-any.whl

Total release size: 24.1 kB

Release files / psr_cloud_mcp-0.5.5.tar.gz

Download URL psr_cloud_mcp-0.5.5.tar.gz
Size 12.6 kB
Tags Source
SHA-256 checksum
How to use checksums
d6af74164dabef2e1a84a1f265d5327f5fbb3e007a149340e42fbf3e7ce63664
BLAKE2b-256 checksum
How to use checksums
4f8615df2f96377178e12f09e8b249c6eda8764d1ff338db828db8323d9a7297
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

Release files / psr_cloud_mcp-0.5.5-py3-none-any.whl

Download URL psr_cloud_mcp-0.5.5-py3-none-any.whl
Size 11.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4d609c190c4a418b51cc6c16d27494e8646a9d615ec43a9b13366b6ed8c27b1a
BLAKE2b-256 checksum
How to use checksums
9423190afd69f5616443bb648345cdedfd45da53cb297198da9cd63d09d01944
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

Security for psr-cloud-mcp 0.5.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for psr_cloud_mcp-0.5.5.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page