
CommandExecution
Commande EXECUTION MCP Server pour Claude Desktop
1
Github Watches
1
Github Forks
0
Github Stars
Command Execution MCP Server for Claude Desktop
Overview
The Command Execution MCP (Model Context Protocol) Server is a secure, controlled tool that allows Claude to execute shell commands directly on your local system. This server provides a safe and flexible way to interact with your computer's command line through Claude's interface.
Key Features
- Secure Command Execution: Runs shell commands with built-in safety checks
- Working Directory Support: Execute commands in specific directories
- Cross-Platform Compatibility: Works on macOS and other Unix-like systems
- Extensive Error Handling: Provides detailed feedback on command execution
- Timeout and Buffer Limits: Prevents runaway or resource-intensive commands
Security Measures
The server implements multiple layers of security:
-
Dangerous Command Blocking
- Prevents execution of potentially harmful commands like
rm -rf
,sudo
, etc. - Blocks commands that could compromise system integrity
- Prevents execution of potentially harmful commands like
-
Execution Constraints
- Maximum execution time: 30 seconds
- Maximum output buffer: 1MB
- Validates working directory existence
Supported Tools
1. execute-command
Execute shell commands with optional working directory specification.
Parameters:
-
command
(required): The shell command to execute -
workingDirectory
(optional): Specify the directory for command execution
Example Usage in Claude:
execute-command with command="ls -la" and workingDirectory="/Users/yourusername/Documents"
2. simple-hello
A basic demonstration tool that returns a greeting.
Parameters:
-
name
(optional): Name to greet (defaults to "World")
Example Usage in Claude:
simple-hello with name="Claude"
Installation
1. Prerequisites
- Node.js (v16 or later)
- Claude Desktop
- npm (Node Package Manager)
2. Install Dependencies
cd /path/to/command-execution-tool
npm install @modelcontextprotocol/sdk
3. Claude Desktop Configuration
Add the following to your Claude Desktop configuration file:
Location:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
- Windows:
%APPDATA%\Claude\claude_desktop_config.json
Configuration Block:
{
"mcpServers": {
"command-execution": {
"command": "node",
"args": [
"/full/path/to/command-execution-tool.js"
],
"env": {
"NODE_OPTIONS": "--no-deprecation"
}
}
}
}
Important: Replace /full/path/to/command-execution-tool.js
with the actual path to the script.
Usage Guidelines
- Be Cautious: Only run commands you understand
- Security First: The tool prevents obviously dangerous commands
- Working Directory: Specify a working directory for more controlled execution
Limitations
- Does not support interactive commands
- Maximum command execution time is 30 seconds
- Output is limited to 1MB
- Some system-critical commands are blocked
Contributing
Contributions are welcome! Please submit pull requests or open issues on the GitHub repository.
License
MIT License
Support
For issues or feature requests, please open a GitHub issue.
相关推荐
I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.
I find academic articles and books for research and literature reviews.
Evaluator for marketplace product descriptions, checks for relevancy and keyword stuffing.
Confidential guide on numerology and astrology, based of GG33 Public information
Emulating Dr. Jordan B. Peterson's style in providing life advice and insights.
Advanced software engineer GPT that excels through nailing the basics.
Your go-to expert in the Rust ecosystem, specializing in precise code interpretation, up-to-date crate version checking, and in-depth source code analysis. I offer accurate, context-aware insights for all your Rust programming questions.
Découvrez la collection la plus complète et la plus à jour de serveurs MCP sur le marché. Ce référentiel sert de centre centralisé, offrant un vaste catalogue de serveurs MCP open-source et propriétaires, avec des fonctionnalités, des liens de documentation et des contributeurs.
L'application tout-en-un desktop et Docker AI avec chiffon intégré, agents AI, constructeur d'agent sans code, compatibilité MCP, etc.
Manipulation basée sur Micropython I2C de l'exposition GPIO de la série MCP, dérivée d'Adafruit_MCP230XX
Plateforme d'automatisation de workflow à code équitable avec des capacités d'IA natives. Combinez le bâtiment visuel avec du code personnalisé, de l'auto-hôte ou du cloud, 400+ intégrations.
🧑🚀 全世界最好的 LLM 资料总结 (数据处理、模型训练、模型部署、 O1 模型、 MCP 、小语言模型、视觉语言模型) | Résumé des meilleures ressources LLM du monde.
Une liste organisée des serveurs de protocole de contexte de modèle (MCP)
Reviews

user_9SYHsgVw
I've been using the MCP Perplexity Server created by lostmind008 and I'm impressed by its powerful capabilities. It provides seamless performance and exceptional reliability for managing perplexity tasks. The welcome message and streamlined interface make it easy to get started. As an MCP enthusiast, I highly recommend this server for anyone needing robust perplexity-driven solutions. Check it out here: https://mcp.so/server/mcp-perplexity-server/lostmind008