Back to Browse

Whats Running MCP Server

by Stcmain
Developer ToolsLow Risk10.0MCP RegistryLocal
Free

Server data from the Official MCP Registry

Live OS ground truth for agents: running agent sessions, listening ports, daemons, system load.

About

Live OS ground truth for agents: running agent sessions, listening ports, daemons, system load.

Security Report

10.0
Low Risk10.0Low Risk

Valid MCP server (2 strong, 3 medium validity signals). No known CVEs in dependencies. Package registry verified. Imported from the Official MCP Registry.

3 files analyzed · 1 issue found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Required

This plugin requests these system permissions. Most are normal for its category.

env_vars

Check that this permission is expected for this type of plugin.

Shell Command Execution

Runs commands on your machine. Be cautious — only use if you trust this plugin.

What You'll Need

Set these up before or after installing:

Comma-separated process-name substrings treated as agent sessions. Default: claude,codex,aider,cursor-agent,copilot,gooseOptional

Environment variable: WR_AGENT_PATTERNS

How to Install

Add this to your MCP configuration file:

{
  "mcpServers": {
    "io-github-stcmain-whats-running-mcp": {
      "env": {
        "WR_AGENT_PATTERNS": "your-wr-agent-patterns-here"
      },
      "args": [
        "-y",
        "whats-running-mcp"
      ],
      "command": "npx"
    }
  }
}

Documentation

View on GitHub

From the project's GitHub README.

whats-running-mcp

Ground truth for agent fleets. An MCP server that tells your AI agent what is actually running on the machine — live agent sessions, listening TCP ports, loaded daemons, system load — read straight from the OS (ps / lsof / launchctl / df), never from docs, transcripts, or memory files.

Why

If you run more than one coding-agent session (Claude Code, Codex, Aider…), you've seen this failure mode: an agent "health-checks" a server that died weeks ago, or confidently reports a daemon as live because an old transcript said so. Model memory is a cache with no invalidation. The OS is the source of truth.

This server started as a shell script (whats-running) I wrote after my own fleet of Claude Code sessions kept reporting stale state as live. Wrapping it in MCP means every session grounds itself the same way, automatically.

Tools

ToolWhat it answers
whats_runningFull snapshot in one call — use at session start
agent_sessionsWhich agent processes are live? Terminal-attached vs detached/orphan, with pid, uptime, and working directory
listening_portsIs service X actually up? Every TCP LISTEN socket with owning process
daemonsWhat persistent services are loaded? launchctl (macOS, non-Apple) or systemd user services (Linux), with optional label filter
system_statsLoad average, uptime, root-disk free space

Install

Register with Claude Code (available in every session):

claude mcp add --scope user whats-running -- npx -y whats-running-mcp

Or in any MCP client config:

{
  "mcpServers": {
    "whats-running": {
      "command": "npx",
      "args": ["-y", "whats-running-mcp"]
    }
  }
}
git clone https://github.com/stcmain/whats-running-mcp.git
cd whats-running-mcp
npm install && npm run build
# then point your client at node /path/to/whats-running-mcp/dist/index.js

Published as whats-running-mcp on npm and as io.github.stcmain/whats-running-mcp in the MCP Registry.

Configuration

Env varDefaultPurpose
WR_AGENT_PATTERNSclaude,codex,aider,cursor-agent,copilot,gooseComma-separated substrings that mark a process as an "agent" in agent_sessions

Design notes

  • Read-only by construction. Every command is a fixed binary with fixed flags via execFile — no shell, and nothing derived from model input is ever executed. The only model-controlled inputs are a boolean and a substring filter applied in-process.
  • Local information disclosure is the point. The model sees process names, pids, working directories, and ports of your own machine. Don't attach this server to an untrusted client.
  • Best-effort, never blocking. Commands time out at 10s and degrade to empty results rather than erroring the whole snapshot.

Platform: macOS first (my daily driver), Linux best-effort (systemd --user in place of launchctl).

Who makes this

Built by Shift The Culture — we run a one-person company on AI agents and ship the tooling we needed ourselves. This server is free and MIT-licensed, no strings.

This server is the free, standalone piece of a larger multi-agent setup. The rest of that tooling is paid:

  • Agent Fleet Ops Kit ($29) — the other failure modes of running three or four agents on one box: two sessions editing the same checkout, a dev server nobody owns (so the agent tests a different app than it edits), and MCP servers leaked from crashed sessions that hold ports and RAM for weeks.
  • Agent Reliability Kit ($29) — a Stop hook and two CLIs that block a turn when an agent claims "done" against a repo, URL, or build that was never actually checked.

The server above stays free and MIT either way — it has no upsell in it, no telemetry, and no dependency on the paid kits.

License

MIT © Zachary Pampu

Reviews

No reviews yet

Be the first to review this server!