ssh-mcp-server

ssh-mcp-server

6

The SSH MCP Server is an implementation of the Model Context Protocol that provides SSH capabilities for secure remote access. It integrates SQLite for data persistence and utilizes TypeScript for better development experience, offering several tools to manage SSH credentials.

SSH MCP Server

A Model Context Protocol (MCP) server offering SSH capabilities, enabling secure remote access and execution via the MCP protocol.

Features

  • SSH server implementation using MCP protocol
  • SQLite database for data persistence
  • TypeScript implementation for improved development

Prerequisites

  • Node.js (v16+ recommended)
  • npm or yarn
  • TypeScript knowledge

Usage

  • Uses SQLite ('ssh.db') for SSH credential storage, created automatically on start.
  • Tools include ssh_exec, add_credential, list_credentials, remove_credential. See documentation for input parameters.

Project Structure

  • src/: Source code
  • build/: Compiled output
  • node_modules/: Dependencies

Dependencies

  • @modelcontextprotocol/sdk
  • sqlite3
  • typescript

Development

  • Modify src/, then npm run build and npm start to test.

License

ISC

Contributing

  1. Fork repository
  2. Create feature branch
  3. Commit and push
  4. Create a Pull Request