Skip to main content
Glama
MCP System Tools Server

MCP System Tools Server

by B-DINESH9

MCP System Tools Server

This is a production-ready Model Context Protocol (MCP) server built in Python. It provides custom tools that AI Agents (like Claude or custom LangChain/LlamaIndex bots) can connect to and use to interact with the host system.

πŸ› οΈ Included Tools

  1. get_system_stats: Retrieves current live system statistics (CPU usage, Memory usage, Available Memory).

  2. calculate_expression: A safe math evaluator that performs basic arithmetic operations.

Related MCP server: mcp-tespit

If you have Docker installed, you can spin up the entire isolated environment with one command:

docker-compose up --build -d

The Server-Sent Events (SSE) endpoint will be available at: http://localhost:8000/sse

πŸ’» How to Run (Local Python)

If you don't have Docker, you can run the server directly using Python.

  1. Install the requirements:

pip install -r requirements.txt
  1. Run the server:

python mcp_server.py

The server will boot up and listen for connections on http://127.0.0.1:8000/sse.

πŸ§ͺ Testing the Server

You can quickly test your tools using the official MCP Inspector. Run the following command in a new terminal:

npx -y @modelcontextprotocol/inspector
  • Select SSE as the transport.

  • Enter http://127.0.0.1:8000/sse as the URL and click Connect.

Alternatively, run the included test_client.py script:

python test_client.py

πŸ€– Connecting to Claude Desktop

You can easily give Claude Desktop the ability to use these tools. Add this configuration to your Claude config file (claude_desktop_config.json):

{
  "mcpServers": {
    "system-tools": {
      "command": "python",
      "args": [
        "path/to/your/mcp_server.py"
      ]
    }
  }
}

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to monitor real-time CPU, RAM, and disk usage on the local machine.
      -
    • F
      license
      Not graded
      quality
      C
      maintenance
      Enables 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.
      -
    • A
      license
      B
      quality
      B
      maintenance
      Enables AI agents to perform accurate local computations including arbitrary-precision math, date handling, unit conversion, subnet calculations, encoding, hashing, and text analysis, all without network calls or API keys.
      27
      103 npm
      MIT