system-command-mcp

system-command-mcp

Enables AI to execute registered system commands across platforms using a stable program + args interface, without requiring shell-specific syntax or tool discovery.

Category
Visit Server

README

system-command-mcp

跨平台系统命令 MCP Server。AI 使用稳定的 program + args[] 接口调用已注册程序,不需要选择 Bash、PowerShell 或 cmd.exe,也不需要用 which、where、command -v、Get-Command 探测工具。

工具

system_exec

program 枚举在 Server 启动时根据当前 PATH 自动生成:

{
  "program": "git",
  "args": ["status", "--short"],
  "cwd": ".",
  "timeoutMs": 30000
}

参数不会经过 Shell 展开,$HOME、*.ts、&& 等会原样传递。

system_environment

返回平台、架构、根工作目录,以及逻辑程序名到真实可执行文件的映射。通常无需先调用;system_exec.program 的 Schema 已包含可用程序。

构建和测试

npm install
npm run build
npm test

需要 Node.js 20 或更高版本。

MCP 配置

{
  "mcpServers": {
    "system-command": {
      "command": "node",
      "args": [
        "/absolute/path/system-command-mcp/dist/src/cli.js",
        "--root",
        "/absolute/path/to/workspace"
      ]
    }
  }
}

默认逻辑程序名

  • git、node、npm、pnpm、yarn、bun
  • python:依次解析 python3、python
  • ripgrep:解析 rg
  • powershell:依次解析 pwsh、powershell

只暴露当前环境实际存在的程序。

当前限制

  • 仅支持 stdio transport;
  • 不支持管道、重定向、任意 Shell 脚本、交互式 TTY 或后台常驻进程;
  • 默认超时 30 秒,stdout/stderr 分别保留最后 1 MiB;
  • cwd 必须位于 --root 内;
  • 程序快照在启动时生成,环境变化后需重启 Server;
  • 超时和取消只保证终止直接子进程,不保证清理完整进程树。

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured