
Server Ops MCP
io.github.GT-dinuoPublished by GitHub account GT-dinuov1.0.3Updated Oct 24, 2026
Server ops MCP: logs, monitoring, code edit, Nginx & certs. Local + SSH, confirmations & redaction.
Overview
A local MCP server that lets an AI assistant inspect and operate a project or remote server: logs, resources, files, Nginx and certificates, over local or SSH.
- What you can do
- Inspect system resources: CPU, memory, disk, load, processes, service status and system logs, with memory and disk analysis tools. Work with project logs: list, read and search project and channel logs. Read and edit code: read, list, search, write, patch and delete files, sandboxed to the project root. Manage Nginx and certificates: test and read config, reload Nginx, install and renew certificates. Run whitelisted commands and audit configs for leaked secrets, with a confirmation step for pending actions.
- When to use it
- Useful when you want an assistant to troubleshoot production issues, do routine server inspections, search logs, make small code edits, or handle Nginx and certificate tasks on a local project or a remote host reached over SSH.
- Requirements
- Node.js 18 or later; runs locally via npx or a built entry point. OPS_PROJECT_ROOT is required. Remote mode adds OPS_SSH_HOST, OPS_SSH_PORT, OPS_SSH_USER and either OPS_SSH_KEY or OPS_SSH_PASSWORD, plus OPS_SSH_PASSPHRASE for a protected key. OPS_CONFIG_PATH optionally points to a config file for log channels, command whitelist and read limits.
Installation
In SourceWeft
- Open Server Ops MCP in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
Server Ops MCP
English | 简体中文
[npm version] [License: MIT] [Node.js] [MCP] [GitHub stars]
A general-purpose server-ops MCP Server. Let AI tools like Claude Code / Cursor / Codex manage multiple projects or servers through .mcp.json — log troubleshooting, system resource inspection, code read/write, and Nginx / certificate management.
Supports local and remote (SSH) modes, with built-in two-step confirmation, command whitelisting, path-traversal protection, and automatic secret redaction.
Features
- 🔍 Log troubleshooting: list / read / search project logs, multi-channel logs & system logs
- 📊 Resource monitoring: CPU / memory / disk / load / processes / service status at a glance
- 📁 Code operations: read, write, patch, delete, and search files — all sandboxed to the project root
- 🌐 Nginx & certificates: config test & read, safe reload, certificate install & renewal
- 🔒 Secure by design: two-step confirmation for writes, command whitelist, path-traversal protection, auto redaction
Installation
Requires Node.js 18+. No clone or build needed — npx fetches and runs the published npm package on first use (see the config below).
To build from source instead (e.g. for development):
Build output goes to dist/; the entry point is dist/index.js.
Configuration
In each project where you want to use this tool, create (or append to) .mcp.json and declare an MCP Server per environment. Local mode only needs OPS_PROJECT_ROOT; remote mode adds the SSH variables.
If you built from source, point the command at the local build instead: "command": "node", "args": ["/absolute/path/to/server-ops-mcp/dist/index.js"].
Environment Variables
Usage
Once configured, just give ops instructions in natural language in your AI tool. The AI picks and calls the right tool automatically.
Read-only operations (run directly)
Write operations (require confirmation)
For writes, deletes, command execution, Nginx reload, certificate install, and similar, the tool first returns a confirmationId. The AI shows you exactly what will run, and it only executes after you confirm:
file_write, file_patch, file_delete, command_exec, and similar all follow the same confirmation flow.
Typical scenarios
- Production troubleshooting: "Why is the server memory full?" →
memory_analysis+log_searchworking together - Routine inspection: "Is the disk almost full? Which directory uses the most?" →
disk_analysis - Security audit: "Audit the project config for leaked secrets" →
config_audit(output is auto-redacted)
Tool List
System Ops
Project Code
Security
- Read-only tools run directly.
- Writes, command execution, Nginx reload, certificate install require two-step confirmation (
confirm_execute). - Command execution uses a whitelist — dangerous operations like
rm -rf,sudo, and piping into a shell are rejected. - File operations are sandboxed to
OPS_PROJECT_ROOT; path traversal is blocked. - Passwords, tokens, and other secrets in
.envfiles and logs are automatically redacted.
Custom Configuration
Download config.example.json as config.json, then point OPS_CONFIG_PATH at it to customize log channels, the command whitelist, read limits, and more.
Main fields of config.example.json:
logChannels: channel name → log directory path (relative to project root)maxReadLines/maxReadBytes: per-read line / byte limitscommandWhitelist.direct: commands that run directlycommandWhitelist.confirm: commands that require confirmation
Development
Notes
- Remote operations rely on SSH — use a read-only account or a tightly-scoped command whitelist for the AI.
- Private key files should have permission
600(chmod 600 ~/.ssh/id_rsa). - Never commit
.mcp.jsonorconfig.jsoncontaining passwords to a repository.
License
MIT © 2026 server-ops-mcp
Source: README.md at commit 16c2f8b
Tools
0Version history
1- v1.0.3LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts