Skip to main content
AllMCPs
BrowseBestCategoriesStackCompareToolsGuidesBlog
Log in Submit MCP

Stay in the loop

Get new MCP servers and top picks in your inbox.

AllMCPs

The open directory for discovering and installing Model Context Protocol servers.

AllMCPs on GitHub (opens in a new tab)
Launched onTiny Startupstinystartups.com
Explore
  • Browse servers
  • Best MCP servers
  • Categories
  • MCP clients
  • Agent prompts
  • Stack Builder
  • Compare servers
  • Random discovery New
  • Submit a server
  • Pricing & Boost Boost
Learn
  • Guides hub
  • What is MCP?
  • Install guide
  • Build an MCP server
  • Deploy an MCP server
  • Security guide
  • Troubleshooting
  • MCP for SEO & AEO
  • Protocol versioning
  • Blog & updates
Tools
  • All developer tools
  • Config generator
  • Config validator
  • Config auditor
  • MCP playground
  • Token calculator
  • OpenAPI β†’ MCP
  • Badge generator
For agents
  • REST API docs
  • Trust & traffic Live
  • Remote MCP server SSE β†— (opens in a new tab)
  • llms.txt β†— (opens in a new tab)
  • Catalog JSON β†— (opens in a new tab)
Company
  • About
  • Advertise Sponsor
  • Contact
  • GitHub β†— (opens in a new tab)
  • Terms
  • Privacy
AllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZoneAllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZone
Β© 2026 Jackalope Digital LLC. All rights reserved.
  1. Home
  2. πŸ–₯️ Command Line
  3. Pty MCP
Pty MCP logo
Health: ActiveRecent health check succeeded.Last checked 9/11/2026, 1:30:50 PM

Pty MCP

User RatingsBe the first to rate and review this MCP server!
View Repository17 GitHub StarsTotal stargazers on GitHub for the source repository (17 stars).Visit Website
developer-toolscommand-linesshserialterminal

Provides interactive local, SSH, persistent remote, and serial terminal sessions to AI agents through MCP.

Quick Install

Automated & IDE Setup

Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β€” or use 1-click editor setup below.

Add to CursorAdd to VS Code
Not yet automatically verified

We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β€” we're steadily working through the catalog.

Manual Client & Custom JSON ConfigExpand JSON β–Ύ

Client Config & Setup

Choose your client or environment
Target File:~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "raychao-oao-pty-mcp": {
      "command": "go",
      "args": [
        "run",
        "github.com/raychao-oao/pty-mcp@latest"
      ]
    }
  }
}

πŸ’‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.

Install Tool Schemas (12) Directory Badge Claim listing AlternativesπŸ–₯️ More in Command Line

Overview

raychao-oao/pty-mcp MCP server exposes interactive PTY sessions to AI agents over MCP. It supports local shells, SSH connections, serial devices, persistent remote sessions, control keys, terminal resizing, and output matching with waits. Persistent SSH sessions use the optional ai-tmux daemon so work can continue after disconnecting. Reach for it when an agent needs to operate an interactive shell, monitor a process, manage a network device, or reconnect to a long-running remote task.

Use cases

β€’Operate interactive local shells and language REPLs
β€’Manage remote hosts through SSH sessions
β€’Monitor logs until a matching event appears
β€’Connect to routers or embedded devices over serial
β€’Resume long-running remote tasks after disconnecting

Key features

β€’Interactive local PTY sessions
β€’SSH sessions with config alias support
β€’Serial port connections
β€’Persistent remote sessions through ai-tmux
β€’Pattern-based output waits and bounded buffering
β€’Control keys, secret prompts, resizing, and optional audit logging

Capabilities & Tool Schemas (12) ~210 tokensApproximate context cost of this server’s tool schemas (~4 chars/token), before any tool is called. Actual usage depends on your client and model.Self-reported Self-reportedParsed from the repository README, not verified against a live server β€” may be incomplete or out of date.

Inspect callable tools, capabilities, and parameters exposed to AI agents by Pty MCP.

create_local_session

Start a local interactive terminal (bash, python3, node, etc.)

