Shell MCP Server
Overview
Shell MCP Server is a Model Context Protocol server that enables the execution of shell commands in a controlled environment. This server allows Large Language Models (LLMs) to interact with the system shell and retrieve command outputs.
You can use the Shell MCP Server directly by installing it through pip or running it via the uv tool. After installation, you can execute shell commands by sending requests to the server that specify the command you want to run.
- Execute shell commands and retrieve the output in JSON format. - Configure the server for usage with applications like Claude and Zed. - Debugging capabilities using the MCP inspector.
- Automating system tasks by executing commands through an interface.
- Integrating shell commands within AI models for enhanced interactivity.
- Providing real-time feedback on system status via command execution.
Add to your AI client
Use these steps to connect Shell MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"mcp-server-shell-odysseus0": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-shell-odysseus0"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"mcp-server-shell-odysseus0": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-shell-odysseus0"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"mcp-server-shell-odysseus0": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-shell-odysseus0"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"mcp-server-shell-odysseus0": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-shell-odysseus0"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"mcp-server-shell-odysseus0": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-shell-odysseus0"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"mcp-server-shell-odysseus0": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-shell-odysseus0"
]
}
}
}FAQ
Can I run any shell command?
Yes, but be cautious as executing certain commands can pose security risks. Always ensure proper security measures are in place.
How do I install the server?
You can install it via pip using `pip install mcp-server-shell` or run it using the `uvx` tool without specific installation.
What are the security considerations?
The server executes commands directly on your system, so ensure you have implemented necessary security measures to prevent unauthorized command execution.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":302,"uuid":"17d30f60-cf09-4731-b635-18a186c8fdc0","name":"mcp-server-shell","title":"Shell MCP Server","description":null,"avatar_url":"https://avatars.githubusercontent.com/u/8635094?v=4","created_at":"2024-12-13T13:02:01.200Z","updated_at":"2024-12-13T15:09:09.766Z","status":"created","author_name":"odysseus0","author_avatar_url":"https://avatars.githubusercontent.com/u/8635094?v=4","tags":"[]","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/odysseus0/mcp-server-shell","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":null,"user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]