Server Ops MCP Server
Server ops MCP: logs, monitoring, code edit, Nginx & certs. Local + SSH, confirmations & redaction.
Server Ops MCP scores 59 (Fair), licensed MIT and written in TypeScript. It installs as a local process. It declares 26 tools. Filed under Uncategorized. GitHub shows 0 stars. Package registries report about 78 downloads a week. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Fair trust
59 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade B
80/100 for listing completeness. Lost points: 20 of 26 tools barely described, short summary.
How quality is graded
Where the 59 comes from
22 + 10 + 3 + 10 + 4 + 10 = 59. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 10 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 3 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 10 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "gt-dinuo-server-ops-mcp": { "command": "npx", "args": [ "-y", "server-ops-mcp@1.0.3" ], "env": { "OPS_PROJECT_ROOT": "", "OPS_SSH_HOST": "", "OPS_SSH_PORT": "", "OPS_SSH_USER": "", "OPS_SSH_KEY": "", "OPS_SSH_PASSWORD": "YOUR_OPS_SSH_PASSWORD", "OPS_SSH_PASSPHRASE": "YOUR_OPS_SSH_PASSPHRASE", "OPS_CONFIG_PATH": "" } } }}
Environment variables
| Name | Required | Notes |
|---|---|---|
OPS_PROJECT_ROOT | Required | Project root path; all file operations are sandboxed here |
OPS_SSH_HOST | Optional | Remote server IP / domain; leave empty to run locally |
OPS_SSH_PORT | Optional | SSH port, default 22 |
OPS_SSH_USER | Optional | SSH username |
OPS_SSH_KEY | Optional | Path to SSH private key (choose either key or password) |
OPS_SSH_PASSWORDSecret | Optional | SSH password (choose either key or password) |
OPS_SSH_PASSPHRASESecret | Optional | Private key passphrase |
OPS_CONFIG_PATH | Optional | Path to an extra config file (see config.example.json) |
Tools26Tool docs quality grade D
All capabilitiescertbot_installtoolInstall certificate (requires confirmation)
certbot_renewtoolRenew certificate (requires confirmation)
commands that require confirmation
commands that run directly
command_exectoolRun whitelisted commands
config_audittoolAudit config (auto-redacted)
confirm_executetoolConfirm and run a pending action
disk_analysistoolDisk usage analysis
file_deletetoolDelete a file (requires confirmation)
file_listtoolList a directory
file_patchtoolPatch a file (requires confirmation)
file_readtoolRead a file
About
Server Ops MCP
English | 简体中文
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):
git clone https://github.com/GT-dinuo/server-ops-mcp.git
cd server-ops-mcp
npm install
npm run build
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.
{
"mcpServers": {
"myproject-server": {
"command": "npx",
"args": ["-y", "server-ops-mcp"],
"env": {
"OPS_PROJECT_ROOT": "/www/wwwroot/your-project",
"OPS_SSH_HOST": "<server-ip-or-domain>",
"OPS_SSH_PORT": "22",
"OPS_SSH_USER": "ubuntu",
"OPS_SSH_KEY": "~/.ssh/id_rsa"
}
}
}
}
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
| Variable | Required | Description |
|---|---|---|
OPS_PROJECT_ROOT | Yes | Project root path; all file operations are sandboxed here |
OPS_SSH_HOST | No | Remote server IP / domain; leave empty to run locally |
OPS_SSH_PORT | No | SSH port, default 22 |
OPS_SSH_USER | No | SSH username |
OPS_SSH_KEY | No | Path to SSH private key (choose either key or password) |
OPS_SSH_PASSWORD | No | SSH password (choose either key or password) |
OPS_SSH_PASSPHRASE | No | Private key passphrase |
OPS_CONFIG_PATH | No | Path to an extra config file — see "Custom Configuration" |
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)
Check the server's CPU, memory, and disk usage
Search for error-level logs from the last hour
List the project's log files
Read the Nginx config and check for problems
Find every place in the code that calls sendSms
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:
You: Reload nginx
AI: (calls nginx_reload, returns the pending action + confirmationId)
About to run: nginx -s reload. Confirm?
You: Confirm
AI: (calls confirm_execute to run it)
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
| Tool | Description |
|---|---|
system_info | CPU / memory / disk / load / processes |
memory_analysis | Memory usage analysis |
disk_analysis | Disk usage analysis |
service_status | Service status |
log_search_system | Search system logs |
nginx_config_test | Test Nginx config |
nginx_config_read | Read Nginx config |
nginx_reload | Reload Nginx (requires confirmation) |
certbot_install | Install certificate (requires confirmation) |
certbot_renew | Renew certificate (requires confirmation) |
Project Code
| Tool | Description |
|---|---|
log_list | List project logs |
log_read | Read a log |
log_search | Search logs |
file_read | Read a file |
file_list | List a directory |
file_search | Search code |
file_write | Write a file (requires confirmation) |
file_patch | Patch a file (requires confirmation) |
file_delete | Delete a file (requires confirmation) |
command_exec | Run whitelisted commands |
project_overview | Project overview |
config_audit | Audit config (auto-redacted) |
confirm_execute | Confirm and run a pending action |
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.
curl -o config.json https://raw.githubusercontent.com/GT-dinuo/server-ops-mcp/main/config.example.json
# (if you cloned the repo: cp config.example.json config.json)
# After editing config.json, set in the .mcp.json env:
# "OPS_CONFIG_PATH": "/absolute/path/to/config.json"
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
npm run dev # watch mode, recompiles on change
npm run build # build to dist/
npm run clean # remove dist/
npm start # run the built Server
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
Frequently asked questions
What is Server Ops MCP Server?
Server ops MCP: logs, monitoring, code edit, Nginx & certs. Local + SSH, confirmations & redaction.
How do I install Server Ops MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. Server Ops MCP Server runs locally from the npm package server-ops-mcp with the command npx -y server-ops-mcp@1.0.3.
Is Server Ops MCP Server free and open source?
Yes. Server Ops MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does Server Ops MCP Server support remote (HTTP) connections?
No remote endpoint is listed for Server Ops MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does Server Ops MCP Server provide?
Server Ops MCP Server provides 26 tools, including certbot_install, certbot_renew, commandWhitelist.confirm, and commandWhitelist.direct. See the full tool list for descriptions and parameters.
How is Server Ops MCP Server's trust score calculated?
Server Ops MCP Server scores 59 out of 100 (Fair). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.