Skip to main content
Glama
weezerzero

shellserver

by weezerzero

shellserver

Python MCP SDK (FastMCP) で構築された、小規模な Model Context Protocol (MCP) サーバーです。サーバープロセスが実行されているマシン上でシェルコマンドを実行するツールを1つ提供します。

要件

  • Python 3.14+ (pyproject.toml を参照)

  • 依存関係のインストールと実行には uv を使用

Related MCP server: Shell MCP Server

セットアップ

このリポジトリをクローンまたはコピーし、プロジェクトのルートディレクトリから以下を実行します:

uv sync

サーバーの実行

サーバーは stdio トランスポートを使用します(FastMCP のデフォルト)。

uv run python server.py

サーバープロセスから stdout に余分なデータを出力しないでください。MCP は JSON-RPC に stdout を使用します。server.py 内のログは stderr に出力されます。

ツール: terminal_tool

パラメータ

必須

デフォルト

説明

command

string

はい

実行するシェルコマンド

cwd

string

いいえ

サブプロセスの作業ディレクトリ

timeout_seconds

number

いいえ

120

プロセスを強制終了するまでの待機秒数

このツールは exit_codestdoutstderr を含む単一のテキストブロックを返します。コマンドがタイムアウトを超えた場合、プロセスは終了され、レスポンスはタイムアウトを示します。

クライアントの接続(ローカル実行の例)

MCP ホストを uv に向け、このプロジェクトを作業ディレクトリとして指定します。設定例の形式:

{
  "mcpServers": {
    "shellserver": {
      "command": "uv",
      "args": ["run", "python", "server.py"],
      "cwd": "/absolute/path/to/shellserver"
    }
  }
}

キー名と cwd は、お使いのエディタやクライアントに合わせて調整してください。

セキュリティ

このサーバーはホスト上で任意のシェルコマンドを実行します。このサーバーに対して MCP ツールを呼び出せる者は誰でも、そのマシンへのシェルアクセス権を実質的に持つことになります。信頼できるホスト、信頼できるクライアントでのみ使用し、リスクを十分に理解した上で利用してください。

Install Server
F
license - not found
B
quality
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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

  • A
    license
    A
    quality
    A
    maintenance
    A secure shell command execution server implementing the Model Context Protocol (MCP). This server allows remote execution of whitelisted shell commands with support for stdin input.
    1
    186
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    A Model Context Protocol server that allows LLMs to execute shell commands and receive their output in a controlled manner.
    6
    MIT
  • F
    license
    B
    quality
    D
    maintenance
    A Model Context Protocol server that enables LLM applications to safely execute shell commands with error handling and timeout settings.
    1
  • A
    license
    Not graded
    quality
    A
    maintenance
    A Model Context Protocol server that allows LLMs to securely execute shell commands on remote Linux and Windows systems via SSH. It supports password and key-based authentication, command timeouts, and sudo elevation for administrative tasks.
    49,165
    644
    MIT

View all related MCP servers

Related MCP Connectors

  • A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…

  • A Model Context Protocol server for Wix AI tools

  • Operate Linux, macOS and Windows from your LLM. Every action runs through an auditable allowlist.

View all MCP Connectors

Latest Blog Posts

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/weezerzero/mcp-shellserver'

If you have feedback or need assistance with the MCP directory API, please join our Discord server