linux-mcp-server
@MartinDai
About linux-mcp-server
support execute shell on a remote linux or local machine
Basic information
Config
No standard config provided
This server doesn't expose a parseable MCP config block in its README. See the repository for install instructions.
RepositoryTools
No tools detected
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is linux-mcp-server?
A Model Context Protocol (MCP) server built with Spring Boot and Spring AI that executes shell commands on local or remote Linux hosts. It exposes an executeShell tool via the MCP standard interface, allowing AI assistants like Claude Desktop to perform command-line operations securely.
How to use linux-mcp-server?
- Ensure Java 17+ and Maven 3.6+ are installed.
- Clone the repository and edit
src/main/resources/hosts.jsonto configure remote host credentials (IP, username, password). - Start the server with
mvn spring-boot:runor package it as a JAR (mvn clean package;java -jar target/linux-mcp-server-1.0.0.jar). The server listens on port3001at/mcp. - Add the server to an MCP client (e.g., Claude Desktop) using its HTTP endpoint. The client will discover the
executeShelltool, which acceptsmachineIp(optional),path(optional), andshell(required) parameters.
Key features of linux-mcp-server
- Dual execution mode: local process or remote SSH.
- SSH connection pool managed with Caffeine (5‑minute idle expiry).
- Lightweight host configuration via
hosts.json. - Spring Boot native, runnable as
mvn spring-boot:runor executable JAR. - MCP protocol compatible (STREAMABLE HTTP transport).
Use cases of linux-mcp-server
- AI-powered server administration (e.g., restart services, check logs).
- Automated batch command execution across multiple Linux hosts.
- Integrating shell scripting capabilities into MCP‑compatible chatbots.
FAQ from linux-mcp-server
What runtime does linux-mcp-server require?
Java 17+ and Maven 3.6+ (or the bundled Maven wrapper). The target hosts must have SSH service enabled.
How are remote host credentials handled?
Credentials are stored in plain text inside hosts.json. The README advises against committing production credentials; use environment variables or a secure config store for sensitive environments.
Does the server verify SSH host keys?
No. It uses PromiscuousVerifier which skips host key verification. For production, replace with a known‑hosts list to prevent man‑in‑the‑middle attacks.
What is the default transport and port?
The server uses STREAMABLE HTTP transport and listens on port 3001 at the /mcp endpoint. Both can be changed in application.yml.
How long are SSH connections cached?
SSH connections are cached by Caffeine with a default idle timeout of 5 minutes. The cache duration and maximum size can be adjusted in RemoteShellService.
More Other MCP servers
Codelf
unbugA search tool helps dev to solve the naming things problem.
AutoBrowser MCP
autobrowser-aiBrowser MCP is a Model Context Provider (MCP) server that allows AI applications to control your browser

EverArt
modelcontextprotocolModel Context Protocol Servers
Unity MCP ✨
justinpbarnettUnity MCP acts as a bridge between AI assistants and your Unity Editor. Give your LLM tools to manage assets, control scenes, edit scripts, and automate tasks within Unity.
Reactive Resume
amruthpillaiA one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
Comments