whats-running-mcp
Provides AI agents with real-time ground truth about what's actually running on the machine, including live agent sessions, listening TCP ports, loaded daemons, and system stats. It reads directly from the OS via fixed commands, ensuring agents never rely on stale docs or transcripts.
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
| Tool | What it answers |
|---|---|
whats_running |
Full snapshot in one call — use at session start |
agent_sessions |
Which agent processes are live? Terminal-attached vs detached/orphan, with pid, uptime, and working directory |
listening_ports |
Is service X actually up? Every TCP LISTEN socket with owning process |
daemons |
What persistent services are loaded? launchctl (macOS, non-Apple) or systemd user services (Linux), with optional label filter |
system_stats |
Load 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"]
}
}
}
<details> <summary>From source</summary>
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
</details>
Published as whats-running-mcp on npm and as
io.github.stcmain/whats-running-mcp in the MCP Registry.
Configuration
| Env var | Default | Purpose |
|---|---|---|
WR_AGENT_PATTERNS |
claude,codex,aider,cursor-agent,copilot,goose |
Comma-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).
Related free tools
Same idea — read-only, MIT, no telemetry — pointed at different blind spots:
- whats-loaded-mcp — what is consuming your agent's context before a session starts: skill descriptions ranked by token cost, skills installed more than once,
CLAUDE.md/AGENTS.mdsizes including what their imports pull in.npx -y whats-loaded-mcp - whats-inherited-mcp — what a checkout tells your agent to do before you run it: instruction files, commands wired to auto-run, declared MCP servers, shipped skills. Repo strings come back labelled as data, not instructions.
npx -y whats-inherited-mcp - whats-allowed-mcp — what your agent can do without asking you: every settings file that contributes permission rules, which one wins, what runs unattended, and the rules your client accepts and then ignores.
npx -y whats-allowed-mcp
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.
Sponsors
This server is MIT and stays MIT. There is no pro edition, no telemetry, and nothing held back from the free build. Sponsorship is how the maintenance gets paid for without any of that changing.
No sponsors yet — the first slot is open. Company sponsors get their name or logo in this section, in the two sibling servers, and on the sponsor page. Tiers, exactly what the placement is, and what it explicitly does not buy: https://shifttheculture.media/sponsor
Individuals: https://paypal.me/ShiftTheCultureLLC — any amount, no perks, no tier.
License
MIT © Zachary Pampu
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。