Inferni MCP
# Inferni MCP
**Let your AI assistant see and manage the apps, bots and scripts running on your PC: free, local and read-only by default.**
[](https://discord.gg/WW8snzSW68)
[](https://infernicantavit.com)



Inferni MCP is a free, open-source [Model Context Protocol](https://modelcontextprotocol.io) server made by
[Inferni](https://infernicantavit.com). Add it to Claude Desktop (free plan works), VS Code with GitHub Copilot
Free, Gemini CLI or a local model in LM Studio, then ask things like:
- *"Is my Discord bot running? Why did it crash last night?"*
- *"Show me the errors in the backup script's log."*
- *"Why is my PC slow right now?"*
- *"Restart the music bot."* (only if you turn control on)
It works on its own with any script or program you list in a small config file, and it also plugs straight
into [Inferni App Manager](https://github.com/DiveDevil-oss/inferni-app-manager) if you use that.
Everything runs on your own computer. Inferni MCP has no account, no cloud service and no telemetry. Logs are
read locally, and values from each app's `.env` file (tokens, passwords, keys) are blanked out before the AI
sees anything.

---
## Contents
- [What the AI can do](#what-the-ai-can-do)
- [Install](#install)
- [Set up your AI app](#set-up-your-ai-app)
- [Claude Desktop (free plan)](#claude-desktop-free-plan)
- [VS Code + GitHub Copilot Free](#vs-code--github-copilot-free)
- [Gemini CLI](#gemini-cli)
- [LM Studio (local models, no internet)](#lm-studio-local-models-no-internet)
- [Config file](#config-file)
- [Safety](#safety)
- [Troubleshooting](#troubleshooting)
- [Development](#development)
---
## What the AI can do
| Tool | What it does | Changes anything? |
|---|---|---|
| `list_apps` | Every app with its state, uptime, CPU and memory | No |
| `app_status` | Full details for one app: health report, last error, recent events | No |
| `read_logs` | The end of an app's log, filtered to errors, warnings or a search term | No |
| `crash_report` | What crashed or failed in the last hours, with the error that caused it | No |
| `pc_health` | CPU, memory, disk space, uptime, warnings and the busiest processes | No |
| `start_app` / `stop_app` / `restart_app` | Change what's running | **Yes**: only when `allow_control = true` |
With control off (the default), those three tools don't exist at all, so the AI can't use them even if it
tries.
## Install
You need **Python 3.11 or newer** ([python.org](https://www.python.org/downloads/); tick *"Add python.exe to
PATH"* on Windows).
```powershell
git clone https://github.com/DiveDevil-oss/inferni-mcp-server.git
cd inferni-mcp-server
python -m venv .venv
.venv\Scripts\pip install .
```
Check what it can see:
```powershell
.venv\Scripts\inferni-mcp --check
```
The full path to `inferni-mcp.exe` (for example `C:\Users\you\inferni-mcp-server\.venv\Scripts\inferni-mcp.exe`)
is what you give your AI app below.
Optional: create a config file to add your apps (see [Config file](#config-file)):
```powershell
.venv\Scripts\inferni-mcp --init
```
## Set up your AI app
### Claude Desktop (free plan)
Claude Desktop runs local MCP servers on every plan, including free.
1. Install [Claude Desktop](https://claude.ai/download) and sign in.
2. Open **Settings → Developer → Edit Config**. This opens `claude_desktop_config.json`
(`%APPDATA%\Claude\claude_desktop_config.json` on Windows).
3. Add Inferni MCP under `mcpServers`, using your own path:
```json
{
"mcpServers": {
"inferni": {
"command": "C:\\Users\\you\\inferni-mcp-server\\.venv\\Scripts\\inferni-mcp.exe"
}
}
}
```
If the file already has other servers, add the `"inferni": { ... }` entry next to them. Backslashes must
be doubled.
4. Quit Claude Desktop completely (right-click the tray icon → Quit) and open it again.
5. In a new chat, click the tools button. **inferni** should be listed. Ask *"What apps are running?"*
Claude asks before it uses each tool the first time. You can allow it once or always.
### VS Code + GitHub Copilot Free
Copilot Free includes agent mode, which can use MCP servers.
1. In your project (or user settings), create `.vscode/mcp.json`:
```json
{
"servers": {
"inferni": {
"type": "stdio",
"command": "C:\\Users\\you\\inferni-mcp-server\\.venv\\Scripts\\inferni-mcp.exe"
}
}
}
```
2. Click **Start** above the server entry, open Copilot Chat, switch to **Agent** mode and ask away.
### Gemini CLI
Gemini CLI has a free tier with a personal Google account. Add Inferni MCP to `~/.gemini/settings.json`
(`%USERPROFILE%\.gemini\settings.json` on Windows):
```json
{
"mcpServers": {
"inferni": {
"command": "C:\\Users\\you\\inferni-mcp-server\\.venv\\Scripts\\inferni-mcp.exe"
}
}
}
```
Run `gemini`, then `/mcp` to check it's connected.
### LM Studio (local models, no internet)
LM Studio runs models entirely on your PC, so nothing leaves your computer.
1. Install [LM Studio](https://lmstudio.ai) and download a model that supports tool use (for example a
Qwen 3 or Llama 3.1+ instruct model; LM Studio marks these with a hammer icon).
2. In the chat sidebar open **Program → Install → Edit mcp.json** and add:
```json
{
"mcpServers": {
"inferni": {
"command": "C:\\Users\\you\\inferni-mcp-server\\.venv\\Scripts\\inferni-mcp.exe"
}
}
}
```
3. Turn on the **mcp/inferni** integration in a chat and ask a question.
Small local models are less reliable at picking tools. If answers look off, try a bigger model or ask more
directly (*"use list_apps"*).
**Any other MCP app** (Cursor, Windsurf, Zed, Continue, Cline, Jan…) works the same way: run
`inferni-mcp.exe` as a **stdio** server, with no arguments needed.
## Config file
Everything is optional. Without a config, PC health works and nothing else is listed.
Default location: `%APPDATA%\inferni-mcp\config.toml` on Windows, `~/.config/inferni-mcp/config.toml`
elsewhere. Create an example with `inferni-mcp --init`.
```toml
# Let the AI start, stop and restart apps. Off by default: the AI can only look.
allow_control = false
# Folder of Inferni App Manager (the one with bots.json), if you use it.
app_manager = "C:/Users/you/inferni-app-manager"
# Apps that Inferni MCP starts and stops itself. One section per app.
[apps.my-bot]
command = ["C:/Users/you/my-bot/.venv/Scripts/python.exe", "bot.py"]
cwd = "C:/Users/you/my-bot"
log = "bot.log" # optional, relative to cwd; default inferni-mcp.log
[apps.backup]
command = ["powershell", "-File", "backup.ps1"]
cwd = "C:/scripts"
```
Each app's `.env` file (in its `cwd`) is used for blanking secrets out of logs. It's never shown to the AI.
### Overrides
You can override settings in the AI app's config, which is handy for a read-only setup in one app and full
control in another:
| Command-line flag | Environment variable | Does |
|---|---|---|
| `--config PATH` | `INFERNI_MCP_CONFIG` | Use a different config file |
| `--app-manager PATH` | `INFERNI_APP_MANAGER` | Folder of Inferni App Manager |
| `--allow-control` / `--read-only` | `INFERNI_MCP_ALLOW_CONTROL=1` / `0` | Turn control on or off |
| | `INFERNI_MCP_STATE_DIR` | Where PIDs of started apps are kept (default `%USERPROFILE%\.inferni-mcp`) |
For example, in Claude Desktop:
```json
"inferni": {
"command": "C:\\...\\inferni-mcp.exe",
"args": ["--allow-control"]
}
```
### With Inferni App Manager
Point `app_manager` at its folder and every bot in it shows up. Starting and stopping goes through the App
Manager panel itself, so the two never fight over a process. If the panel is closed when the AI asks for a
change, Inferni MCP opens it minimised in the tray first. Needs Inferni App Manager **1.2 or newer**.
## Safety
- **Read-only by default.** The start, stop and restart tools only exist when you turn on `allow_control`,
and they're marked as destructive so AI apps ask you before using them.
- **Secrets are blanked out.** Values from each app's `.env`, plus anything that looks like a token,
password, API key, Discord token, GitHub token or webhook URL, are replaced with `[redacted]` in everything
the AI reads.
- **Only the apps you list.** The AI can't run arbitrary commands. It can only start the exact commands in
your config file or App Manager.
- **Started apps keep running** after you close the AI app. On Windows, Inferni MCP launches them outside the
AI app's process group (falling back to a one-off Task Scheduler task under your own account, which is
removed straight away).
- **Local only.** It talks to your AI app over stdio and opens no network ports.
See [SECURITY.md](SECURITY.md) to report a problem.
## Troubleshooting
**The server doesn't show up in my AI app.** Check the path to `inferni-mcp.exe` is right and the
backslashes are doubled, then fully quit and reopen the AI app. Run `inferni-mcp --check` in a terminal. If
that prints an error, the AI app sees the same error.
**Claude Desktop doesn't list inferni, even after a restart.** Newer Store/MSIX installs of Claude Desktop
read their config from `%LOCALAPPDATA%\Claude-Data\claude_<id>\claude_desktop_config.json` instead of
`%APPDATA%\Claude\`. Open that file (Settings → Developer → Edit Config opens the right one) and add the
`mcpServers` entry there, next to the settings already in it. Check it loaded under **+ → Plugins →
Connectors**, where **inferni** should have a toggle.
**Claude Desktop says the server failed.** Its logs are in `%APPDATA%\Claude\logs\` (or `%LOCALAPPDATA%\Claude\logs\` on Store installs).
**"No apps are set up yet".** Add `[apps.…]` sections or `app_manager` to the config file.
**An app shows as stopped but it's running.** Inferni MCP only tracks apps it started itself (or that App
Manager runs). Something started another way isn't tracked: stop it, then start it through Inferni MCP.
Questions or ideas? Join the [Inferni Discord](https://discord.gg/WW8snzSW68).
## Development
```powershell
python -m venv .venv
.venv\Scripts\pip install -e ".[dev]"
.venv\Scripts\pytest
.venv\Scripts\ruff check src tests
```
Try the tools interactively with the MCP Inspector: `npx @modelcontextprotocol/inspector .venv\Scripts\inferni-mcp.exe`.
See [CONTRIBUTING.md](CONTRIBUTING.md). Licensed under [MIT](LICENSE).
---
Made by [Inferni](https://infernicantavit.com) · [Discord](https://discord.gg/WW8snzSW68)
TDQS
Scored across 5 tools
Each tool has a clear primary role: fleet overview, single-app detail, logs, crash summary, and host health. There is minor overlap between app_status and crash_report, since both can surface errors and health information, but their scopes are distinguishable.
All names use readable snake_case, but they mix verb_noun forms like list_apps and read_logs with noun-phrase forms like app_status, crash_report, and pc_health. The pattern is understandable but not fully consistent.
Five tools is well scoped for a monitoring and diagnostics server. Each tool covers a distinct layer of the investigation workflow without obvious filler.
The surface covers app inventory, per-app status, logs, crash diagnosis, and host health, which is solid for monitoring. It lacks operational actions such as restarting apps or filtering/searching logs, but agents can still diagnose core issues.