@modelcontextprotocol/server-terminal
@MCP-Mirror
About @modelcontextprotocol/server-terminal
Mirror of
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"terminal": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-terminal"
]
}
}
}Tools
No tools detected
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?
A terminal server implementation for the Model Context Protocol (MCP). It provides secure and controlled access to shell commands and npm operations, designed for MCP integrations that need to run terminal tasks programmatically.
How to use @modelcontextprotocol/server-terminal?
Install the package via npm, then add the provided JSON configuration to your MCP config file. The configuration defines allowed commands, a default timeout, a working directory, and environment variables.
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
- Working directory control
- TypeScript support
Use cases of @modelcontextprotocol/server-terminal
- Run build, dev, or test scripts in a project directory
- Install npm packages automatically as part of an MCP workflow
- Execute controlled shell commands (e.g., git operations) with timeouts
- Manage development environment variables for consistent command execution
FAQ from @modelcontextprotocol/server-terminal
What are the required configuration fields?
The allowedCommands list, defaultTimeout, and defaultCwd are configurable; the README shows npm, node, and git as examples for allowed commands and a 30-second timeout.
How does the server enforce security?
It restricts which commands can be run via the allowedCommands configuration array—only those listed (e.g., npm, node, git) are permitted.
What npm operations are built-in?
The server exposes install(), runScript(), dev(), and build() methods for common npm tasks like installing packages and running scripts.
Does it support custom environment variables?
Yes, you can set environment variables like NODE_ENV through the environmentVariables configuration object.
What runtime or dependencies does it require?
It requires Node.js and npm to be installed, and it is installed via npm install @modelcontextprotocol/server-terminal.
Frequently asked questions
What are the required configuration fields?
The `allowedCommands` list, `defaultTimeout`, and `defaultCwd` are configurable; the README shows `npm`, `node`, and `git` as examples for allowed commands and a 30-second timeout.
How does the server enforce security?
It restricts which commands can be run via the `allowedCommands` configuration array—only those listed (e.g., `npm`, `node`, `git`) are permitted.
What npm operations are built-in?
The server exposes `install()`, `runScript()`, `dev()`, and `build()` methods for common npm tasks like installing packages and running scripts.
Does it support custom environment variables?
Yes, you can set environment variables like `NODE_ENV` through the `environmentVariables` configuration object.
What runtime or dependencies does it require?
It requires Node.js and npm to be installed, and it is installed via `npm install @modelcontextprotocol/server-terminal`.
Basic information
More Developer Tools MCP servers

PuzzleTide Puzzle Generator
Caravaca-LabsWord search generator, crossword generator, and sudoku generator + solver as a local-first MCP server. 15 deterministic tools: printable PDF puzzle worksheets, themed word banks, and verifiable LLM evals. From the makers
MCP-Scan: An MCP Security Scanner
invariantlabs-aiSecurity scanner for AI agents, MCP servers and agent skills.
Huoshan Test
volcengineextentos
Asger mølgaardExtentos is a multi-vendor development platform for adding smart-glasses capabilities to existing iOS and Android apps. The simplest analogy is Stripe for smart glasses:

BetterBugs
BetterBugsThe BetterBugs MCP (Model Context Protocol) enables you to load BetterBugs bug reports (via report links) directly to your preferred AI Agents and developer environments with MCP Client capabilities (such as Cursor, VS C
Comments