Terminal MCP Server

Terminal MCP Server

terminal-mcp-server-bhanuchaddha•bybhanuchaddha

An MCP server that executes terminal commands, returns their output, and provides a terminal command cheat sheet resource.

License: Not specified•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Executes terminal commands and returns stdout, stderr, and the return code.
  • •Provides a terminal_commands_cheat_sheet resource listing essential terminal commands with options and examples.
  • •Includes a magical_tool that intentionally demonstrates unsafe command execution as an educational security example.
  • •Handles errors so failed commands return error messages in stderr and non-zero return codes indicate failures.

BEST FOR

  • •Running and inspecting terminal commands through an MCP-connected assistant.
  • •Looking up common terminal commands, options, and usage examples.
  • •Demonstrating command injection risks in MCP server implementations for security education.

ABOUT TERMINAL-MCP-SERVER-BHANUCHADDHA

Terminal MCP Server is cataloged as an MCP server attributed to bhanuchaddha. An MCP server that executes terminal commands, returns their output, and provides a terminal command cheat sheet resource. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Terminal MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Is the unsafe command execution intentional?

Yes, the magical_tool is intentionally included as an educational example of insecure command execution and what not to do in production systems.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 655037770a10 · 采集于 2026-11-13 11:15:46 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

Terminal MCP Server

A simple MCP server that executes terminal commands and provides a terminal command cheat sheet. Also demonstrates potential security vulnerabilities in MCP server implementations.

Features

  1. Terminal Command Execution

    • Execute any terminal command
    • Get stdout, stderr, and return code
    • Error handling
  2. Security Vulnerability Demo

    • magical_tool demonstrates unsafe command execution
    • Shows how malicious code can be executed
    • Highlights importance of secure implementation
  3. Terminal Command Cheat Sheet

    • 30 essential terminal commands
    • Common options and flags
    • Usage examples

Installation

  1. Create a virtual environment:
uv venv
  1. Activate the virtual environment:
source .venv/bin/activate
  1. Install dependencies:
uv pip install -e .

Adding to Claude

  1. Locate Claude's desktop configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
  1. Add the terminal server configuration:
{
    "mcpServers": {
        "terminal": {
            "command": "/path/to/terminal-mcp-server/.venv/bin/python",
            "args": [
                "/path/to/terminal-mcp-server/src/server.py"
            ]
        }
    }
}

Replace /path/to/terminal-mcp-server with the actual path where you cloned this repository.

  1. Restart Claude to load the new configuration.

Testing with MCP Inspector

You can test the MCP server using the MCP Inspector tool, which provides a web interface for interacting with MCP servers.

  1. Install MCP Inspector:
npm install -g @modelcontextprotocol/inspector
  1. In another terminal, run the inspector:
npx @modelcontextprotocol/inspector

This will start a web application locally where you can:

  • Connect to your MCP server
  • Test all available tools
  • View tool responses
  • Inspect resources
  • Debug communication

Usage

The server provides:

  1. run_command tool:
# Safe command execution
result = await run_command("ls -la")
print(result["stdout"])  # Command output
print(result["stderr"])  # Any errors
print(result["return_code"])  # Exit code
  1. magical_tool:
# WARNING: Demonstrates unsafe command execution
# Shows how external commands can be executed without proper validation
result = await magical_tool()
print(result["stdout"])  # Executed command output
print(result["stderr"])  # Any errors
print(result["return_code"])  # Command exit code
  1. terminal_commands_cheat_sheet resource:
# Access terminal commands cheat sheet
commands = await terminal_commands_cheat_sheet()
print(commands)  # List of commands with examples

Security Implications

The magical_tool demonstrates a common security vulnerability where user inputs or file paths are used directly in command execution without proper validation. This could allow:

  1. Command Injection
  2. Arbitrary File Access
  3. System Manipulation

This is intentionally included as an educational example of what NOT to do in production systems.

Development

  1. Clone the repository
  2. Create and activate virtual environment as shown above
  3. Install dependencies
  4. Run the server:
uv run src/server.py

Error Handling

  • All tools handle errors gracefully
  • Failed commands return error messages in stderr
  • Resource access failures return error messages
  • Non-zero return codes indicate command failures

License

MIT

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Terminal MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/terminal-mcp-server-bhanuchaddha)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools