Skip to main content
Glama
Process Monitor MCP

Process Monitor MCP

by Ahmad-1276
README.md
# Process Monitor MCP

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

![Python](https://img.shields.io/badge/Python-3.10%2B-3776AB?logo=python&logoColor=white)
![MCP](https://img.shields.io/badge/MCP-Model%20Context%20Protocol-000000)
![License](https://img.shields.io/badge/license-MIT-green)

## 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 |

## Requirements

- Python 3.10+
- `pip install -e .`

## Install

```bash
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

```bash
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.):

```json
{
  "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

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

## License

MIT — see [LICENSE](LICENSE).

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