create_ssh_session

SSH to a remote host (supports SSH config aliases)

create_serial_session

Connect to a serial port device

send_input

Send a command and wait for output to settle

read_output

Read output, optionally wait for a pattern (`wait_for`, `timeout`, `context_lines`, `tail_lines`)

send_control

Send control keys (ctrl+c, ctrl+d, arrows, tab, etc.)

How Pty MCP works

What raychao-oao/pty-mcp MCP server does

raychao-oao/pty-mcp MCP server gives an AI agent access to interactive pseudo-terminal sessions rather than one-off non-interactive command execution. It can start local sessions for shells and interpreters such as bash, Python, or Node.js; open SSH sessions to remote hosts; and connect to serial devices used by embedded or network equipment.

The server is aimed at operational work where commands may prompt for input, produce output over time, or require terminal control. An agent can start a process, send additional input, interrupt it, wait for a known output pattern, and inspect recent output. Examples supported by the project include checking whether a rebooted host is reachable, watching a log until an error appears, and interacting with a router console.

How it works

The server communicates with an MCP client over JSON-RPC on standard input and output. A session manager maintains the active terminal sessions and returns session identifiers that subsequent tool calls use.

Local terminals use a PTY on the machine running the server. SSH sessions create remote PTYs and support SSH configuration aliases. Serial sessions connect to a specified device and baud rate. For persistent remote work, the SSH connection can use ai-tmux on the remote host; the remote PTY then remains available after the client disconnects and can be reattached later.

Output handling includes settle detection and optional regular-expression matching. read_output can wait for a pattern, apply a timeout, and return surrounding or trailing lines. A bounded ring buffer is used for long-running sessions. send_secret opens a native operator prompt and sends the entered value directly to the PTY; the agent receives only success and length information according to the provided example.

Setup and configuration

The project is distributed as a Go binary. The README documents a Claude Code plugin that installs the binary automatically, a shell installer for macOS, Linux, and WSL2, downloads from GitHub Releases, and building with Go 1.25 or newer. Manual registration uses the installed pty-mcp executable with the client’s MCP configuration.

Persistent sessions require an ai-tmux binary on the remote server. It can be installed there with the project’s installer or copied to the host. Without that remote component, regular local, SSH, and serial sessions remain available, but the documented persistent-session workflow is not.

No required environment variables or paid API credentials are documented. SSH access, serial-device permissions, local GUI support for secret prompts, and access to the target hosts or devices depend on the deployment environment.

Tools and capabilities

The exposed tools cover:

  • Creating local, SSH, and serial sessions.
  • Sending input and control keys such as interrupt, end-of-input, arrows, tab, and escape.
  • Reading output immediately or waiting for a pattern with timeout and context options.
  • Sending operator-entered secrets without returning the secret to the AI context.
  • Listing, closing, detaching, resizing, and reattaching sessions.
  • Listing persistent sessions on a remote host.

An optional audit log can record send_input operations to a collector. The documented redaction behavior removes credentials, authentication headers, and PEM keys before audit entries are written.

Limitations and notes

The server operates real local terminals, remote shells, and device consoles, so the MCP host and its user account need appropriate operating-system, SSH, and serial permissions. Secret entry depends on a supported graphical prompt: the README names macOS system dialogs, Windows credential prompts under WSL2, and zenity or kdialog on Linux.

Persistent remote sessions are a separate capability from ordinary SSH sessions and depend on ai-tmux being available on the destination host. The README describes supported release binaries for macOS and Linux platforms and specifically documents WSL2 usage; it does not establish support for every operating system or MCP client.

raychao-oao/pty-mcp MCP server is therefore best suited to controlled administration, device operations, interactive troubleshooting, and long-running tasks where an agent must preserve terminal state instead of repeatedly polling a non-interactive command.

Read the full README β†’View source on GitHub β†’

Related MCP Servers

