SSH MCP Server
一个基于SSH2和Model Context Protocol (MCP)的SSH服务器,提供远程命令执行功能。
功能特性
- 通过MCP协议提供SSH远程命令执行工具
- 支持密码和私钥认证
- 返回命令执行结果(stdout/stderr/exit code)
- 基于TypeScript开发,类型安全
安装
# 克隆仓库
git clone https://github.com/your-repo/ssh-server.git
cd ssh-server
# 安装依赖
npm install
# 构建项目
npm run build
使用方法
- 启动服务器:
npm start
- 通过MCP客户端调用
execute_ssh_command工具:
请求示例:
{
"connection": {
"host": "example.com",
"port": 22,
"username": "user",
"password": "password" // 或使用 privateKey
},
"command": "ls -la"
}
开发
# 开发模式
npm run build -- --watch
# 运行测试
# (需要添加测试脚本)
依赖
- ssh2: SSH2客户端/服务器库
- @modelcontextprotocol/sdk: MCP SDK
许可证
MIT
SSH Server
by mfangtao
268
Project Details
- mfangtao/mcp-ssh-server
- Last Updated: 3/28/2025
Recomended MCP Servers
Axiom MCP Server
🧩
Multi-Cluster MCP Server
The gateway for GenAI systems to interact with multiple Kubernetes clusters through the MCP
🧩
FastMCP Fashion Recommender
A fashion recommendation system built with FastAPI, React, MongoDB, and Docker. It uses CLIP for image-based clothing tagging...
Jimeng AI Image Generation Server
🧩
Servidor de Herramientas para Claude
Un servidor MCP mínimo para permitir a Claude interactuar con archivos locales
Browser Automation
Browser MCP is a Model Context Provider (MCP) server that allows AI applications to control your browser
🧩
GitLab Integration Server
Docker Image Proxy
这个项目是一个基于 Cloudflare Workers 的 Docker 镜像代理工具。它能够中转对 Docker 官方镜像仓库的请求,解决一些访问限制和加速访问的问题。
🧩
OpenSearch MCP Server
SVG Converter
Retrieval-Augmented Thinking
MCP server for retrieval augmented thinking and problem solving
🧩
Azure Resource Server





