Skip to main content
Glama

MCP SSH Tools Server

by nwnusun-cool

MCP SSH 工具服务器

一个基于MCP框架的SSH工具服务器,提供远程服务器管理功能。

功能特性

  • 支持多服务器配置管理
  • 提供SSH连接池管理
  • 支持文件上传/下载(包括递归目录操作)
  • 支持远程命令执行
  • 可通过环境变量或代码配置服务器

安装

  1. 使用uv安装Python 3.13+:
uv pip install --python=3.13
  1. 安装项目依赖:
uv pip install "mcp[cli]" uv pip install requests paramiko
  1. (可选) 使用uv创建虚拟环境:
uv venv .venv source .venv/bin/activate # Linux/Mac .venv\Scripts\activate # Windows
  1. 下载代码:
git clone https://github.com/nwnusun-cool/mcp-server-ssh-tools.git

配置

使用json文件配置服务器,示例:

{ "mcpServers": { "ssh_sun": { "command": "uv", "args": [ "--directory", "F:\\仓库\\产品\\mcp-server-ssh-tools", "run", "main.py" ], "env": { "SSH_IP": "192.168.2.127", "SSH_USER": "root", "SSH_PASSWORD": "123456", "SSH_PORT": "22" } } } }

使用

API接口

  • execute: 执行远程命令
  • download_file: 下载远程文件/目录
  • upload_file: 上传本地文件/目录
  • list_directory: 列出远程目录内容
  • test_connection: 测试服务器连接

依赖

  • mcp[cli]>=1.10.1
  • paramiko>=3.5.1
  • pyyaml>=6.0.2
  • requests>=2.32.4

开发

# 安装开发依赖 pip install -e ".[dev]" # 运行测试 pytest

许可证

MIT

Install Server
A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

A server based on the MCP framework that provides remote server management capabilities through SSH, supporting features like connection pooling, file transfers, and remote command execution.

  1. 功能特性
    1. 安装
      1. 配置
        1. 使用
          1. API接口
            1. 依赖
              1. 开发
                1. 许可证

                  Related MCP Servers

                  • -
                    security
                    A
                    license
                    -
                    quality
                    MCP Server simplifies the implementation of the Model Context Protocol by providing a user-friendly API to create custom tools and manage server workflows efficiently.
                    Last updated -
                    1
                    4
                    TypeScript
                    MIT License
                  • A
                    security
                    A
                    license
                    A
                    quality
                    An MCP server that provides tools for reading, writing, and editing files on the local filesystem.
                    Last updated -
                    1
                    1,516
                    Python
                    Apache 2.0
                    • Apple
                  • -
                    security
                    F
                    license
                    -
                    quality
                    A simple MCP server that allows accessing and executing shell commands on a VM machine through a web-based terminal interface, with automatic tunneling to make the VM accessible from anywhere.
                    Last updated -
                    138
                    3
                    JavaScript
                  • A
                    security
                    F
                    license
                    A
                    quality
                    A server that enables remote command execution over SSH through the Model Context Protocol (MCP), supporting both password and private key authentication.
                    Last updated -
                    1
                    13
                    2
                    JavaScript

                  View all related MCP servers

                  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/nwnusun-cool/mcp-server-ssh-tools'

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