Exposes five log analysis tools to Claude via MCP: parse_logs handles JSON, Apache/Nginx, syslog, and custom regex patterns with named capture groups. filter_logs lets you query by level, date range, keywords, or regex. analyze_logs surfaces the top 10 normalized errors, hourly error rates, request volume, slow endpoints, and anomaly detection using standard deviation. format_logs converts between JSON, plain text, CSV, and colorized table output. log_stats computes distributions, unique IPs, user agents, status codes, and throughput. Reach for this when you need Claude to investigate application logs, identify patterns in access logs, or generate operational reports without writing throwaway scripts.
Log analysis and processing tools for AI agents, exposed via the Model Context Protocol (MCP).
Parse log content in common formats: JSON logs, Apache/Nginx access logs, syslog, and structured logs. Supports custom regex patterns with named capture groups. Extracts timestamp, level, message, source, and additional structured fields.
Filter parsed log entries by:
Returns matched entries along with level occurrence counts.
Analyze log patterns to surface operational insights:
Convert between log formats and produce reports:
Compute comprehensive log statistics:
npm install
npm run build
Add to your claude_desktop_config.json:
{
"mcpServers": {
"log-tools": {
"command": "node",
"args": ["path/to/mcp-log-tools/dist/index.js"]
}
}
}
| Format | Example |
|---|---|
| JSON | {"timestamp":"2024-01-15T10:30:00Z","level":"ERROR","message":"Connection failed"} |
| Apache/Nginx | 127.0.0.1 - frank [10/Oct/2000:13:55:36 -0700] "GET /index.html HTTP/1.1" 200 2326 |
| Syslog | Jan 1 00:00:00 hostname process[1234]: Something happened |
| Structured | 2024-01-15T10:30:00.000Z [ERROR] [ModuleName] Something failed |
| Custom | Any format using a regex with named capture groups |
MIT
io.github.infoinlet-marketplace/mcp-observability
betterdb-inc/monitor
com.mcparmory/datadog
thotischner/observability-mcp
io.github.tantiope/datadog-mcp
io.github.us-all/datadog