View all in Command Line View all alternatives
  • Forge logoForge

    Terminal MCP server for AI coding agents with persistent PTY sessions, ring-buffer incremental reads, headless xterm screen capture, multi-agent orchestration, and a real-time web dashboard.

    πŸ–₯️ Command Line4 views
    Compare vs Forge β†’
  • Hop logoHop

    Fast SSH connection manager with TUI dashboard and MCP server for discovering, searching, and executing commands on remote hosts.

    πŸ–₯️ Command Line4 views
    Compare vs Hop β†’
  • MCP Ssh Manager logoMCP Ssh Manager

    Manage multiple SSH servers from one MCP: command execution, file transfer/rsync, database dump/import/query (MySQL/PostgreSQL/MongoDB), backups & restore, health monitoring, persistent sessions, tunnels, ProxyJump/bastion, and opt-in per-server security modes (readonly/restricted) with audit log. Linux, macOS & Windows OpenSSH.

    πŸ–₯️ Command Line7 views
    Compare vs MCP Ssh Manager β†’
  • Tui MCP logoTui MCP

    What Chrome DevTools MCP is for the browser, tui-mcp is for the terminal. Launch, screenshot, and interact with any TUI app.

    πŸ–₯️ Command Line2 views
    Compare vs Tui MCP β†’

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks β€” not a rating.

GitHub stars
17
Stargazers on the source repository.
Last commit
3d ago
Most recent push to the default branch.
Tools exposed
12
Callable tools this server registers over MCP.
Directory activity
3 views
Config copies, upvotes, and views on AllMCPs.

Reviews

No reviews yet β€” be the first to share how this listing worked for you.

Frequently Asked Questions about Pty MCP

The README documents a Claude Code plugin, a macOS/Linux/WSL2 shell installer, GitHub Release binaries, and building from source with Go 1.25 or newer.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewPty MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/raychao-oao-pty-mcp?style=directory)](https://allmcps.com/mcp/raychao-oao-pty-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/raychao-oao-pty-mcp"><img src="https://allmcps.com/api/badge/raychao-oao-pty-mcp?style=directory" alt="Pty MCP on AllMCPs" /></a>

Technical Specs & Signals

CategoryπŸ–₯️Command Line
PricingFree
More technical detailsExpand β–Ύ
TransportSTDIO
RuntimeGo
AuthNo auth required
LicenseMIT
ClientsClaude Desktop
Last updatedSep 9, 2026
4/7 checks healthy over the last 32d
Views3
Unique ViewsTotal visits recorded for this listing page on AllMCPs.
Installs0
Installs & Copy ActionsTotal times users copied install commands or configuration snippets for this server.
GitHub stars17
GitHub Star CountTotal stargazers on GitHub representing community popularity (17 stars).
Last commit3d ago
Last Repository CommitThe most recent commit or push recorded for this server's GitHub repository.Last commit on Sep 9, 2026
59Quality signal: Good Β· 59/100How this signal is calculated β–Ύ
Server availabilityNot measured

Not scored for repo-hosted servers β€” we can't reach the running server, only its GitHub page. Hosted MCP endpoints are health-checked live.

Verified ownership10/20
Documentation & tools28/30
Adoption & activity6/15
Community engagement0/10

A guidance signal from public completeness & health data β€” not a user rating. New listings start lower and rise as they add docs, get verified, and grow adoption. Signals we can't observe for a listing are skipped, not counted against it.

β˜… FeaturedMoxie Docs MCP logo

Moxie Docs MCP

MCP & Agent Skills for Automated Documentation, and codebase conventions + context

Explore Server β†’

Own this project?

This directory is pre-filled from public sources. Claim via GitHub README, site badge, or DNS TXT to unlock edit access and the Official badge β€” proof is checked automatically, then reviewed by our team.

Free dofollow backlink: add your website and place the AllMCPs badge on it β€” no claim needed. We detect it automatically and keep it verified as long as the badge stays live.

Claim & get free dofollow

Share & Embed

Add our SVG badge (dark/light directory styles) or embeddable widget to your site.

Explore more

More in πŸ–₯️ Command Line β†’Best MCP servers for Command Line & Terminal β†’Alternatives to Pty MCP β†’Install in Claude DesktopInstall in CursorInstall in VS Code