Self-host ht-mcp
v0.1.3Rust MCP server for headless terminal sessions
- Stars
- 217
- Port
- 3618 (Web interface for live terminal preview)
What is ht-mcp?
ht-mcp is a Model Context Protocol server written in Rust that gives AI assistants the ability to create and control headless terminal sessions through the ht library. It runs as a single standalone binary with no external dependencies, making it trivial to install via Homebrew, Cargo, or pre-built binaries for Linux, macOS, and Windows. The server exposes MCP tools for creating sessions, sending keystrokes, executing commands, capturing terminal snapshots, and listing or closing sessions. An optional web interface provides a live terminal preview on port 3618. It integrates with MCP-compatible clients such as Memex and Claude Code. The project is developed by Atlas Futures Inc. (memextech organization) under the Apache-2.0 license.
Should you self-host ht-mcp?
ht-mcp scores 42/100 on selfhost.directory (how scoring works) and ranks #122 of 166 in Developer Tools. It has 217 GitHub stars.
There was no stable release in the past 12 months, so check the repository's recent activity before you rely on it.
Setup is easy: most people get it running in one sitting. It is Apache-2.0-licensed and written mostly in Rust.
Its closest alternative on selfhost.directory is openhands (87/100, 92 105 stars). It scores higher overall, so compare the two before you pick. See ht-mcp vs openhands side by side.
Features
- Human-readable text responses
- Live terminal preview
- MCP Server
- MCP tool: ht_close_session
- MCP tool: ht_create_session
- MCP tool: ht_execute_command
- MCP tool: ht_list_sessions
- MCP tool: ht_send_keys
- MCP tool: ht_take_snapshot
- Multi-session terminal management
- Pure Rust single binary
ht-mcp README
More in AI
HunterCode Community EditionSelf-hosted AI investment research for A-shares, HK & US stocks with local data storage and BYOK LLM support.
image-prompt-librarySelf-hosted open-source app for managing a private library of AI images with prompts, tags, and collections. Runs locally with SQLite, optional ChatGPT/Grok OAuth.
inference-gatewaySelf-hosted gateway that routes requests to 16+ LLM providers through a single OpenAI-compatible endpoint with MCP tools, A2A agents, guardrails, and observability.
InnoShopInnoShop is a self-hosted, open-source e-commerce system on Laravel 13 with AI/MCP, multi-language/currency, and plugin/theme architecture.
ITOps Agent PlatformSelf-hosted multi-agent AIOps platform automating incident lifecycle from alert to remediation with AI root cause analysis and human-in-the-loop approval.
JaazAn open-source AI creative agent with an infinite canvas for one-prompt image and video generation, a Canva alternative that runs locally on Windows and macOS.
jevosOpen-source, self-hosted decision model answering yes/no, choice and score questions with probabilities on a laptop CPU in 28-130 ms, an alternative to Jev's cloud.
Judge0Robust, fast, scalable, and sandboxed open-source online code execution system for humans and AI.
Judge0 CEOpen-source, self-hosted code execution engine that runs untrusted code in a sandbox behind a JSON API, covering 90+ languages for AI agents and online judges.
KaaSSelf-hosted, open-source knowledge-base compiler turning scattered notes into a queryable Markdown wiki via a 4-phase LLM pipeline. Exposes wiki via MCP for AI agents.
kandevSelf-hosted open-source platform to run and coordinate multiple AI coding agents with kanban boards, integrated workspace, and review gates.
KanVibeKanVibe is a self-hosted desktop Kanban board that manages AI coding agents through git worktrees and embedded terminals with automatic hook-driven task tracking.


0 comments