Skip to main content
Glama
Process Monitor MCP

Process Monitor MCP

by Ahmad-1276

Process Monitor MCP

Inspect, search, and safely manage running processes from an AI agent.

Python MCP License

Tools

Tool

Description

list_processes

List processes sorted by CPU, memory, name, or PID

search_processes

Find processes by name or command line

get_process_details

Detailed information for a single PID

get_process_tree

Parent and child process hierarchy for a PID

terminate_process

Terminate a process after an explicit confirmation

Related MCP server: MCP Process Server

Requirements

  • Python 3.10+

  • pip install -e .

Install

git clone https://github.com/Ahmad-1276/process-monitor-mcp.git
cd process-monitor-mcp

python3 -m venv .venv
source .venv/bin/activate        # Windows: .venv\Scripts\activate

pip install -e .

Run

process-monitor-mcp
# or
python -m process_monitor_mcp.server

The server speaks the MCP stdio protocol and waits for a client.

Connect an MCP client

Add this to your client's MCP config (Claude Desktop, Cursor, VS Code, etc.):

{
  "mcpServers": {
    "process-monitor": {
      "command": "/absolute/path/to/.venv/bin/process-monitor-mcp",
      "args": []
    }
  }
}

Use the absolute path to the executable inside your virtual environment. On Windows the path is .venv\Scripts\process-monitor-mcp.exe.

Example prompts

  • Show the top 10 processes by memory.

  • Is nginx running?

  • What is PID 1234 doing?

  • Show the child processes of PID 1000.

Notes

Read-only except terminate_process, which requires confirm=True and refuses PID 0, PID 1, and the MCP server's own process. Use it carefully.

Development

pip install -e ".[dev]"
pytest -q

License

MIT — see LICENSE.

Available Tools

5 tools
get_process_detailsB

Return detailed information for a single process ID.

Inputs: pid (required). Returns: object

get_process_treeC

Return a process and its descendants as a flat tree.

Inputs: pid (required). Returns: object

list_processesA

List processes sorted by CPU, memory, name, or PID.

Args: limit: Maximum number of processes to return (1-200). sort_by: One of "cpu", "memory", "name", or "pid".

Inputs: limit, sort_by. Returns: object

search_processesB

Find processes whose name or command line contains a query string.

Inputs: query (required), limit. Returns: object

terminate_processA

Terminate a process. Requires confirm=True and refuses critical PIDs.

Args: pid: Process ID to terminate. confirm: Must be true to perform the action.

Inputs: pid (required), confirm. Returns: object

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 5 tools

    Disambiguation5/5

    Each tool has a distinct process-related purpose: listing, searching, details, tree, and termination. There is little risk of confusing one action with another because the names and descriptions map cleanly to separate operations.

    Naming Consistency5/5

    All tools follow a consistent verb_noun pattern: list_processes, search_processes, get_process_details, get_process_tree, terminate_process. The convention is predictable and readable throughout.

    Tool Count5/5

    Five tools is well-scoped for a process monitoring server. Each tool earns its place by covering a distinct monitoring or control action without unnecessary surface area.

    Completeness4/5

    The server covers the core monitoring workflow: list, search, inspect details, view process trees, and terminate processes. Minor lifecycle gaps such as starting, suspending, or resuming processes exist, but they are reasonable omissions for a monitor-focused tool set.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers