HT MCP Terminal
ht-mcp is useful for enabling Agents to use terminals (e.g. bash, zsh, fish) in the same way a human does. It solves the challenge of agents stalling when they encounter interactive terminal commands.
What is HT MCP Terminal?
HT MCP Terminal is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to ht-mcp is useful for enabling agents to use terminals (e.g. bash, zsh, fish) in the same way a human does. it solves the challenge of agents stalling when they encounter interactive terminal commands.
ht-mcp is useful for enabling Agents to use terminals (e.g. bash, zsh, fish) in the same way a human does. It solves the challenge of agents stalling when they encounter interactive terminal commands.
This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- ht-mcp is useful for enabling Agents to use terminals (e.g.
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx ht-mcpConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use HT MCP Terminal
HT-MCP is a Rust-based MCP server that gives AI agents full access to persistent terminal sessions running real shells such as bash, zsh, or fish. Unlike running one-shot commands, it solves the hard problem of interactive terminal programs — tools that prompt for input, display progress bars, or require key presses — by letting the agent observe the terminal's current state as a snapshot and send precise keystrokes. This makes it possible to run package installers, interactive REPLs, test runners, and other CLI tools that would otherwise cause an agent to stall.
Prerequisites
- Rust 1.75 or later (if installing via Cargo) OR a pre-built binary from GitHub releases
- Homebrew (macOS users, for the recommended install path)
- An MCP-compatible AI client such as Claude Desktop or Cursor
- Linux, macOS, or Windows (Windows support is experimental)
Install ht-mcp
The recommended installation on macOS is via Homebrew. On Linux or Windows, download a pre-built binary from GitHub releases, or install via Cargo.
# macOS (recommended)
brew tap memextech/tap && brew install ht-mcp
# Via Cargo (all platforms)
cargo install ht-mcp
# From source
git clone https://github.com/memextech/ht-mcp
cd ht-mcp
git submodule update --init
cargo install --path .Verify the installation
Confirm ht-mcp is available on your PATH.
ht-mcp --versionAdd ht-mcp to your Claude Desktop config
Edit your Claude Desktop configuration file to register ht-mcp as an MCP server. The --debug flag is optional but useful during initial setup.
{
"mcpServers": {
"ht-mcp": {
"command": "ht-mcp",
"args": []
}
}
}Create a terminal session
Use the ht_create_session tool to start a new shell session. The agent can optionally enable a web server for debugging the terminal state in a browser.
Send commands and observe output
Use ht_execute_command to run a shell command and retrieve output, or use ht_send_keys for precise keystroke control (e.g., sending Enter, Ctrl+C, or answering interactive prompts). Use ht_take_snapshot to read the current terminal screen state at any time.
Clean up sessions
Use ht_list_sessions to view active sessions and ht_close_session to terminate them when done to free resources.
HT MCP Terminal Examples
Client configuration
Register ht-mcp in your Claude Desktop or Cursor MCP configuration. If the binary is not on PATH, provide the full path.
{
"mcpServers": {
"ht-mcp": {
"command": "ht-mcp",
"args": []
}
}
}Prompts to try
Ask the AI to use ht-mcp to run interactive terminal sessions, handle prompts, and manage shell processes.
- "Create a terminal session and run npm install in /my/project — answer any interactive prompts as needed."
- "Start a Python REPL in a terminal session, import pandas, and show me the version."
- "Run the test suite with pytest and capture the output, pressing Enter if it asks for confirmation."
- "List all active terminal sessions you have open."
- "Close all terminal sessions when you're done with the task."Troubleshooting HT MCP Terminal
ht-mcp command not found after installation
Ensure the binary is on your PATH. For Cargo installs, the binary is placed in ~/.cargo/bin — add this to your PATH in ~/.bashrc or ~/.zshrc. For Homebrew, run brew link ht-mcp.
Agent stalls waiting for a terminal prompt without responding
Use ht_take_snapshot to read the current terminal state, then use ht_send_keys with the appropriate response (e.g., 'y\n' to confirm, or a passphrase followed by '\n'). The agent must read the snapshot before knowing what the terminal is waiting for.
Cargo build fails due to missing submodules
Run git submodule update --init --recursive in the cloned ht-mcp directory before running cargo install --path .
Frequently Asked Questions about HT MCP Terminal
What is HT MCP Terminal?
HT MCP Terminal is a Model Context Protocol (MCP) server that ht-mcp is useful for enabling agents to use terminals (e.g. bash, zsh, fish) in the same way a human does. it solves the challenge of agents stalling when they encounter interactive terminal commands. It connects AI assistants to external tools and data sources through a standardized interface.
How do I install HT MCP Terminal?
Follow the installation instructions on the HT MCP Terminal GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with HT MCP Terminal?
HT MCP Terminal works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is HT MCP Terminal free to use?
Yes, HT MCP Terminal is open source and available under the Apache 2.0 license. You can use it freely in both personal and commercial projects.
HT MCP Terminal Alternatives — Similar Developer Tools Servers
Looking for alternatives to HT MCP Terminal? Here are other popular developer tools servers you can use with Claude, Cursor, and VS Code.
Ecc
★ 188.2kThe agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
Javaguide
★ 155.8kJava 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发
Gemini CLI
★ 104.5kA secure MCP server that wraps the Google Gemini CLI, allowing clients to query Gemini models using local OAuth sessions without requiring an API key. It provides tools for model interaction and diagnostics with built-in protection against command in
Awesome MCP Servers
★ 87.3k⭐ Curated list of Model Context Protocol (MCP) servers - tools that extend Claude Desktop, Cursor, Windsurf, and other MCP clients with custom capabilities.
MCP Servers
★ 86.0kModel Context Protocol Servers
CC Switch
★ 77.5kA cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Gemini CLI & Hermes Agent. Only official website: ccswitch.io
Browse More Developer Tools MCP Servers
Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up HT MCP Terminal in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use HT MCP Terminal?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.