TokenToSeaMCP Hub
中文 Console

SSH MCP Server

classfang

让智能体通过 SSH 在远程服务器上执行命令,并上传、下载文件。

Setup

Choose your client, copy the config, then fill in any required environment variables.

Add to CursorAdd to VS Code

claude mcp add ssh --env HOST='<HOST>' --env PORT='<PORT>' --env USERNAME='<USERNAME>' -- npx -y @fangjunjie/ssh-mcp-server --host '{{config.HOST}}' --port '{{config.PORT}}' --username '{{config.USERNAME}}' --password '{{config.PASSWORD}}'

Environment variables

  • HOST
  • PORT
  • USERNAME

Replace the placeholders with your own credentials and keep them out of version control.