mcp-server-commands logo

mcp-server-commands模型上下文通道服务器(MCP),用于运行命令

(0)
Daniel Nikulshyn审阅者 Daniel Nikulshyn·更新 2026年7月

概览

mcp-server-commands 是一种模型上下文通道服务器,可以在宿主机上运行命令。它为大型语言模型(LLMs)提供了一种执行系统命令并获取输出的方式。该工具可以通过两种方式调用:命令行参数或命令行字符串,它们将在系统的默认 shell 中执行。该工具会返回标准输出和标准错误作为文本,并允许可选的标准输入。主要设计为与 LLM 整合,能够在聊天应用程序如 Claude Desktop 和 Groq Desktop 中使用

主要功能

  • 命令行执行
  • 参数数组执行
  • STDOUT 和 STDERR 输出
  • 可选的 STDIN 输入
  • 与 Claude Desktop 和 Groq Desktop 集成

价格

模型
Free
评分
暂无评价

使用场景

运行系统命令

使用 mcp-server-commands 工具运行系统命令,如 'hostname' 或 'ls -al',获取输出。

执行脚本

使用可选的 STDIN 输入为命令如 'fish'、'bash' 或 'python' 传递脚本。

与 LLM 整合

配置工具与 LLMs 一起使用,如 Claude Sonnet 3.5 或 Groq Desktop with MCP 和 llama4 模型。

优点 & 缺点

优点

  • 允许 LLMs 运行系统命令并获取输出
  • 支持命令行字符串或参数数组的执行
  • 返回 STDOUT 和 STDERR 作为文本
  • 可选的 STDIN 输入允许为命令传递脚本

缺点

  • 需要小心处理权限和安全性
  • 不要使用 sudo 权限运行它
  • 可能需要在与某些 LLM 或应用程序一起使用时进行额外的配置

评测

登录以留下评测。

暂无评测。来当第一个吧!

问答

What security precautions are needed when using mcp-server-commands?

The server runs with the user’s permissions, so avoid sudo usage, review commands in Claude Desktop’s approval prompt, and be cautious about the commands you let the LLM execute.

Asked by Esther Adeyemi · Mar 27, 2026

Can I pass input to the command through the tool?

Yes, an optional STDIN parameter lets you feed scripts or data directly into commands such as fish, bash, zsh, or Python.

Asked by Celeste Marchetti · Mar 18, 2026

What output does the tool return to an LLM?

The tool returns both STDOUT and STDERR as plain text, allowing the LLM to see the command’s result or any error messages.

Asked by Liam O’Connor · Mar 13, 2026

How does mcp-server-commands execute a command?

It can run a command either as a single shell string (using the system’s default shell, so pipes and redirects work) or as an array of arguments that calls the executable directly without shell interpretation.

Asked by Halima Bello · Feb 16, 2026

提问

服务配缩器 的替代品