Get the FREE Ultimate OpenClaw Setup Guide →

termlink

MCP server for shell and terminal operations

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio chu2bard-termlink node dist/index.js

How to use

termlink exposes a terminal-like interface to Claude (or any MCP client) with a set of built-in tools to inspect and interact with your host system. The server is started by running the Node entry, which is expected to compile to dist/index.js, and then Claude can connect to the termlink MCP server to issue commands. Available tools include run_command for executing shell commands, read_file and write_file for file I/O, list_directory and file_exists for navigating the filesystem, and process_info, get_env, and list_processes for gathering system information and environment details. Use cases include running lightweight commands, viewing and editing files, listing directories, and inspecting running processes, all within the constraints configured by the termlink.json settings.

To use termlink, add it to your Claude Desktop config under mcpServers with the provided command and arguments. Example: { "mcpServers": { "termlink": { "command": "node", "args": ["dist/index.js"] } } }

Once connected, you can issue tool calls such as run_command {"command": "ls -la"}, read_file {"path": "/etc/hosts"}, or process_info to retrieve system statistics. The server relies on a local configuration file termlink.json to set runtime options like blockedCommands, allowedCommands, timeout, and maxOutputSize to tailor security and performance.

How to install

Prerequisites:

  • Node.js and npm installed on the host
  • Access to build the project (if source is provided)

Install and build:

  1. Install dependencies npm install

  2. Build the project (if applicable) npm run build

  3. Run the server (example) node dist/index.js

  4. Configure the MCP connection in Claude Desktop by adding an MCP server named termlink with: command: node args: ["dist/index.js"]

  5. Optional: create termlink.json in the working directory to customize runtime options (blockedCommands, allowedCommands, timeout, maxOutputSize). Example: { "blockedCommands": ["rm -rf /"], "allowedCommands": [], "timeout": 30000, "maxOutputSize": 524288 }

Additional notes

Notes and tips:

  • The termlink.json file allows you to tighten or loosen command restrictions. Be mindful of blockedCommands to prevent dangerous operations.
  • If you modify termlink.json, restart the MCP server so changes take effect.
  • Ensure dist/index.js exists after building; if the build step changes, adjust the npm run build output path accordingly.
  • The server exposes system information and filesystem access; consider running behind proper access controls and network restrictions to prevent leakage of sensitive data.
  • If you encounter timeouts, increase timeout in termlink.json or ensure the host can complete long-running commands within the allowed window.

Related MCP Servers

Sponsor this space

Reach thousands of developers