shell-0
Provides direct, unsandboxed local machine access via filesystem, Python, Node.js, and shell commands for MCP agents.
README
shell-0
An MCP server that gives a model direct, unsandboxed access to the local machine: files, a Python runtime, a Node.js runtime, and a shell. Four tools, full system access, no guardrails.
This is deliberately not sandboxed. Point it at a machine you control, and understand the blast radius before you wire it into an agent.
Tools
fs- filesystem access: read, write, edit, copy, move, mkdir, rmdir, list, tree, search, grep, stat, diff, hash, head, tail, and duplicate detection. 50 MB read cap, no file-watcher race conditions.python_exec- run Python with the full standard library and whatever is installed in the server's environment. Module-level state persists across calls.js_exec- run JavaScript in a real Node.js process. Astateobject persists across calls. Requires Node.js on PATH.terminal- run shell commands (cmd.exe on Windows, bash elsewhere), with optional background jobs you can poll and kill.
Forensic audit (on by default)
Every filesystem change and every code or command execution is written to a rolling on-disk audit log, so nothing the tools do is silently lost:
- Writes, edits, and deletes are snapshotted with their previous contents before the change, so any overwrite or delete is recoverable.
- Reads and searches are timestamped in an access log.
- Python and shell executions are saved with their source, status, and output.
Logs live under ./data/ next to the server, split into per-session folders, and self-prune at 50 MB (oldest first). This is accountability, not sandboxing. The tools still do whatever you ask; you just get a full paper trail of it.
Move it with FS_AUDIT_ROOT / EXEC_AUDIT_ROOT, or turn it off entirely with SHELL0_AUDIT_DISABLE=1.
Install
Requires Python 3.10 or newer (tested on 3.12).
pip install -r requirements.txt
For js_exec, install Node.js from https://nodejs.org and make sure node is on your PATH. The other three tools have no dependencies beyond the MCP SDK.
Use it with an MCP client
shell-0 speaks MCP over stdio. Point your client at server.py. A Claude Desktop style config looks like this:
{
"mcpServers": {
"shell-0": {
"command": "python",
"args": ["/absolute/path/to/shell-0/server.py"]
}
}
}
Use an absolute path to server.py. On Windows, if python is not on PATH, use the full path to python.exe, and either forward slashes or escaped backslashes in the paths. There is a ready-to-edit copy in example_config.json.
Running over HTTP (optional)
shell-0 speaks stdio. If your MCP client wants HTTP instead (llama.cpp's web UI, OpenWebUI, and similar), there is a companion bridge that serves shell-0 over MCP streamable HTTP: mcp-http-bridge. Run it from this directory and point your client at http://127.0.0.1:8818/mcp.
WARNING: do not expose shell-0's tools over the network without thinking hard first.
shell-0's tools (
terminal,python_exec,js_exec,fs) run unsandboxed with your full privileges. Serving them over HTTP on anything other than127.0.0.1hands remote code execution to anyone who can reach the port. The bridge ships a filter that disables every execution tool by default for exactly this reason. Leave it that way unless you have put real authentication and TLS in front of it, and even then only enable what you actually need.
Configuration
All optional, set as environment variables:
SHELL0_AUDIT_DISABLE- set to1to turn the audit off (default: on).FS_AUDIT_ROOT/EXEC_AUDIT_ROOT- move the audit logs somewhere other than./data.FS_AUDIT_MAX_MB/EXEC_AUDIT_MAX_MB- audit size cap before pruning (default: 50).OUTPUT_MAX_CHARS- hard cap on a single tool result before it gets truncated (default: 15000).PYTHON_EXEC_TIMEOUT-python_exectimeout in seconds (default: 30).MCP_DEBUG- set totruefor stderr debug logging.
A word on safety
These tools run with your privileges and no sandbox. terminal and python_exec can do anything you can do from a shell. That is the whole point, but it means you should only connect shell-0 to agents and inputs you trust, on a machine where that access is acceptable. The audit log helps you see what happened after the fact. It does not stop anything from happening.
License
MIT. See LICENSE.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。