pty-mcp server
io.github.raychao-oao/pty-mcp·v0.2.3·16 starsInteractive PTY sessions over MCP: local shells, SSH, serial ports, and persistent remote sessions.
16 stars
Reviews
Write oneNobody has reviewed pty-mcp yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
pty-mcp tools
No tool declarations could be read from the package source. They show once the server is installed.
Public scan report
scanner v0.1.10 · 2026-09-27 · same rubric, same numbers if you re-run it
- –Code scanpackage could not be scannedn/a
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitylocal package, no credentials required12/15
- Maintenancelast push 19 days ago15/15
- Maintainer identityregistry namespace matches repository owner6/10
How pty-mcp compares
Against every graded MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 83/100
- higher than 65% of 48,255 servers
- GitHub stars
- 16
- more than 90% of 28,688 servers
Install pty-mcp in Claude Code, Cursor or VS Code
The registry entry has no remote endpoint or installable package.
What the publisher says
From the pty-mcp repository's README, as published. We do not edit it. Read it on GitHub
pty-mcp
An MCP (Model Context Protocol) server that gives AI agents interactive terminal sessions — local shells, SSH, serial ports, and persistent remote sessions that survive disconnects.
Built for sysadmins and network engineers who want AI to help with real server and device management, not just code generation.
Why
AI agents run commands in non-interactive shells. They can't:
- SSH into a server and interact with running processes
- Connect to routers or switches via serial console
- Monitor logs and react when a specific event occurs
- Keep session state across multiple commands
- Wait for a server to reboot and detect when it's back up
pty-mcp solves all of these by providing real PTY sessions over MCP.
Without pty-mcp, AI agents resort to sleep 30 && checkstatus loops — burning CPU cycles and API calls waiting for things to happen. With waitfor, the agent blocks server-side until the event occurs. Less polling, less energy, better for polar bears. 🐻❄️
Use Cases
Server administration
# Reboot a server and wait until it's back online
create_local_session("ping myserver")
read_output(wait_for: "bytes from", timeout: 300)
→ blocks until server responds after reboot (~80s, one tool call)Network device management
# Connect to a router via serial console
create_serial_session(port: "/dev/ttyUSB0", baud: 9600)
send_input("show interfaces status")
read_output(wait_for: "\\$")Log monitoring and alerting
# Watch logs and act when something happens
create_ssh_session(host: "prod", user: "admin")
send_input("tail -f /var/log/app.log")
read_output(wait_for: "ERROR|CRITICAL", timeout: 3600)
→ returns the error line + context when it appearsLong-running tasks that survive disconnects
create_ssh_session(host: "server", user: "admin", persistent: true)
send_input("apt upgrade -y")
detach_session() → close Claude Code, task continues
# Reconnect later to check resultFeatures
Architecture
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
pty-mcp: common questions
- Is pty-mcp server safe?
- Mostly: it is graded B (83/100). Read the pty-mcp safety report
- Does pty-mcp need an API key?
- Not as far as the registry entry and our scan can tell: no credentials are declared or required.
- Is pty-mcp maintained?
- The last commit was 56 days ago (2026-09-09). The latest release is v0.2.3.
- What can I use instead of pty-mcp?
- Servers from other publishers that do the same job: Deja Vu MCP server and Computer MCP server.
- How does pty-mcp compare with other MCP servers?
- safety score 83/100 (higher than 65% of 48,255 servers); github stars 16 (more than 90% of 28,688 servers). Full comparison.
Alternatives to pty-mcp
Same job from other publishers: the closest match first, then the best rated.