terminal-mcp-server

ArjunRamSada/terminal-mcp-server

3.1

If you are the rightful owner of terminal-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

This project provides a server that exposes shell command execution through the Model Context Protocol (MCP).

Tools
2
Resources
0
Prompts
0

MCP Terminal

This project provides a server that exposes shell command execution through the Model Context Protocol (MCP). It allows a client to send shell commands to the server, which then executes them in a persistent shell session, maintaining the current working directory across commands.

Installation

  1. Clone the repository.
  2. Install the dependencies:
npm install

Usage

Run the server using the following command:

node terminal_mcp.js

The server listens for requests to execute shell commands. It supports the following tools:

execute_command

Executes a shell command in a persistent shell session.

Arguments:

  • command (string, required): The command to execute.
  • timeout (number, optional): Timeout in milliseconds (default: 30000).
  • use_persistent_shell (boolean, optional): Use persistent shell session (default: true).

reset_shell

Resets the persistent shell session.

License

This project is licensed under the ISC License.