deployment-mcp
Allows to run git pull on a remote host, enabling automated deployment of code updates from a Git repository.
Enables execution of npm commands (e.g., install, run build) on remote hosts as part of deployment scripts.
Supports restarting PM2 process manager on remote servers, used for managing Node.js application processes during deployment.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@deployment-mcpPull latest code on my-app server using SSH"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
deployment-mcp
An MCP (Model Context Protocol) server that handles deployment operations over SSH.
Features
ssh_git_pull– SSH into a remote host and rungit pullin a specified repository directory.ssh_run_command– Execute an arbitrary shell command on a remote host and return its stdout, stderr and exit code.ssh_run_script– Upload and execute a multi-line shell script on a remote host (piped to bash; no temporary files created locally).write_ssh_config– Write or update aHostentry in the local~/.ssh/configfile.
All SSH tools support authentication via an inline PEM private key, a path to a key file, or a password.
Related MCP server: MCP SSH Server
Installation
npm install
npm run buildUsage
Run the MCP server over stdio (used by MCP-compatible AI clients):
node dist/index.jsMCP client configuration example
{
"mcpServers": {
"deployment": {
"command": "node",
"args": ["/path/to/deployment-mcp/dist/index.js"]
}
}
}Tool examples
ssh_git_pull
{
"host": "my-server.example.com",
"username": "deploy",
"privateKeyPath": "~/.ssh/id_rsa",
"repoPath": "/var/www/myapp",
"branch": "main"
}ssh_run_command
{
"host": "my-server.example.com",
"username": "deploy",
"privateKeyPath": "~/.ssh/id_rsa",
"command": "systemctl restart myapp"
}ssh_run_script
{
"host": "my-server.example.com",
"username": "deploy",
"privateKeyPath": "~/.ssh/id_rsa",
"workingDirectory": "/var/www/myapp",
"script": "#!/bin/bash\nset -e\ngit pull\nnpm install --omit=dev\nnpm run build\npm2 restart myapp"
}write_ssh_config
{
"alias": "my-server",
"hostname": "my-server.example.com",
"user": "deploy",
"identityFile": "~/.ssh/deploy_key",
"extraOptions": {
"StrictHostKeyChecking": "no",
"ServerAliveInterval": "60"
}
}Development
npm run dev # TypeScript watch mode
npm test # Run tests
npm run build # Compile TypeScriptMaintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/jsilvanus/deployment-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server