Pexpect
Provides remote process control and debugging capabilities through Python's pexpect library, enabling spawning, interaction with,
This MCP server provides remote process control and debugging capabilities through Python's pexpect library, enabling AI assistants to spawn, interact with, and control command-line programs, debuggers, and interactive shells. Built by Mitsuhiko using FastMCP with timeout handling and session persistence, it executes Python code that can launch processes like lldb, gdb, or any terminal application, then send commands and capture output through expect patterns. The implementation maintains global session state across tool calls and includes a demo buggy C program for testing debugging workflows, making it valuable for automated debugging sessions, system administration tasks, and scenarios where AI assistants need to interact with command-line tools that require real-time input/output control.
Source
Repository: https://github.com/mitsuhiko/pexpect-mcp
Maintain Pexpect?
Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.
[Pexpect on getagentictools](https://getagentictools.com/mcp/mitsuhiko-pexpect-mcp?ref=badge)