Terminal MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Terminal MCP Serverlist files in my current directory"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Terminal MCP Server
A simple MCP (Model Context Protocol) server that exposes a terminal tool and a resource for running shell commands and accessing documentation.
Features
Terminal Tool: Execute shell commands and get their output
Resource Support: Access the MCP readme documentation file
Working Directory Support: Optionally specify a working directory for commands
Timeout Protection: Commands timeout after 30 seconds
Error Handling: Proper error handling for failed commands
Related MCP server: MCP Shell Server
Installation
The project uses uv for dependency management. Install dependencies:
uv syncUsage
Running the Server
python server.pyTools
The server exposes a single tool called terminal with the following schema:
{
"name": "terminal",
"description": "Run terminal commands and return the output",
"inputSchema": {
"type": "object",
"properties": {
"command": {
"type": "string",
"description": "The shell command to execute"
},
"cwd": {
"type": "string",
"description": "Working directory for the command (optional)"
}
},
"required": ["command"]
}
}Example Usage
The tool can be called with:
{
"command": "ls -la",
"cwd": "/path/to/directory"
}Resources
The server exposes a resource for accessing the MCP readme documentation:
URI:
file:///resource/mcpreadme.mdName: MCP Readme
Description: MCP documentation and readme file
MIME Type:
text/markdown
This resource allows clients to read the MCP documentation directly through the server.
Security Note
⚠️ Warning: This server allows execution of arbitrary shell commands. Use with caution and only in trusted environments.
Dependencies
mcp[cli]>=1.13.0- MCP Python SDK
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
- AlicenseAqualityBmaintenanceAllows Claude desktop app to execute terminal commands and edit files on your computer through MCP, with features including command execution, process management, and diff-based file editing.Last updated102631,4388,981MIT
- -license-quality-maintenanceA simple MCP server that provides a terminal tool for executing shell commands with safety features like timeouts and error handling.Last updated
- Flicense-qualityDmaintenanceCustom MCP tools for local development that enable file system access, shell command execution, and web resource browsing. Designed for local use with safety considerations for potentially destructive operations.Last updated
- Alicense-qualityBmaintenanceEnables execution of arbitrary CLI tools and shell scripts by defining them in YAML configuration files as MCP Tools. Supports custom shells (bash, Python, Node.js, Deno), input parameters passed as environment variables, and flexible timeout settings.Last updated1136MIT
Related MCP Connectors
Augments MCP Server - A comprehensive framework documentation provider for Claude Code
Personal assistant MCP server with search, execute, packages, jobs, secrets, and integrations.
A MCP server built for developers enabling Git based project management with project and personal…
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/YongpengFu/mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server