Skip to main content
Glama
icryo
by icryo

sshmcp

A stateful SSH MCP server for Claude Code. Gives Claude persistent shell sessions over SSH — commands preserve working directory, environment variables, and state across calls.

Features

  • Stateful sessions: tmux-backed shells that persist cwd, env, shell state

  • Multiple sessions: connect to multiple hosts simultaneously, switch between them

  • File operations: upload, download, and write files via SFTP

  • Output management: automatic truncation with head/tail preservation

  • Background processes: supports & for long-running commands

Related MCP server: mcp-ssh-tool

Install

pip install -e .

Claude Code config

Add to ~/.claude/claude_desktop_config.json or your MCP settings:

{
  "mcpServers": {
    "ssh": {
      "command": "sshmcp",
      "args": []
    }
  }
}

Tools

Tool

Description

ssh_connect

Connect to a host via SSH (password, key, or agent)

ssh_exec

Run a command in the persistent shell

ssh_read_output

Read recent terminal output

ssh_upload

Upload a local file via SFTP

ssh_download

Download a remote file via SFTP

ssh_write_file

Write content to a remote file

ssh_list_sessions

List all active sessions

ssh_switch_session

Switch active session

ssh_close

Close a session

Usage

Once configured, Claude can:

ssh_connect(host="myserver.com", username="user", key_path="~/.ssh/id_ed25519")
ssh_exec(command="cd /opt/app && cat config.yaml")
ssh_exec(command="grep -r 'ERROR' /var/log/app/")  # still in /opt/app context
ssh_upload(local_path="./exploit.py", remote_path="/tmp/exploit.py")
A
license - permissive license
-
quality - not tested
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    A
    quality
    C
    maintenance
    An SSH MCP server that enables users to connect to and manage remote servers directly from Claude Code. It provides tools to execute commands, monitor connection status, and dynamically manage server configurations through natural language.
    Last updated
    10
    40
    6
    MIT
  • A
    license
    A
    quality
    A
    maintenance
    SSH automation MCP server that enables Claude and ChatGPT to execute commands, manage files, install packages, and control services on remote servers over SSH — supporting password, key, and agent authentication.
    Last updated
    33
    1,267
    4
    MIT
  • A
    license
    -
    quality
    B
    maintenance
    A local MCP server that proxies file and shell tools (Read, Write, Edit, Bash, etc.) to a remote Linux host over SSH, enabling MCP clients like Claude Code to operate on remote codebases.
    Last updated
    MIT
  • A
    license
    -
    quality
    A
    maintenance
    An MCP server enabling Claude to execute commands on multiple remote servers via SSH and transfer large files (40GB+) with resume support via SFTP.
    Last updated
    59
    11
    MIT

View all related MCP servers

Related MCP Connectors

  • Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer

  • Augments MCP Server - A comprehensive framework documentation provider for Claude Code

  • Cloud-hosted MCP server for durable AI memory

View all MCP Connectors

Latest Blog Posts

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/icryo/sshmcp'

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