A PTY runner for MCP
Pty MCP server is a locally run integration for AI assistants that speak the Model Context Protocol. A PTY runner for MCP.
pty-mcp provides terminal session tools over MCP so clients can spawn commands in a pseudo-terminal, read interactive output, send input, resize terminal windows, and manage process lifecycle safely.
Once Pty is connected, these are the calls the assistant has available:
pty_spawn — pty_resumepty_recover — pty_attachpty_detach — pty_handoffpty_takeover — pty_readpty_read_stdout — pty_read_stderrpty_read_at — pty_read_untilpty_read_until_any — pty_read_quiescentpty_prompt — confirm_dangerous_commandpty_write — pty_resizepty_close — pty_statuspty_wait — pty_listconfirm_dangerous_command — The confirm_dangerous_command tool exposed by this servertmux 3.x when using backend="tmux"pty-mcp on PyPI is all you need. Most clients run it directly, so configuration is a few lines and a restart.
Among the developer tooling options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. Pty's toolset — pty_spawn, pty_recover, pty_detach and 11 more — is a fair guide to whether it matches your workflow. It is maintained by wawe; worth a glance at recent repository activity before you build anything load-bearing on it.
SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.
| Tool | What it does |
|---|---|
| pty_spawn | pty_resume |
| pty_recover | pty_attach |
| pty_detach | pty_handoff |
| pty_takeover | pty_read |
| pty_read_stdout | pty_read_stderr |
| pty_read_at | pty_read_until |
| pty_read_until_any | pty_read_quiescent |
| pty_prompt | confirm_dangerous_command |
| pty_write | pty_resize |
| pty_close | pty_status |
| pty_wait | pty_list |
| confirm_dangerous_command | The confirm_dangerous_command tool exposed by this server. |
| pty_resume | The pty_resume tool exposed by this server. |
| pty_read_quiescent | The pty_read_quiescent tool exposed by this server. |
{
"mcpServers": {
"pty": {
"command": "uvx",
"args": ["pty-mcp"]
}
}
}Add to claude_desktop_config.json, then restart Claude Desktop.
tmux 3.x when using backend="tmux"Kill hallucinated APIs — version-accurate, up-to-date library documentation injected straight into context.
Microsoft's official browser automation server — drive a real browser through the accessibility tree, no screenshots needed.
GitHub's official server — repos, issues, pull requests, Actions and code security, straight from your assistant.
Issue tracking at the speed of conversation — Linear's official hosted server with OAuth and zero install.
Local repository surgery — status, diffs, commits, branches and history for any repo on disk.
Timezone sanity for AI — current time anywhere and correct conversions, without the model doing date math.