
blakerouse/ssh-mcp
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
로컬라이제이션을 실행하는 SSH MCP 서버는 호스트를 관리하고 호스트의 그룹을 통해 명령을 수행합니다
개요
SSH MCP는 원격 SSH 호스트와 관리하고 상호 작용하는 기능을 제공하는 호스트에서 로컬로 실행되는 MCP 서버입니다. 그것은 그룹으로 구성하고 여러 호스트를 동시에 실행하는 명령을 지원합니다. - - 자동 OS 탐지를 가진 SSH 윤곽에 새로운 리눅스 또는 Windows 주인을 추가하십시오. 사용자 이름과 암호는 연결 문자열에서 선택됩니다. 제공되지 않은 경우 현재 사용자 및 SSH 에이전트는 인증에 사용됩니다. - - 그룹 및 이름으로 SSH 구성에서 호스트를 제거합니다. - SSH 구성에서 모든 그룹 목록을 검색합니다. - SSH 설정에서 호스트의 목록을 검색합니다. 그룹에 의해 선택적으로 필터 수 있습니다. - Linux 및 Windows 호스트에 대한 캐시 된 운영 시스템 정보를 검색합니다. 개별 호스트 또는 전체 그룹을 지정할 수 있습니다. - - Linux 및 Windows 호스트에 대한 캐시 된 운영 시스템 정보 업데이트. 개별 호스트 또는 전체 그룹을 지정할 수 있습니다.
개요(AI 번역)
SSH MCP는 원격 SSH 호스트와 관리하고 상호 작용하는 기능을 제공하는 호스트에서 로컬로 실행되는 MCP 서버입니다. 그것은 그룹으로 구성하고 여러 호스트를 동시에 실행하는 명령을 지원합니다.
도구
호스트 관리
- add host - 자동 OS 감지를 가진 SSH 구성에 새로운 Linux 또는 Windows 호스트를 추가합니다. 사용자 이름과 암호는 연결 문자열에서 선택됩니다. 제공되지 않은 경우 현재 사용자 및 SSH 에이전트는 인증에 사용됩니다.
- remove host - 그룹 및 이름으로 SSH 구성에서 호스트를 제거합니다.
- get groups - SSH 구성에서 모든 그룹의 목록을 검색합니다.
- get hosts - SSH 구성에서 호스트의 목록을 검색합니다. 그룹에 의해 선택적으로 필터 수 있습니다.
- get os info - Linux 및 Windows 호스트의 캐시된 운영 체제 정보를 검색합니다. 개별 호스트 또는 전체 그룹을 지정할 수 있습니다.
- update os info - Linux 및 Windows 호스트의 캐시된 운영 체제 정보를 업데이트합니다. 개별 호스트 또는 전체 그룹을 지정할 수 있습니다.
명령 실행
- **perform command ** - SSH 원격 기계로 명령을 실행합니다.
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
SSH MCP
SSH MCP is an MCP server that runs locally on your host that provides the ability to manage and interact with remote SSH hosts. It supports organizing hosts into groups and executing commands across multiple hosts simultaneously.
Tools
Host Management
- add_host - Adds a new Linux or Windows host to the SSH configuration with automatic OS detection. Username and password are optional in the connection string - if not provided, the current user and SSH agent will be used for authentication.
- remove_host - Removes a host from the SSH configuration by group and name.
- get_groups - Retrieves the list of all groups from the SSH configuration.
- get_hosts - Retrieves the list of hosts from the SSH configuration. Can optionally filter by group.
- get_os_info - Retrieves the cached operating system information for Linux and Windows hosts. You can specify individual hosts or an entire group.
- update_os_info - Updates the cached operating system information for Linux and Windows hosts. You can specify individual hosts or an entire group.
Command Execution
- perform_command - SSH into a remote machine and executes a command. You can specify individual hosts or an entire group. Commands that take longer than 30 seconds are automatically moved to background execution. Use background=true to run immediately in background.
Command Management
- get_command_status - Retrieves the status and results of a background command by its command ID. If no ID is provided, returns the most recent command.
- list_commands - Lists all background commands with their current status. Useful for tracking long-running commands.
- cancel_command - Cancels a running background command by its command ID.
Features
- Cross-platform support - Works with both Linux and Windows remote hosts with automatic OS detection
- Group-based organization - Organize hosts into groups for easier management
- Multiple authentication methods - Supports password, SSH agent, and SSH key files (~/.ssh/id_rsa, id_ed25519, etc.)
- Secure host verification - Uses ~/.ssh/known_hosts for host key verification with automatic host addition
- Concurrent execution - Execute commands across multiple hosts simultaneously
- Automatic background execution - Commands that take longer than 30 seconds are automatically moved to background, with command IDs returned for status tracking
- Persistent storage - Uses BadgerDB for efficient local storage
Limitations
- SSH agent support is Unix-only (SSH_AUTH_SOCK) - password and key file authentication work on all platforms
- Remote hosts can be Linux or Windows (automatic OS detection)
How to Setup
Checkout the repository:
$ git clone https://github.com/blakerouse/ssh-mcp
Build the binary:
$ go build .
Update the MCP configuration for Claude Desktop:
{
"mcpServers": {
"ssh": {
"command": ""
설치
This server does not publish a one-line install command.
Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →