What is Dispatcher MCP Server?
An MCP (Model Context Protocol) server that wraps the dpdispatcher library, allowing language models or other MCP clients to submit and manage computational jobs on local machines or HPC clusters supported by dpdispatcher.
How to use Dispatcher MCP Server?
Install Python 3.x and the required libraries (dpdispatcher, mcp, anyio). Place the server files (fast_server.py, job_manager.py, __init__.py) in a directory (e.g., dispatcher_mcp_server). Configure dpdispatcher if needed (e.g., SSH keys for remote HPCs, Bohrium credentials). Run python dispatcher_mcp_server/fast_server.py from the parent directory. The server listens via stdio and can be integrated with MCP clients (e.g., Cline) by adding a JSON configuration block to the client’s MCP settings.
Key features of Dispatcher MCP Server
- Submits new computation jobs via the
submit_job tool.
- Checks job status with the
query_status tool.
- Cancels running or queued jobs using the
cancel_job tool.
- Retrieves result file paths for completed jobs via
fetch_result.
- Includes MCP Resources and Prompts for guided interactive job configuration.
- Supports stdio transport for local integration (e.g., with Cline).
Use cases of Dispatcher MCP Server
- Submit computational jobs to local machines or HPC clusters through an LLM interface.
- Monitor job progress and retrieve results programmatically via MCP clients.
- Cancel jobs that are no longer needed without manual intervention.
- Guide an LLM through an interactive job configuration process using built-in prompts.
评论