GitHub
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
作者提供的说明(英文原文)
Server ops MCP: logs, monitoring, code edit, Nginx & certs. Local + SSH, confirmations & redaction.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
OPS_PROJECT_ROOT, OPS_SSH_HOST, OPS_SSH_PORT, OPS_SSH_USER, OPS_SSH_KEY, OPS_SSH_PASSWORD, OPS_SSH_PASSPHRASE, OPS_CONFIG_PATH标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"server-ops": {
"command": "npx",
"args": [
"-y",
"server-ops-mcp"
],
"env": {
"OPS_PROJECT_ROOT": "your-value",
"OPS_SSH_HOST": "your-value",
"OPS_SSH_PORT": "your-value",
"OPS_SSH_USER": "your-value",
"OPS_SSH_KEY": "your-value",
"OPS_SSH_PASSWORD": "your-value",
"OPS_SSH_PASSPHRASE": "your-value",
"OPS_CONFIG_PATH": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add server-ops --env OPS_PROJECT_ROOT=your-value --env OPS_SSH_HOST=your-value --env OPS_SSH_PORT=your-value --env OPS_SSH_USER=your-value --env OPS_SSH_KEY=your-value --env OPS_SSH_PASSWORD=your-value --env OPS_SSH_PASSPHRASE=your-value --env OPS_CONFIG_PATH=your-value -- npx -y server-ops-mcp运行前请先填写空着的值。
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"server-ops": {
"command": "npx",
"args": [
"-y",
"server-ops-mcp"
],
"env": {
"OPS_PROJECT_ROOT": "your-value",
"OPS_SSH_HOST": "your-value",
"OPS_SSH_PORT": "your-value",
"OPS_SSH_USER": "your-value",
"OPS_SSH_KEY": "your-value",
"OPS_SSH_PASSWORD": "your-value",
"OPS_SSH_PASSPHRASE": "your-value",
"OPS_CONFIG_PATH": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"server-ops": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"server-ops-mcp"
],
"env": {
"OPS_PROJECT_ROOT": "your-value",
"OPS_SSH_HOST": "your-value",
"OPS_SSH_PORT": "your-value",
"OPS_SSH_USER": "your-value",
"OPS_SSH_KEY": "your-value",
"OPS_SSH_PASSWORD": "your-value",
"OPS_SSH_PASSPHRASE": "your-value",
"OPS_CONFIG_PATH": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
OPS_SSH_HOST envOPS_SSH_PORT envOPS_SSH_USER envOPS_SSH_KEY envOPS_CONFIG_PATH env这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日
注册名称已通过 GitHub 账户 GT-dinuo 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
你需要填写:OPS_PROJECT_ROOT, OPS_SSH_PASSWORD, OPS_SSH_PASSPHRASE
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(1.0.3)于4个月前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
同一分类中有:GitHub, Desktop Commander, Cloudflare MCP
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
MCP server for terminal commands, file operations, and process management
Cloudflare MCP servers
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
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.
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.
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": " ", "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"].
| 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" |
Once configured, just give ops instructions in natural language in your AI tool. The AI picks and calls the right tool automatically.
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
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.
memory_analysis + log_search working togetherdisk_analysisconfig_audit (output is auto-redacted)| 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) |
| 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 |
confirm_execute).rm -rf, sudo, and piping into a shell are rejected.OPS_PROJECT_ROOT; path traversal is blocked..env files and logs are automatically redacted.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
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 confirmationnpm run dev # watch mode, recompiles on change
npm run build # build to dist/ npm run clean # remove dist/ npm start # run the built Server
600 (chmod 600 ~/.ssh/id_rsa)..mcp.json or config.json containing passwords to a repository.MIT © 2026 server-ops-mcp