Feedback

@modelcontextprotocol/server-terminal MCP Server — by RichardTheuws

@richardtheuws Claim

Basic information

Runtime
TypeScript
Category
License
Not specified
Transports
stdio
Author
richardtheuws
Submitted by
Community
Quality
20
Stars
5

About @modelcontextprotocol/server-terminal MCP Server

Terminal server implementation for Model Context Protocol

@modelcontextprotocol/server-terminal is a MCP server in the Developer Tools category listed in the AddMCP.net directory, published by RichardTheuws. Supported transport: stdio. Runtime: TypeScript. The repository has 5 GitHub stars. Source code is hosted on github.com.

Setup

{
    "mcpServers": {
        "terminal": {
            "command": "npx",
            "args": [
                "-y",
                "@modelcontextprotocol/server-terminal"
            ]
        }
    }
}

@modelcontextprotocol/server-terminal MCP Server — by RichardTheuws config

Add this server to your MCP-compatible client using the configuration below.

{
    "mcpServers": {
        "terminal": {
            "command": "npx",
            "args": [
                "-y",
                "@modelcontextprotocol/server-terminal"
            ]
        }
    }
}

@modelcontextprotocol/server-terminal MCP Server — by RichardTheuws tools

Tool list not available yet

This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.

We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.

Overview

What is @modelcontextprotocol/server-terminal?

@modelcontextprotocol/server-terminal is an MCP server that provides secure, controlled access to terminal commands and npm operations over the Model Context Protocol. It lets AI agents execute shell commands, install packages, and run scripts in a sandboxed environment with configurable security constraints.

How to use @modelcontextprotocol/server-terminal?

Install the package via npm, then add the server to your MCP configuration file. In the config, you define an allowedCommands whitelist, a default timeout, a working directory, and optional environment variables. Once configured, you invoke operations like executeCommand, install, or runScript through the MCP client.

Key features of @modelcontextprotocol/server-terminal

  • Execute shell commands with full control
  • Built-in npm operations (install, run scripts)
  • Timeout handling for long-running commands
  • Security through an allowed commands list
  • Environment variables management and working directory control
  • TypeScript support

Use cases of @modelcontextprotocol/server-terminal

  • Automate build and test workflows by running npm scripts
  • Execute safe, predefined shell commands from an AI assistant
  • Install npm packages and manage dependencies programmatically
  • Run development servers (npm run dev) or builds (npm run build) via MCP

Frequently asked questions

1 What commands can the server run?

Only commands listed in the allowedCommands configuration array (e.g., npm, node, git) may be executed. This provides a security boundary.

2 How are long-running commands handled?

The server enforces a configurable defaultTimeout (default: 30000 ms). Commands that exceed the timeout are terminated.

3 What runtime dependencies are required?

Node.js and npm are required. The server itself is installed via npm and runs as a Node.js process.

4 Where does the server execute commands?

Commands run in the directory specified by defaultCwd in the configuration. This can be overridden per invocation via the cwd option.

5 How are environment variables managed?

You can set a base set of environment variables in the configuration under environmentVariables. These are passed to every command.

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