Back to MCP directory
publicPublicdnsLocal runtime

mcp-shell-server-yzq

一个简单的MCP服务器,提供终端命令和图片访问功能。

article

README

🚀 mcp-shell-server

mcp-shell-server 是一个简单的 MCP(模型上下文协议)服务器,提供终端命令访问和图片访问功能,方便用户执行命令和管理图片资源。

🚀 快速开始

安装依赖

确保已安装必要的库和工具,如PythonPillow等。

运行服务器

执行命令启动服务器:python mcp_shell_server.py

访问终端命令

通过指定的接口发送终端命令,服务器将执行并返回结果。

访问图片

使用提供的 URL 或 API 端点来获取存储的图片资源。

✨ 主要特性

  • 终端命令访问:允许通过终端执行各种命令。
  • 图片访问:支持访问和管理存储的图片资源。

💻 使用示例

基础用法

启动服务器

python mcp_shell_server.py

发送终端命令

curl -X POST http://localhost:8080/execute_command -d "ls"

获取图片

curl http://localhost:8080/images/image.jpg > image.jpg

📚 详细文档

更多详细信息请参考项目的官方文档或 GitHub 仓库。

⚠️ 重要提示

  • 确保服务器运行在安全的网络环境中。
  • 定期更新依赖和服务器软件以保持安全性。
help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client