mcp_server
Provides remote Linux operations, including file read/write, shell job execution, disk-backed memory, and activation of operator-defined tools.
Click on "Deploy 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., "@mcp_serverRun 'df -h' 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.
mcp_server
Streamable HTTP MCP server for remote Linux operations. A local agent (Cursor, Cherry Studio, and other MCP clients) connects to POST /mcp and can read/write files, run shell jobs, keep disk memory, and activate operator-authored TypeScript tools.
The operator confirms every tool call in the client. There is no extra server-side sandbox.
Features
Streamable HTTP only (
0.0.0.0:7891by default). No stdio.Static Bearer token from
config/server.json(timing-safe compare).Builtin tools:
help,fs.*,exec.start/exec.poll/exec.kill/exec.list,memory.*.Dynamic tools:
meta.tool.draftthenmeta.tool.activate(esbuild + child-process worker). Survives reboot because disk is the source of truth.Long commands are ordinary tools, not the MCP Tasks extension, so clients that only implement
tools/callcan use them.
See docs/architecture.md and docs/decisions.md.
Related MCP server: Codex Harness MCP
Requirements
Node.js 20.11 or later
Linux host for production (
exec.startusessh -c)
Quick start
git clone https://github.com/luoxi0615/mcp_server.git
cd mcp_server
npm ci
cp config/server.example.json config/server.jsonEdit config/server.json: set a long random token, and put the public IP or DNS name you will use in the client URL into allowedHosts (this is the HTTP Host header allowlist, not a client-IP whitelist).
npm run build
npm startDevelopment:
npm run devClient
{
"mcpServers": {
"linux-ops": {
"url": "http://YOUR_PUBLIC_IP:7891/mcp",
"headers": {
"Authorization": "Bearer <same token as config/server.json>"
}
}
}
}Open TCP 7891 on the host firewall. The Host header in the request must match allowedHosts.
After connect, call help (optionally { "name": "exec.start" }) before using tools.
Linux install script
On the target host, as root:
sudo bash scripts/linux-install.shThe script installs Node if needed, writes config/server.json on first run, opens TCP 7891 when ufw/firewalld is active, and enables mcp-server.service. Override the packaged tarball with MCP_TARBALL_URL. Re-running keeps the existing token unless MCP_RESET_TOKEN=1.
Do not copy Windows node_modules onto Linux. Build a tarball with npm run pack when you need a new release archive.
Security
This process can run shell commands and touch arbitrary absolute paths. Treat the Bearer token as a root-equivalent secret. Traffic is plaintext HTTP unless you terminate TLS in a reverse proxy. config/server.json is gitignored.
License
This server cannot be deployed
Maintenance
Related MCP Connectors
Operate Linux, macOS and Windows from your LLM. Every action runs through an auditable allowlist.
Remote MCP server exposing SMI Aware tools, resources, and skills over Streamable HTTP.
Remote MCP server for supportsheep: run AI interviews and manage support content for your blog.
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceExposes a Linux host with shell, Python, and filesystem tools as MCP tools over HTTPS, enabling AI agents to execute commands and manage files remotely.5 npmMIT
- FlicenseNot gradedqualityAmaintenanceEnables MCP-compatible AI clients to invoke CLI-driven agent tools over Streamable HTTP, including shell execution, file operations, patching, image viewing, web search, and nested agent tasks, with permission modes and real-time progress streaming.-
- AlicenseNot gradedqualityBmaintenanceEnables AI clients to operate on a remote Linux server over MCP, allowing shell command execution, file editing, package installation, project builds, and service management.MIT
- AlicenseNot gradedqualityAmaintenanceTurns any Linux server into an AI-agent-accessible machine over HTTPS, allowing MCP clients like ChatGPT, Claude, and Grok to securely control files, run shell commands, inspect system state, query SQLite, and work with git behind a bearer token.1,323 npm4MIT