Terminal Reader MCP
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Terminal Reader MCPcheck my last terminal command for errors"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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
git clone https://github.com/chrisvin-jabamani/terminal-reader-mcp.git
cd terminal-reader-mcp
npm install2. 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:
open ~/.zshrcPaste this at the bottom:
# Capture terminal output for Claude
cap() {
local log_file="$HOME/.terminal_history.log"
local exit_code
echo "---CMD---" >> "$log_file"
echo "$ $*" >> "$log_file"
echo "---OUTPUT---" >> "$log_file"
"$@" 2>&1 | tee -a "$log_file"
exit_code=${pipestatus[1]}
echo "" >> "$log_file"
echo "---EXIT:$exit_code---" >> "$log_file"
echo "---END---" >> "$log_file"
return $exit_code
}Save, then reload:
source ~/.zshrc3. Configure Claude Desktop
Open the config:
open ~/Library/Application\ Support/Claude/claude_desktop_config.jsonAdd the terminal-reader server:
{
"mcpServers": {
"terminal-reader": {
"command": "node",
"args": ["/FULL/PATH/TO/terminal-reader-mcp/index.js"]
}
}
}Replace /FULL/PATH/TO/ with where you cloned the repo.
4. Restart Claude Desktop
Quit completely (Cmd+Q) and reopen.
5. Test it
cap echo "hello from terminal"Ask Claude: "what was my last terminal command?"
Related MCP server: Tmux MCP Server
Usage
Prefix commands with cap when you want Claude to see them:
cap npm run dev
cap python script.py
cap cargo buildCommands without cap are not captured.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityAmaintenanceAllows Claude desktop app to execute terminal commands and edit files on your computer through MCP, with features including command execution, process management, and diff-based file editing.2638,6269,335MIT
- AlicenseAqualityFmaintenanceEnables Claude Desktop to interact with and view tmux session content, allowing AI assistants to read from, control, and observe terminal sessions.13569297MIT
- Alicense-qualityDmaintenanceMonitors development commands and exposes terminal output to Claude in real-time, allowing AI assistants to see errors, logs, and stack traces without copy-pasting.63MIT
- Alicense-qualityCmaintenanceA VSCode and Cursor extension that captures real-time terminal output and exposes it to AI assistants via the Model Context Protocol. It enables agents to proactively monitor logs, command execution, and errors without requiring manual copy-pasting from the user.3MIT
Related MCP Connectors
Persistent context for Claude. Your AI always knows your projects and next actions across sessions.
Let ChatGPT, Claude & Cursor use your Mac: email, calendar, iMessage, Teams, files. Local, free.
Read and write your Fresh Jots notes from Claude, Cursor, and any MCP client.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/chrisvin-jabamani/terminal-reader-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server