Cover image
Try Now
2025-03-25

MCP SSH server for Windsurf integration

3 years

Works with Finder

1

Github Watches

0

Github Forks

0

Github Stars

MCP SSH Server for Windsurf

A Model Context Protocol (MCP) compatible SSH server designed for seamless integration with Windsurf IDE.

Features

  • Full MCP protocol support for SSH operations
  • Auto-connect to predefined SSH servers
  • Interactive terminal interface for SSH sessions
  • Support for both password and key-based authentication
  • Compatible with Windsurf IDE through MCP integration

Troubleshooting Common Issues

Windsurf Settings Page Error

If you encounter an error message in the Windsurf Settings page showing "Error: request failed. Check your configuration." as shown in the image below, this server implementation provides the necessary MCP protocol endpoints to resolve this issue.

Windsurf Settings Error Message

This error typically appears when Windsurf cannot properly communicate with the MCP SSH server due to missing endpoints or protocol compatibility issues. The implementation in this repository includes all the necessary endpoints required for proper integration with Windsurf.

Setup and Installation

Requirements

python >= 3.7
flask
paramiko

Installation

  1. Clone the repository:
git clone https://github.com/yoi-hibino/mcp-ssh-server.git
cd mcp-ssh-server
  1. Install dependencies:
pip install -r requirements.txt

Configuration

Configure your SSH connection settings in the Windsurf MCP configuration file:

{
  "mcpServers": {
    "ssh": {
      "command": "python3",
      "args": [
        "/path/to/app.py"
      ],
      "cwd": "/path/to/mcp-ssh-server",
      "protocol": "http",
      "host": "localhost",
      "port": 5050,
      "env": {
        "SSH_DEFAULT_HOST": "your_hostname",
        "SSH_DEFAULT_PORT": "22",
        "SSH_DEFAULT_USERNAME": "your_username",
        "SSH_DEFAULT_PASSWORD": "your_password"
      }
    }
  }
}

MCP Endpoints

The server implements the following MCP protocol endpoints:

  • /alive - Server health check
  • /list_sessions - List active SSH connections
  • /mcp/status - Check MCP server status
  • /mcp/connect - Connect to SSH server
  • /mcp/execute - Execute commands on SSH server
  • /mcp/disconnect - Disconnect from SSH server
  • /ssh/capabilities - List SSH server capabilities
  • /ssh/sessions - List active SSH sessions

Running the Server

Start the server by running:

python app.py

This will start the server on port 5050. You can access the web interface at http://localhost:5050/

Integration with Windsurf

Configure Windsurf to use this MCP server by adding the appropriate configuration to your Windsurf MCP settings file.

After configuring, if you still encounter the error shown above, try these steps:

  1. Restart the MCP SSH server
  2. Completely restart the Windsurf application
  3. Verify the server is running and accessible at http://localhost:5050/
  4. Check that all MCP endpoints are responding correctly

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • Yasir Eryilmaz
  • AI scriptwriting assistant for short, engaging video content.

  • Daren White
  • A supportive coach for mastering all Spanish tenses.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://zenepic.net
  • Embark on a thrilling diplomatic quest across a galaxy on the brink of war. Navigate complex politics and alien cultures to forge peace and avert catastrophe in this immersive interstellar adventure.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • huahuayu
  • A unified API gateway for integrating multiple etherscan-like blockchain explorer APIs with Model Context Protocol (MCP) support for AI assistants.

  • deemkeen
  • control your mbot2 with a power combo: mqtt+mcp+llm

  • zhaoyunxing92
  • 本项目是一个钉钉MCP(Message Connector Protocol)服务,提供了与钉钉企业应用交互的API接口。项目基于Go语言开发,支持员工信息查询和消息发送等功能。

  • justmywyw
  • Short and sweet example MCP server / client implementation for Tools, Resources and Prompts.

  • sligter
  • Lite-MCP-Client是一个基于命令行的轻量级MCP客户端工具

    Reviews

    5 (1)
    Avatar
    user_0T2tuwa8
    2025-04-17

    I've been using mcp-ssh-server by yoi-hibino and it's been an absolute game-changer for my SSH needs. The seamless integration and robust performance have significantly improved my workflow. The documentation provided on the GitHub page is thorough, making setup a breeze. Highly recommend to anyone looking for a reliable SSH server solution. Check it out at https://github.com/yoi-hibino/mcp-ssh-server.