log-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., "@log-reader-mcprun 'npm start' and capture the logs"
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.
log-reader-mcp
MCP server for Claude Code — lets Claude start, monitor, search, and detect errors in logs from any project, even ones that don't write log files.
Requirements: Python 3.8+, Claude Code
Install (one-line, any machine)
SSH (if you have GitHub SSH keys set up):
git clone git@github.com:ankit-jhajhria/log-reader-mcp.git ~/.claude/mcp-servers/log-reader && bash ~/.claude/mcp-servers/log-reader/setup.shHTTPS (works without SSH keys):
git clone https://github.com/ankit-jhajhria/log-reader-mcp.git ~/.claude/mcp-servers/log-reader && bash ~/.claude/mcp-servers/log-reader/setup.shRestart Claude Code after install.
Ubuntu/Debian users: If setup fails with a
venverror, runsudo apt install python3-venvfirst — the script will tell you this too.
Related MCP server: Log Analyzer MCP Server
How to use in a new session
Project with no log files (Node, Go, Rust, plain Python, etc.)
Open Claude Code in your project and say:
run "node server.js" and capture the logsClaude starts the server in the background, captures all terminal output, and tails the log immediately. Always set the working directory so the command runs from the right folder:
run "npm start" in /home/user/my-node-project and capture the logsTo check for problems:
detect errors in the captured logTo restart after a code change:
restart the serverTo stop it:
stop the serverProject that already writes log files (Django, Rails, etc.)
tail logs/debug.logdetect errors in logs/debug.logsearch logs/debug.log for "Traceback" with 3 lines of contextshow me new lines in logs/debug.log since line 400Don't know where the logs are
list log files in the logs folderFiles modified in the last 60 seconds are marked [active] so you can spot the right one instantly.
All tools
Process management
Tool | What it does |
| Start any server in background, capture all output to a file |
| Show all running/stopped captured processes |
| Stop a process |
| Stop and restart with the same command and working directory |
Log reading
Tool | What it does |
| Auto-scan for ERROR, Exception, Traceback, WARNING, CRITICAL, fatal |
| Last N lines of any log file |
| New lines since line N — use to poll a running server |
| Regex/string search with optional surrounding context lines |
| List log files with sizes and active status |
| Size, modified time, line count |
Troubleshooting
python3-venv error on Ubuntu/Debian:
sudo apt install python3-venvPermission denied reading a log file:
Some system logs (e.g. /var/log/syslog) require elevated permissions. Run Claude Code with sudo or copy the log to a readable location.
Process exits immediately after run_and_capture:
The tool detects this and shows you the output. Common causes: wrong command, port already in use, missing dependencies. Fix the command and try again.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
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/ankit-jhajhria/log-reader-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server