log-analyzer-mcp — Claude Code MCP server: use and install
This MCP server reads log files, finds failures, and links related events. Use it when debugging requires more context than pasted log fragments provide.
claude mcp add log-analyzer-mcp -- uvx codesdevs-log-analyzerWhat log-analyzer-mcp does
log-analyzer-mcp identifies a log format, extracts failures, and groups similar entries. Its tools support pattern and regex searches, nearby lines, time-based filtering, plain-language questions, and checks for personal data, credentials, and secrets. It can also compare several files to connect events from distributed systems.
Supported inputs include Syslog, Apache/Nginx, JSON Lines, Docker, Python, Java/Log4j, Kubernetes, and lines with recognizable timestamps. The server includes tools for parsing, searching, error extraction, summaries, event correlation, and watching for new entries. Streaming keeps 1GB+ files from being loaded in full. The setup uses uvx, so that command needs to be available before the server can start.
What it helps with
- find failures in a log file
- group repeated error messages
- connect events across several logs
- scan logs for leaked credentials
Example prompts for the agent
- Analyze
/var/log/app.logand explain what is causing the errors. - Search
app.logfortimeoutand include nearby context lines. - Check
/var/log/app.logfor credentials that were logged by mistake.
How to install log-analyzer-mcp
Platform CLI
claude mcp add log-analyzer-mcp -- uvx codesdevs-log-analyzeruvx runs the command named after the package; if the README names another one, use uvx --from codesdevs-log-analyzer <command>
Platform CLI
codex mcp add log-analyzer-mcp -- uvx codesdevs-log-analyzeruvx runs the command named after the package; if the README names another one, use uvx --from codesdevs-log-analyzer <command>
Config file
{
"mcpServers": {
"log-analyzer-mcp": {
"command": "uvx",
"args": [
"codesdevs-log-analyzer"
]
}
}
}uvx runs the command named after the package; if the README names another one, use uvx --from codesdevs-log-analyzer <command>
Config file
{
"servers": {
"log-analyzer-mcp": {
"type": "stdio",
"command": "uvx",
"args": [
"codesdevs-log-analyzer"
]
}
}
}uvx runs the command named after the package; if the README names another one, use uvx --from codesdevs-log-analyzer <command>
Platform CLI
gemini mcp add log-analyzer-mcp uvx codesdevs-log-analyzeruvx runs the command named after the package; if the README names another one, use uvx --from codesdevs-log-analyzer <command>
Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about log-analyzer-mcp
How do I install log-analyzer-mcp in Claude Code?
Run claude mcp add log-analyzer-mcp -- uvx codesdevs-log-analyzer. This adds the MCP server to Claude Code.
What does log-analyzer-mcp do?
It parses several log formats, searches entries, extracts and groups failures, relates events, creates debugging summaries, and detects sensitive data.
Which log formats does log-analyzer-mcp support?
It handles Syslog, Apache/Nginx, JSON Lines, Docker, Python, Java/Log4j, and Kubernetes, plus lines with recognizable timestamps.