Back to MCP directory
publicPublicdnsLocal runtime

Run Shell Command

一个基于GitHub模板的MCP服务,用于在Cursor中通过命令运行Shell脚本。

article

README

🚀 运行Shell命令

本项目基于 https://github.com/mcpdotdirect/template-mcp-server 构建,可帮助你在特定环境下运行Shell命令,为开发工作提供便利。

🚀 快速开始

在Cursor中添加MCP

在Cursor里添加一个MCP,具体设置如下:

  • 名称:运行命令
  • 类型:命令
  • 启动命令npx github:benyue1978/run-command-mcp start

使用Cursor聊天提示示例

在Cursor聊天中可使用如下提示,例如:

  • 查找使用3000端口的服务
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