Skip to main content
Glama

MCP Server

by zchaffee1

mcp-server

By: Zack Chaffee A20478873

A server implementing Model Coupling Protocol (MCP) capabilities for HDF5 file operations and Slurm job management.

Features

HDF5 file operations:

  • Read datasets
  • List file contents

Slurm job management:

  • Submit jobs
  • Check job status

Node Hardware Operations

  • Get CPU information
  • Get memory information
  • Get disk information
  • Get comprehensive system information

Compression Operations

  • Compress string data with gzip or zlib
  • Compress files with gzip or zlib
  • Decompress data

Initialization

Once you clone this reponsitory cd into it

After this hwe will create a virtual enviornment and install all dependincies:

uv venv .venv source .venv/bin/activate # On Windows: .venv\Scripts\activate uv pip install -e . uv pip install -e ".[test]"

Running

To startup the server run:

python -m src.server

This will autoclocate the server at http://localhost:8000.

Endpoints

  • POST /mcp: Main endpoint for MCP requests
  • GET /health: Health check endpoint

Examples:

import httpx async with httpx.AsyncClient() as client: # Read a dataset response = await client.post("http://localhost:8000/mcp", json={ "capability": "hdf5", "action": "read_dataset", "parameters": { "file_path": "/path/to/data.h5", "dataset_path": "/path/to/dataset" } }) # List contents response = await client.post("http://localhost:8000/mcp", json={ "capability": "hdf5", "action": "list_contents", "parameters": { "file_path": "/path/to/data.h5", "group_path": "/" } })
curl -X POST http://localhost:8000/mcp \ -H "Content-Type: application/json" \ -d '{ "jsonrpc": "2.0", "method": "mcp/listTools", "params": {}, "id": "1" }'

Testing

For testing rung:

pytest

For tests with coverage:

pytest --cov=src
-
security - not tested
A
license - permissive license
-
quality - not tested

local-only server

The server can only run on the client's local machine because it depends on local resources.

A server implementing Model Coupling Protocol for HDF5 file operations, Slurm job management, hardware monitoring, and data compression.

  1. Features
    1. HDF5 file operations:
    2. Slurm job management:
    3. Node Hardware Operations
    4. Compression Operations
  2. Initialization
    1. Running
      1. Endpoints
      2. Examples:
    2. Testing

      Related MCP Servers

      • -
        security
        A
        license
        -
        quality
        A Model Context Protocol server that provides file system operations, analysis, and manipulation capabilities through a standardized tool interface.
        Last updated -
        4
        TypeScript
        MIT License
      • A
        security
        A
        license
        A
        quality
        A Model Context Protocol server that enables enhanced file system operations including reading, writing, copying, moving files with streaming capabilities, directory management, file watching, and change tracking.
        Last updated -
        12
        15
        TypeScript
        MIT License
        • Linux
        • Apple
      • -
        security
        A
        license
        -
        quality
        A Model Context Protocol server that enables management of F5 devices through natural language commands, allowing users to create, update, list, and delete network objects like virtual servers, pools, and iRules via the iControl REST API.
        Last updated -
        5
        Python
        MIT License
        • Linux
      • -
        security
        F
        license
        -
        quality
        A JSON-RPC 2.0 compliant server that enables interaction with HDF5 data files and Slurm job scheduling through standardized API endpoints.
        Last updated -
        Python

      View all related MCP servers

      MCP directory API

      We provide all the information about MCP servers via our MCP API.

      curl -X GET 'https://glama.ai/api/mcp/v1/servers/zchaffee1/mcp-server'

      If you have feedback or need assistance with the MCP directory API, please join our Discord server