SSH-PowerShell MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@SSH-PowerShell MCP Serverrun 'df -h' on server 192.168.1.100 to check disk space"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
SSH-PowerShell MCP Server
π Enterprise-grade Model Context Protocol (MCP) server for secure SSH and PowerShell command execution with Claude Desktop.
β¨ Features
οΏ½ Secure SSH command execution on remote servers
β‘ Local PowerShell integration for Windows automation
π‘οΈ Enterprise security with SSH key authentication
π Network scanning and SSH port discovery
π SSH key verification and host key scanning
π Comprehensive logging and error handling
π― Claude Desktop optimized for seamless AI integration
οΏ½π Quick Start
# Clone repository
git clone https://github.com/GUEPARD98/MCP-POWERSHELL.git
cd MCP-POWERSHELL
# Install dependencies
npm install
# Configure environment
Copy-Item config\.env.example config\.env
# Edit config\.env with your SSH settings
# Start server
npm startπ Project Structure
MCP-POWERSHELL/
βββ π config/ # Environment configurations
β βββ .env.example # Configuration template
β βββ .env.development # Development settings
β βββ .env.production # Production settings
β βββ .env.test # Test settings
βββ π docs/ # Complete documentation
β βββ README.md # Detailed guide
β βββ API.md # API reference
β βββ ARCHITECTURE.md # Technical architecture
β βββ SECURITY.md # Security best practices
βββ π scripts/ # PowerShell automation scripts
β βββ start.ps1 # Start server
β βββ stop.ps1 # Stop server
β βββ setup.ps1 # Initial setup
β βββ test.ps1 # Run tests
βββ π src/ # Source code
β βββ index.js # Main MCP server
βββ π tests/ # Automated testsπ οΈ Available Commands
Command | Description |
| Start MCP server |
| Run test suite |
| Development mode with PowerShell scripts |
| Initial configuration |
β‘ MCP Tools
π ssh_execute
Execute commands on remote SSH servers
// Example: Run 'ls -la' on remote server
{
"name": "ssh_execute",
"arguments": {
"command": "ls -la",
"host": "192.168.1.100",
"user": "root"
}
}π» powershell_execute
Execute PowerShell commands locally
// Example: Get Windows processes
{
"name": "powershell_execute",
"arguments": {
"command": "Get-Process | Select-Object -First 10"
}
}π ssh_scan
Scan network for SSH services
// Example: Scan local network
{
"name": "ssh_scan",
"arguments": {
"target": "192.168.1.0/24"
}
}π ssh_keyscan
Verify SSH host keys
// Example: Get host key fingerprint
{
"name": "ssh_keyscan",
"arguments": {
"host": "192.168.1.100"
}
}π§ Configuration
Environment Setup
Copy
config/.env.exampletoconfig/.envConfigure your SSH settings:
# SSH Configuration
SSH_KEY_PATH=/path/to/your/ssh/key
SSH_DEFAULT_HOST=your.server.ip
SSH_DEFAULT_USER=your_username
SSH_DEFAULT_PORT=22
# Security Settings
SSH_STRICT_HOST_KEY_CHECKING=no
COMMAND_TIMEOUT=30000
LOG_LEVEL=infoClaude Desktop Integration
The server automatically configures Claude Desktop. Manual setup:
{
"mcpServers": {
"ssh-powershell-mcp": {
"command": "node",
"args": ["path/to/MCP-POWERSHELL/src/index.js"],
"env": {
"NODE_ENV": "production"
}
}
}
}οΏ½ Security
β SSH key authentication only (no passwords)
β Command sanitization with shell-escape
β Environment isolation for different configurations
β Comprehensive input validation
β Secure credential handling
See SECURITY.md for detailed security practices.
π Documentation
Complete Guide - Detailed installation and usage
API Reference - Full MCP API documentation
Architecture - Technical design and diagrams
Security Guide - Security best practices
π§ͺ Testing
# Run all tests
npm test
# Run specific test types
.\scripts\test.ps1 -TestType unit
.\scripts\test.ps1 -TestType integration
.\scripts\test.ps1 -TestType sshπ€ Contributing
Fork the repository
Create feature branch (
git checkout -b feature/amazing-feature)Commit changes (
git commit -m 'Add amazing feature')Push to branch (
git push origin feature/amazing-feature)Open Pull Request
π License
This project is licensed under the MIT License - see the LICENSE file for details.
πββοΈ Support
π Check the documentation
π Report issues on GitHub Issues
π¬ Join discussions in GitHub Discussions
π Acknowledgments
Model Context Protocol for the excellent SDK
Claude Desktop for AI integration capabilities
The open-source community for inspiration and tools
π’ Enterprise Ready | π Secure by Design | β‘ Claude Optimized
Made with β€οΈ by GUEPARD98
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Appeared in Searches
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/GUEPARD98/MCP-POWERSHELL'
If you have feedback or need assistance with the MCP directory API, please join our Discord server