devops-mcp MCP Server

A mode-based MCP (Model Context Protocol) server that lets AI assistants (Claude Desktop, Cursor, Windsurf, …) actually operate Linux servers without handing them the keys to the kingdom.

Local serverstdioMIT

What is the devops-mcp Server?

devops-mcp is an MCP project maintained in the mhasnainjafri/devops-mcp repository. The maintainer describes its purpose as “A mode-based MCP (Model Context Protocol) server that lets AI assistants (Claude Desktop, Cursor, Windsurf, …) actually operate Linux servers without handing them the keys…”. Read the project documentation for the complete scope.

Local setup

The project provides a local client configuration using node. Follow the repository’s build and installation steps before copying it, and replace example paths with the paths on your own computer.

Configuration values

The example declares DEVOPS_MCP_ELEVATION_TOKEN, LOG_LEVEL. Secret-looking values have been replaced with placeholders. Required and optional labels are shown only when the documentation states them.

Source

Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
add_serverSAFE
update_serverSAFE
update_server_credentialsSAFE
setup_server_configSAFE
list_serversSAFE
test_connectionSAFE
connect_serverSAFE
disconnect_serverSAFE
scan_serverSAFE
get_server_profileSAFE
diff_server_profileSAFE
check_port_conflictSAFE
list_containersSAFE
list_playbooksSAFE
run_commandvaries
plan_deploymentSAFE
run_playbookPROVISION
install_dockerPROVISION
install_nginxPROVISION
configure_nginxPROVISION
deploy_appvaries
container_actionSAFE / PROVISION
transfer_filesSAFE (download) / varies (upload)
get_current_modeCurrent mode + permissions + time-remaining
set_modeChange mode. Elevation requires acknowledgeRisk + consentToken
approve_actionApprove a pending high-risk action. Requires consentToken
list_pending_approvalsList queued approval requests
rotate_consent_tokenGenerate a new elevation token. apply: true atomically rewrites the MCP client config. Requires the current token. Read response warnings before restarting the
generate_ssh_keyGenerate a session SSH keypair with auto-expiry
revoke_ssh_keyRevoke a session SSH key
get_audit_logTail / filter logs/audit.log (parses JSON-lines, filters by since and action)
health_checkLiveness + version + current mode

How to install the devops-mcp Server

{
  "mcpServers": {
    "devops-mcp": {
      "command": "node",
      "args": [
        "/absolute/path/to/devops-mcp/dist/index.js"
      ],
      "env": {
        "DEVOPS_MCP_ELEVATION_TOKEN": "YOUR_DEVOPS_MCP_ELEVATION_TOKEN",
        "LOG_LEVEL": "info"
      }
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

VariableDescriptionRequired
DEVOPS_MCP_ELEVATION_TOKENDeclared in the maintainer’s client configuration.Check documentation
LOG_LEVELDeclared in the maintainer’s client configuration.Check documentation