MCP System Tools Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
MCP System Tools Server
A Python Model Context Protocol (MCP) server built with FastMCP that exposes host system monitoring and safe arithmetic calculation tools to AI agents and MCP clients over Server-Sent Events (SSE).
Prerequisites
Python 3.10+ (required for local execution)
Docker & Docker Compose (optional, for containerized execution)
Node.js / npm (optional, required only for running the MCP Inspector via
npx)
Related MCP server: mcp-tespit
Project Structure
mcp-system-tools/
├── mcp_server.py # FastMCP server, tool definitions, and FastAPI app definition
├── test_client.py # Async Python test client for verifying SSE tool discovery & calls
├── requirements.txt # Python dependencies (fastapi, uvicorn, fastmcp, psutil)
├── Dockerfile # Python 3.10-slim container setup
├── docker-compose.yml # Docker Compose service configuration on port 8000
└── README.md # Project documentationIncluded Tools
1. get_system_stats
Retrieves live CPU and memory usage metrics from the host machine using psutil.
Parameters: None (
{})Returns (
dict):cpu_usage_percent(float): CPU utilization percentage sampled over a 1-second interval.memory_usage_percent(float): Percentage of system virtual memory currently in use.memory_available_mb(float): Available physical memory in megabytes.
Example Output:
{
"cpu_usage_percent": 14.5,
"memory_usage_percent": 62.3,
"memory_available_mb": 6124.82
}2. calculate_expression
Evaluates a basic arithmetic expression after validating it against a strict character allowlist (0-9, +, -, *, /, (, ), ., and whitespace).
Parameters:
expression(string, required): Arithmetic expression to evaluate (e.g.,"(12 + 8) * 3 / 2").
Returns (
float): Evaluated numeric result. RaisesValueErrorif disallowed characters or invalid syntax are provided.
Getting Started
1. Clone the Repository
git clone https://github.com/B-DINESH9/mcp-system-tools.git
cd mcp-system-tools2. Run Locally (Python)
Install dependencies (using a virtual environment is recommended):
pip install -r requirements.txtStart the MCP server:
python mcp_server.pyThe server starts with SSE transport and listens at:
http://127.0.0.1:8000/sse
Note on FastAPI
/health:mcp_server.pyalso defines a FastAPIappinstance with aGET /healthendpoint, while the__main__entrypoint runsmcp.run(transport="sse")directly.
3. Run with Docker
Spin up the container using Docker Compose:
docker compose up --build -d(If using Docker Compose v1, run docker-compose up --build -d.)
This exposes port 8000 and mounts ./mcp_server.py into /app/mcp_server.py inside the container (mcp_tool_server).
Testing the Server
Make sure the server is running first (python mcp_server.py), then verify it using either option below.
Option A: Python Test Client
Run the included test_client.py script in a new terminal:
python test_client.pyThis connects to http://127.0.0.1:8000/sse, lists discovered tools, and executes get_system_stats.
Option B: MCP Inspector (Web UI)
Launch the official MCP Inspector:
npx -y @modelcontextprotocol/inspectorIn the Inspector UI:
Select SSE as the transport type.
Enter
http://127.0.0.1:8000/sseas the URL.Click Connect to browse schemas and test tools interactively.
Connecting to Claude Desktop
Because mcp_server.py runs using SSE transport (mcp.run(transport="sse")), you have two ways to connect it to stdio-based clients like Claude Desktop (claude_desktop_config.json):
Keep SSE mode (with
mcp-remotebridge): Startpython mcp_server.pyfirst, then configure:{ "mcpServers": { "system-tools": { "command": "npx", "args": [ "-y", "mcp-remote", "http://127.0.0.1:8000/sse" ] } } }Direct Python subprocess (stdio mode): Update the last line of
mcp_server.pyfrommcp.run(transport="sse")tomcp.run(), then configure:{ "mcpServers": { "system-tools": { "command": "python", "args": [ "/absolute/path/to/mcp_server.py" ] } } }
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Exact arithmetic and statistics for AI agents and apps. Evaluate math expressions safely and get...
60+ units, live FX, timezones, and date arithmetic for AI agents.
Utility tools for AI agents: hashing, text stats, validation, DNS, currency, GEO audits.
500+ deterministic tools for AI agents: math, conversion, validation, hashing, encoding, date/time.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceGives AI agents real-time access to system metrics, process management, and container orchestration.-
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to monitor real-time CPU, RAM, and disk usage on the local machine.-
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to analyze text and retrieve real-time system metrics such as CPU, memory, and uptime through LangChain tool calling, with an embedded web UI for testing queries and viewing tool execution logs.-
- AlicenseNot gradedqualityCmaintenanceEnables LLMs to monitor system health, manage processes, execute shell commands, and inspect environment variables and directories.1MIT