terminal-reader-mcp
An MCP server that gives Claude Desktop read-only access to your terminal output. No more copy-pasting errors — just ask Claude to check your terminal.
Quickstart
1. Clone and install
2. Add the cap function to your shell
The MCP server can only read files — it can't see your terminal directly. The cap function wraps your commands and saves their output to a log file that Claude can read.
Open your shell config:
Paste this at the bottom:
Save, then reload:
3. Configure Claude Desktop
Open the config:
Add the terminal-reader server:
Replace /FULL/PATH/TO/ with where you cloned the repo.
4. Restart Claude Desktop
Quit completely (Cmd+Q) and reopen.
5. Test it
Ask Claude: "what was my last terminal command?"
Usage
Prefix commands with cap when you want Claude to see them:
Commands without cap are not captured.