Flux
FreeNot checkedProvides agentic MCP tools for the Flux Framework, enabling job submission, management, and resource scheduling for HPC workloads.
About
Provides agentic MCP tools for the Flux Framework, enabling job submission, management, and resource scheduling for HPC workloads.
README
🌀 Agentic MCP tools for Flux Framework

Related Projects
- fractale-mcp: (fractale) MCP orchestration (agents, databases, ui interfaces).
- hpc-mcp: HPC tools for a larger set of HPC and converged computing use cases.
Usage
These Flux MCP tools can be used via a standalone server, or combined with other tools.
Note that along with flux-python (comes packaged with Flux, or pip install flux-python==<version> you
can optionally install flux-sched-py for flux-sched functionality.
Server
We provide examples for fastmcp and a vanilla mcp (stdio) setup. Neither requirements are added to the install directly, so it's up to the user (you) to install. Tests are performed with fastmcp.
fastmcp
You will need fastapi and fastmcp installed.
# fastmcp
pip install fastmcp fastapi
# in the devcontainer
pip install fastmcp fastapi --break-system-packages
To start the demo server:
# Vanilla MCP (with cli)
echo '{"jsonrpc": "2.0", "id": 1, "method": "initialize", "params": {"protocolVersion": "2024-11-05", "capabilities": {}, "clientInfo": {"name": "test", "version": "1.0"}}}' | python3 -m flux_mcp.server | jq
# Initialize and list tools
(echo '{"jsonrpc": "2.0", "id": 1, "method": "initialize", "params": {"protocolVersion": "2024-11-05", "capabilities": {}, "clientInfo": {"name": "manual-test", "version": "1.0"}}}';
echo '{"jsonrpc": "2.0", "method": "notifications/initialized"}';
echo '{"jsonrpc": "2.0", "id": 2, "method": "tools/list"}') | python3 -m flux_mcp.server | jq
# FastMCP
python3 -m flux_mcp.server.fastmcp
Docker
We have a provided Dockerfile that builds and includes mcp-server to provide the basic set of Flux endpoints (submit, info, cancel, etc) via the configuration file flux-mcp.yaml. You can tweak that file and build, or just use from our GitHub packages registry.
docker build -t ghcr.io/converged-computing/flux-mcp:latest .
docker run -it -p 8089:8089 ghcr.io/converged-computing/flux-mcp:latest
Testing
You need pytest
pip install pytest --break-system-packages
I will add tools to git as I write tests for them. To test, start the fastmcp server in one terminal:
python3 -m flux_mcp.server.fastmcp
To test flux-sched, ensure libreapi_cli.so is on the LD_LIBRARY_PATH of the server:
export LD_LIBRARY_PATH=/usr/lib/flux/
python3 -m flux_mcp.server.fastmcp
In another terminal, run the test. You'll need to pip install pytest pytest-asyncio
pytest -xs tests/test_flux_validate.py
pytest -xs tests/test_flux_counts.py
pytest -xs tests/test_flux_job_delegation.py
pytest -xs tests/test_flux_job_core.py
pytest -xs tests/test_transformers.py
pytest -xs tests/test_flux_resource.py
# Requires libreapi_cli.so
pytest -xs tests/test_flux_sched.py
# or
pytest -xs tests/test_*.py
Tools
Tools to add:
- flux
- flux-sched
- grow
- shrink
- create resource graph
- match allocate
- cancel
- partial-cancel
- satisfy
- flux-core
- submit jobs
- job info
- cancel job
- validator
- counter
- batch jobs
- canonical jobspec
- json jobspec
- topology?
- delegation
- local flux URI
- translation (the transformers?)
- flux-sched
TODO
- Add annotated descriptions to all functions for LLM.
License
HPCIC DevTools is distributed under the terms of the MIT license. All new contributions must be made under this license.
See LICENSE, COPYRIGHT, and NOTICE for details.
SPDX-License-Identifier: (MIT)
LLNL-CODE- 842614
Installing Flux
This server has no published package — it is built from source. Open the repository and follow its README.
▸ github.com/converged-computing/flux-mcpFAQ
Is Flux MCP free?
Yes, Flux MCP is free — one-click install via Unyly at no cost.
Does Flux need an API key?
No, Flux runs without API keys or environment variables.
Is Flux hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Flux in Claude Desktop, Claude Code or Cursor?
Open Flux on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
GitHub
PRs, issues, code search, CI status
by GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
by mcpdotdirectCompare Flux with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All development MCPs
