shell-sieve
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@shell-sieverun npm install and show me only the errors"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
shell-sieve
An MCP server and CLI wrapper that executes shell commands and intelligently compresses, filters, and extracts errors from verbose output to save AI agent context windows.
🎯 Why?
AI coding agents frequently exhaust their context windows when running verbose commands like npm install or pytest, leading to hallucinations or dropped errors. Existing tools either blindly truncate output (losing the stack trace) or dump everything; Shell Sieve intelligently strips ANSI, collapses repetitive progress lines, and guarantees error extraction.
Target audience: AI agent developers, users of Claude Code/Cursor/Cline, and CLI power users who want clean, actionable command output without the noise.
Related MCP server: Shell Server
✨ Features
✨ ANSI stripping and smart line collapsing (e.g., progress bars)
✨ Error-aware truncation (always keeps the last N lines and any detected stack traces/errors)
✨ Native MCP Server implementation for seamless integration with Cursor, Claude Desktop, and Cline
🚀 Quick Start
# Install
pip install shell-sieve
# Run
shell-sieve --help📦 Installation
From Source
git clone https://github.com/YOUR_USERNAME/shell-sieve.git
cd shell-sieve# Create virtual environment
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
# Install in development mode
pip install -e ".[dev]"
# Run tests
pytest -v🎬 Demo
The GIF above was recorded using Charm VHS:
vhs < demo.tape📖 Usage
# Show help
shell-sieve --help
# Common usage examples
shell-sieve --example🏗️ Architecture
graph LR
A[Input] --> B[Core Engine]
B --> C[Output]
B --> D[Plugins]
D --> E[Extensions]🤝 Contributing
Contributions are welcome! Please:
Fork the repo
Create a feature branch (
git checkout -b feature/amazing-feature)Commit your changes (
git commit -m 'Add amazing feature')Push to the branch (
git push origin feature/amazing-feature)Open a Pull Request
📄 License
MIT © 2026 — See LICENSE for details.
If this project helped you, please ⭐ star it!
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityAmaintenanceAn MCP server that preserves LLM context by intercepting large data outputs and returning only concise summaries or relevant sections. It enables efficient sandboxed code execution, file processing, and documentation indexing across multiple programming languages and authenticated CLIs.Last updated1119,86619,556Elastic 2.0
- FlicenseAqualityDmaintenanceA lightweight MCP server that provides AI assistants with access to a system's terminal through a secure terminal tool. It enables users to execute shell commands and receive stdout, stderr, and exit codes directly within an MCP-compatible client.Last updated1
- Alicense-qualityFmaintenanceA secure MCP server for shell operations, terminal management, and process control, enabling AI assistants to safely execute commands and manage interactive sessions.Last updated1564MIT
- AlicenseAqualityAmaintenanceMCP server for executing shell commands with automatic RTK token reduction, persistent caching, and execution logging.Last updated28122MIT
Related MCP Connectors
A paid remote MCP for OpenAI Codex context compressor, built to return verdicts, receipts, usage log
MCP server for AI dialogue using various LLM models via AceDataCloud
Cloud-hosted MCP server for durable AI memory
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/yulinlina/shell-sieve'
If you have feedback or need assistance with the MCP directory API, please join our Discord server