Skip to main content
Glama

MCP SSH Server

by mahathirmuh

ssh_docker_deploy

Deploy Docker containers to remote servers via SSH by executing docker-compose, build, or run commands from a specified working directory with configurable ports, volumes, and environment variables.

Instructions

Deploy Docker containers with working directory context

Input Schema

NameRequiredDescriptionDefault
buildArgsNoBuild arguments for Docker build
composeFileNoDocker compose file namedocker-compose.yml
connectionIdYesSSH connection ID
containerNameNoContainer name (for run)
deploymentTypeYesType of Docker deployment
detachedNoRun in detached mode
envVarsNoEnvironment variables
imageNameNoDocker image name (for build/run)
portsNoPort mappings (e.g., ["8080:80", "3000:3000"])
volumesNoVolume mappings (e.g., ["/host/path:/container/path"])
workingDirectoryYesDirectory containing docker-compose.yml or Dockerfile

Input Schema (JSON Schema)

{ "properties": { "buildArgs": { "description": "Build arguments for Docker build", "type": "object" }, "composeFile": { "default": "docker-compose.yml", "description": "Docker compose file name", "type": "string" }, "connectionId": { "description": "SSH connection ID", "type": "string" }, "containerName": { "description": "Container name (for run)", "type": "string" }, "deploymentType": { "description": "Type of Docker deployment", "enum": [ "compose", "build", "run" ], "type": "string" }, "detached": { "default": true, "description": "Run in detached mode", "type": "boolean" }, "envVars": { "description": "Environment variables", "type": "object" }, "imageName": { "description": "Docker image name (for build/run)", "type": "string" }, "ports": { "description": "Port mappings (e.g., [\"8080:80\", \"3000:3000\"])", "items": { "type": "string" }, "type": "array" }, "volumes": { "description": "Volume mappings (e.g., [\"/host/path:/container/path\"])", "items": { "type": "string" }, "type": "array" }, "workingDirectory": { "description": "Directory containing docker-compose.yml or Dockerfile", "type": "string" } }, "required": [ "connectionId", "workingDirectory", "deploymentType" ], "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mahathirmuh/mcp-ssh-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server