1. Conduid
  2. Files
  3. Forensic Log MCP
MCP server · Files

Forensic Log MCP

High-performance MCP server for log analysis. Give Claude the ability to analyze massive log files with SIMD-accelerated parsing. 5-50x faster than awk for aggregations.

34Low

Scored 6 months ago · breakdown

About Forensic Log MCP

Forensic Log MCP is an MCP server in the Files category: high-performance MCP server for log analysis. Give Claude the ability to analyze massive log files with SIMD-accelerated parsing. 5-50x faster than awk for aggregations.

Install

From source
git clone https://github.com/TLinvest/forensic-log-mcp

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Tools (5)

aggregate_logsPerform statistical aggregations (count, sum, avg, min, max)

Parameters not published.

analyze_logsFilter, group, and sort log data

Parameters not published.

get_log_schemaDiscover columns and sample data from a log file

Parameters not published.

search_patternSearch for regex patterns

Parameters not published.

time_analysisAnalyze logs over time with bucketing

Parameters not published.

Ask AI

✦

Ask AI about Forensic Log MCP

Powered by Claude · Grounded in docs

I know everything about Forensic Log MCP. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ✓README presentThe repository ships documentation.

5 checks have not been run yet.

README

Forensic Log MCP Server

A high-performance Model Context Protocol (MCP) server for log analysis, powered by Polars and custom SIMD-accelerated parsers.

Give Claude the ability to analyze massive log files (gigabytes of data) that would never fit in its context window.

Rust

Features

  • Fast Aggregations: 5-50x faster than awk on GROUP BY operations
  • SIMD-Accelerated: Custom parsers using memchr for structured queries
  • Multi-Format: Apache, Nginx, Syslog, JSON Lines, CSV/TSV
  • Streaming: Handles files larger than RAM via lazy evaluation
  • AI-Native: Designed for Claude integration via MCP protocol

Performance

MCP excels at aggregation queries on large files (1M lines, 125MB Apache log):

Operation awk MCP Speedup
Group by IP 0.26s 0.048s 5x faster
Group by method 1.31s 0.047s 28x faster
Group by user_agent 2.40s 0.049s 50x faster
Group by referer 1.14s 0.046s 25x faster
Sum size 0.37s 0.047s 8x faster
JSON group by (vs jq) 1.65s 0.16s 11x faster

Honest Assessment:

  • MCP dominates GROUP BY/aggregation queries (5-50x faster)
  • grep is ~24x faster for simple line counting (grep -c)
  • MCP has ~57ms Python/MCP overhead, negligible on large files

See benchmark/BENCHMARK.md for detailed methodology and honest comparison.

Quick Start

Installation

# Clone the repository
git clone https://github.com/TLinvest/forensic-log-mcp.git
cd forensic-log-mcp

# Build the MCP server
cd mcp
cargo build --release

The binary will be at mcp/target/release/forensic-log-mcp.

Configuration

Add to your Claude Code project's .mcp.json:

{
  "mcpServers": {
    "forensic-logs": {
      "type": "stdio",
      "command": "/path/to/forensic-log-mcp",
      "args": []
    }
  }
}

Or add globally to ~/.claude.json.

Usage Examples

Once configured, Claude can analyze your logs directly:

"Find all 500 errors in my nginx access log"
→ Uses analyze_logs with filter_status="500"

"Count requests by IP address"
→ Uses aggregate_logs with group_by="ip"

"Search for timeout errors in the last hour"
→ Uses search_pattern with regex matching

"Show me the error rate by hour"
→ Uses time_analysis with bucket="hour"

Available Tools

Tool Description
get_log_schema Discover columns and sample data from a log file
analyze_logs Filter, group, and sort log data
aggregate_logs Perform statistical aggregations (count, sum, avg, min, max)
search_pattern Search for regex patterns
time_analysis Analyze logs over time with bucketing

Supported Formats

Format Auto-Detected SIMD Fast Path
Apache/Nginx Combined Yes Yes
Syslog (RFC 3164/5424) Yes Yes
JSON Lines (NDJSON) Yes Polars-native
CSV/TSV Yes Polars-native

Project Structure

forensic-log-mcp/
├── mcp/                    # MCP server source code
│   ├── src/
│   │   ├── main.rs        # Entry point
│   │   ├── tools/         # MCP tool implementations
│   │   ├── parsers/       # Log format parsers
│   │   │   ├── apache_simd.rs   # SIMD Apache parser
│   │   │   ├── syslog_simd.rs   # SIMD Syslog parser
│   │   │   └── ...
│   │   └── engine/        # Query engine
│   ├── Cargo.toml
│   └── README.md          # Detailed MCP documentation
├── benchmark/             # Performance benchmarks
│   ├── BENCHMARK.md       # Detailed results
│   ├── run_benchmark.sh   # Benchmark runner
│   └── scripts/           # Benchmark utilities
├── LICENSE
├── CONTRIBUTING.md
└── README.md              # This file

How It's So Fast

  1. SIMD-Accelerated Parsing: Uses memchr for vectorized field detection
  2. Zero-Copy Processing: Works directly with memory-mapped byte slices
  3. Parallel Chunk Processing: Splits files into 4MB chunks processed via rayon
  4. Lazy Field Extraction: Only parses fields needed for the query
  5. Predicate Pushdown: Filters during scan, not after loading

Requirements

  • Rust 1.75+ (for building)
  • Claude Code or any MCP-compatible client

Contributing

See CONTRIBUTING.md for guidelines.

License

MIT License - see LICENSE for details.

Acknowledgments

  • Polars - Fast DataFrame library
  • rmcp - Rust MCP SDK
  • memchr - SIMD byte searching

README copy captured when this server was indexed; it may lag the repository. The original is authoritative.

Questions

About Forensic Log MCP

How do I install Forensic Log MCP?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Forensic Log MCP safe to use with an AI agent?

Its trust score is 34 out of 100 (low). It passes 1 of the 1 static security checks run so far. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Forensic Log MCP still maintained?

Conduid hasn't recorded a commit date for this repository yet. Check the repository directly for recent activity.