JUHE API Marketplace
charles-adedotun avatar
MCP Server

Lilith Shell

An enhanced MCP server that grants AI assistants the ability to execute terminal commands on a user's system with improved security controls, designed for use in controlled environments.

2
GitHub Stars
6/25/2026
Last Updated
MCP Server Configuration
1{
2 "name": "lilith-shell",
3 "command": "python",
4 "args": [
5 "-m",
6 "lilith_shell"
7 ],
8 "env": {
9 "LILITH_TIMEOUT": "30",
10 "LILITH_SHELL": "bash"
11 }
12}
JSON12 lines
  1. Home
  2. MCP Servers
  3. Lilith-Shell

README Documentation

Lilith Shell

Experimental MCP server that exposes local shell command execution to an AI assistant.

Current Status

This repository should be treated as a prototype, not as a secure shell server.

The current implementation exposes one MCP tool, execute_command, that runs a caller-provided command string through subprocess.run(..., shell=True). It has a fixed five-minute timeout, captures stdout and stderr, and accepts an optional working directory. It does not currently implement the security controls previously described in this README.

Recommended profile action: archive or unpin this repository until the security model is rebuilt and tested.

Security Warning

Do not run this against a host, account, or directory that contains credentials, production data, private source code, SSH keys, cloud tokens, or other sensitive material.

Known gaps in the current code:

  • No command allowlist or denylist enforcement
  • No strict, permissive, or lockdown modes
  • No working-directory boundary enforcement
  • No environment filtering
  • No output sanitization
  • No audit log
  • No shell selection via configuration
  • No streaming output
  • No Windows-specific execution path
  • shell=True is used with untrusted tool input

These gaps make the project unsuitable for production use and risky even in a normal developer workstation.

What Works Today

The MCP server registers one tool:

  • execute_command
    • input: command string
    • optional input: directory string, defaulting to ~
    • behavior: executes the command in the requested directory and returns exit code, stdout, and stderr

What Was De-Scoped

The previous README claimed support for command allowlisting, dangerous command detection, configurable modes, output sanitization, audit logging, working-directory confinement, cross-platform shell selection, and streaming output. Those capabilities are not present in the current source tree.

Minimal Patch Plan Before Re-Publishing

Before this should be presented as a security-oriented MCP server:

  1. Replace shell=True string execution with argv-based execution.
  2. Add a required strict mode by default, with explicit command allowlists.
  3. Canonicalize and enforce a configured workspace root before every command.
  4. Build tests for command parsing, blocked commands, path traversal, symlink escapes, timeout behavior, and output limits.
  5. Redact common secret patterns from returned output.
  6. Add bounded output handling so large commands cannot exhaust memory or flood MCP responses.
  7. Add auditable command logs with timestamps, cwd, exit code, and block reason.
  8. Document exactly which shells, platforms, and threat boundaries are supported.

Development

pip install -e ".[dev]"
pytest

License

MIT

Quick Install

Quick Actions

View on GitHubView All Servers

Key Features

Model Context Protocol
Secure Communication
Real-time Updates
Open Source

Boost your projects with Wisdom Gate LLM API

Supporting GPT-5, Claude-4, DeepSeek v3, Gemini and more.

Enjoy a free trial and save 20%+ compared to official pricing.

Learn More
JUHE API Marketplace

Accelerate development, innovate faster, and transform your business with our comprehensive API ecosystem.

JUHE API VS

  • vs. RapidAPI
  • vs. API Layer
  • API Platforms 2025
  • API Marketplaces 2025
  • Best Alternatives to RapidAPI

For Developers

  • Console
  • Collections
  • Documentation
  • MCP Servers
  • Free APIs
  • Temp Mail Demo

Product

  • Browse APIs
  • Suggest an API
  • Wisdom Gate LLM
  • Global SMS Messaging
  • Temp Mail API

Company

  • What's New
  • Welcome
  • About Us
  • Contact Support
  • Terms of Service
  • Privacy Policy
Featured on Startup FameFeatured on Twelve ToolsFazier badgeJuheAPI Marketplace - Connect smarter, beyond APIs | Product Huntai tools code.marketDang.aiFeatured on ShowMeBestAI
Copyright © 2026 JUHEDATA HK LIMITED - All rights reserved