shellserver
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
パラメータ | 型 | 必須 | デフォルト | 説明 |
| string | はい | — | 実行するシェルコマンド |
| string | いいえ | — | サブプロセスの作業ディレクトリ |
| number | いいえ |
| プロセスを強制終了するまでの待機秒数 |
このツールは exit_code、stdout、stderr を含む単一のテキストブロックを返します。コマンドがタイムアウトを超えた場合、プロセスは終了され、レスポンスはタイムアウトを示します。
クライアントの接続(ローカル実行の例)
MCP ホストを uv に向け、このプロジェクトを作業ディレクトリとして指定します。設定例の形式:
{
"mcpServers": {
"shellserver": {
"command": "uv",
"args": ["run", "python", "server.py"],
"cwd": "/absolute/path/to/shellserver"
}
}
}キー名と cwd は、お使いのエディタやクライアントに合わせて調整してください。
セキュリティ
このサーバーはホスト上で任意のシェルコマンドを実行します。このサーバーに対して MCP ツールを呼び出せる者は誰でも、そのマシンへのシェルアクセス権を実質的に持つことになります。信頼できるホスト、信頼できるクライアントでのみ使用し、リスクを十分に理解した上で利用してください。
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
Related MCP Servers
- AlicenseAqualityAmaintenanceA 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.1186MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that allows LLMs to execute shell commands and receive their output in a controlled manner.6MIT
- FlicenseBqualityDmaintenanceA Model Context Protocol server that enables LLM applications to safely execute shell commands with error handling and timeout settings.1
- AlicenseNot gradedqualityAmaintenanceA 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,165644MIT
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.
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/weezerzero/mcp-shellserver'
If you have feedback or need assistance with the MCP directory API, please join our Discord server