MCP Terminal Server
MCP 终端服务器
一个简单的 MCP 服务器,它公开了一个用于运行终端命令的工具。
安装
安装 MCP Python SDK:
pip install mcpRelated MCP server: MCP Shell Server
用法
启动服务器:
python server.py在兼容 MCP 的客户端(例如 Claude Desktop)中连接到服务器:
mcp install server.py或者使用 MCP 检查器来测试它:
mcp dev server.py工具概述
该服务器公开一个工具:
终端命令
运行终端命令并返回其输出。
参数:
command:在终端中运行的命令
返回:
一本包含以下内容的字典:
stdout:命令的标准输出stderr:命令的标准错误输出return_code:命令的返回代码(0 通常表示成功)
Claude 中的用法示例:
Can you list the files in the current directory using the terminal tool?安全注意事项
此工具直接在您的系统上执行命令。请谨慎使用,因为它可以以与运行服务器的用户相同的权限运行任何命令。
限制
命令在 30 秒后超时
出于安全原因,请考虑对可以执行的命令实施额外的验证和限制
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseCqualityCmaintenanceA server that enables AI assistants to execute terminal commands and retrieve outputs via the Model Context Protocol (MCP).327MIT
- -licenseNot gradedqualityNot gradedmaintenanceA simple MCP server that provides a terminal tool for executing shell commands with safety features like timeouts and error handling.
- FlicenseNot gradedqualityDmaintenanceA server implementation for the Model Context Protocol (MCP) that allows Claude AI to execute commands through a command-line interface, enabling direct system interactions from within Claude.
- FlicenseBqualityDmaintenanceAn MCP server that enables users to execute arbitrary shell commands on their local machine and receive the output. It provides a terminal tool for running system commands through MCP-compatible clients using the Python SDK.1
Related MCP Connectors
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
A basic MCP server to operate on the Postman API.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
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/ivannafigueroa/mcp-shell-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server