Agentic MCP tools for HPC
Project description
hpc-mcp
🌀 Agentic MCP tools for High Performance Computing
Related Projects
- flux-mcp: MCP functions for Flux Framework.
- fractale: (fractale) MCP orchestration (agents, databases, ui interfaces).
Usage
This is a library of MCP tools (functions, prompts, and resources) intended for converged computing and HPC use cases. A demo server is provided here, and largely functions are expected to be used a-la-carte as imports to other libraries. We welcome contributions of all functions types that are related to HPC, converged computing, and science. These MCP tools can be used via a standalone server, or combined with other tools.
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 (TBA)
fastmcp
You will need fastapi and fastmcp installed.
# fastmcp
pip install fastmcp fastapi
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 hpc_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 hpc_mcp.server | jq
# FastMCP
python3 -m hpc_mcp.server.fastmcp
Testing
I will add tools to git as I write tests for them. To test, start the fastmcp server in one terminal:
python3 -m hpc_mcp.server.fastmcp
In another terminal, run the test. You'll need to pip install pytest pytest-asyncio
pytest -xs tests/test_build_docker.py
# or
pytest -xs tests/test_*.py
TODO
- Add annotated descriptions to all functions for LLM.
Tools to add:
- helpers
- debug
- result parser (regular expressions)
- kubernetes
- deploy job
- deploy minicluster
License
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hpc_mcp-0.0.16.tar.gz.
File metadata
- Download URL: hpc_mcp-0.0.16.tar.gz
- Upload date:
- Size: 34.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a3aa3345242abbc37c0b7b35b8aa5b8c8163043e960530d76f4047872527aa83
|
|
| MD5 |
092885c9ed363966304e3b8b3f23e646
|
|
| BLAKE2b-256 |
3d741b1917f6906556e035167eed34c717d07622927011da81502e2632a7b936
|
File details
Details for the file hpc_mcp-0.0.16-py3-none-any.whl.
File metadata
- Download URL: hpc_mcp-0.0.16-py3-none-any.whl
- Upload date:
- Size: 67.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5de983b2b45ed463f02b834681466bcb53e01557f6c282fdf6a1d388622464e9
|
|
| MD5 |
eb7f9b68292e60d1581c2fcc67c0a722
|
|
| BLAKE2b-256 |
a8a1ef6ae2aa881e943340ec08b2bd5ccc5492f7adee784b0034167c7bff05a6
|