Ops MCP logo

Ops MCP

Manage SSH-based deployments, rollbacks, health checks, logs, and service restarts through MCP tools.

Install Ops MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "ops-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "ops-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

npx -y ops-mcp

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

ops-mcp exposes remote release operations over SSH as MCP tools for AI clients. It deploys local build directories into timestamped release folders, switches a `current` symlink atomically, and can roll back to retained versions. Health checks, automatic rollback, log inspection, service restarts, notifications, and status reporting cover common release workflows. Reach for it when deployment access should remain on the operator's machine while an agent handles repeatable server operations.

Use cases

  • Deploy a local web build to a remote SSH host
  • Roll back an unhealthy release
  • Inspect application logs after an outage
  • Restart a systemd or pm2 service
  • Check a private health endpoint after deployment

Key features

  • Timestamped releases with atomic symlink switching
  • Retained versions and rollback support
  • Remote health checks with automatic rollback
  • SSH-based log inspection and service restarts
  • Deployment notifications through supported webhooks
  • Credential sanitization and dry-run deployment plans

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 5d ago via OSV.dev · ops-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

npm downloads700Package downloads in the last 30 days.
Last commit1mo agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.

How Ops MCP works

What ops-mcp does

ops-mcp connects an MCP client to one or more configured remote projects over SSH. It is aimed at deployments where a web server or application points at a current directory, with each release stored separately under releases/. A deployment uploads the configured local distribution directory into a timestamped remote folder and atomically changes the current symlink with ln -sfn. This lets Nginx continue serving through the release switch without requiring a server-side installation or daemon.

The server also covers operational tasks around a release. Agents can inspect the active and historical versions, run health probes, read application or system logs, restart services, check status, and roll back to an earlier retained release. An audit file named .ops-history.log records deployment and rollback activity on the remote host.

How it works

Project definitions live in a JSON configuration file. Each project can specify its SSH host, username, private key, remote root, local build directory, release retention count, log paths, and service settings. Services may use systemd, pm2, or a custom restart command. For systemd and pm2 deployments, the service abstraction lets the same MCP operation handle the restart step.

After deployment, an optional HTTP health check runs from the remote server, so private or loopback URLs can be tested. The check can define an expected status, retry count, and interval. When automatic rollback is enabled and the check fails, ops-mcp switches back to the previous release. Deployment, rollback, and health-check failures can also be sent to Feishu, DingTalk, WeCom, or Slack webhooks; Feishu signing is supported.

Setup and configuration

Install the package globally with npm install -g ops-mcp, or run it without a global installation through npx -y ops-mcp. Node.js 18 or newer is required. The remote machine only needs SSH access; no ops-mcp package or background service is installed there.

Create ~/.ops-mcp/config.json, or use ./ops.config.json. The OPS_MCP_CONFIG environment variable can point to another file and takes precedence over both default paths. Configure one or more entries in a projects array. The project name is the identifier supplied to MCP tools, while remoteRoot/current should match the path used by the web server or application.

Claude Desktop can start the server with the npx -y ops-mcp command in its MCP server configuration. OpenCode uses the same command as a local MCP server. Cursor and other MCP clients can use the server's standard local process interface.

Tools and capabilities

  • list_projects returns configured project names and descriptions.
  • deploy publishes a local build and supports dryRun to preview the plan.
  • rollback selects an earlier retained release and can restart the service.
  • list_releases shows historical releases and the active version.
  • health_check runs a configured remote HTTP probe.
  • tail_log reads configured files or a systemd journal.
  • restart handles systemd, pm2, or custom service commands.
  • status reports the active version, service state, disk space, and recent operations.
  • The ops://projects resource exposes sanitized project information for agent context.

Credentials remain in the local configuration and are removed from tool output and the MCP resource. Use a low-privilege deployment account and restrict sudo access to the required service restart commands. dryRun can be combined with a client's tool approval flow before executing a deployment.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Ops MCP

ops-mcp is an MCP server that connects AI clients to configured remote servers over SSH and exposes tools for deployments, rollbacks, health checks, log inspection, service restarts, release listing, and status reporting. It keeps credentials local while managing timestamped releases and an atomic current symlink on each host.

Install it with `npm install -g ops-mcp`, or run it directly with `npx -y ops-mcp`. Node.js 18 or newer is required. Add an MCP server entry that launches `ops-mcp`, then create a project configuration at `~/.ops-mcp/config.json` or `./ops.config.json`.

Configure a project with its name, SSH host, username, private key, remote root, and local distribution directory. You can also define release retention, log paths, service handling, health checks, automatic rollback, and notification webhooks. Set `OPS_MCP_CONFIG` to use a custom configuration file.

Yes, automatic rollback can return the project to its previous release when the post-deployment health check fails. Configure a remote health-check URL, expected status, retries, and interval, then enable `autoRollback` for the project.

Yes, ops-mcp is intended for Cursor and other MCP clients through its local command interface. The server can be started with `npx -y ops-mcp`; project settings and SSH credentials remain in the local configuration.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewOps MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/ops-mcp?style=directory)](https://allmcps.com/mcp/ops-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/ops-mcp"><img src="https://allmcps.com/api/badge/ops-mcp?style=directory" alt="Ops MCP on AllMCPs" /></a>