log-mcp-server
Provides tools for tailing, searching with regex, and summarizing errors from Docker containers.
Click on "Deploy 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-mcp-server tail last 100 lines of /var/log/syslog"
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-mcp-server
A log analysis MCP server — tail, search, filter, and summarize logs from local files and Docker containers.
Tools
Tool | Description |
| Tail last N lines from a log file |
| Regex search in a log file |
| Filter by level (ERROR/WARN/INFO/DEBUG) — JSON and plain text |
| Group and count errors by pattern |
| Tail last N lines from a Docker container |
| Regex search in Docker container logs |
| Summarize errors from a Docker container |
Related MCP server: Log Analyzer MCP Server
Quick Start
git clone https://github.com/sheikhBasit/log-mcp-server
cd log-mcp-server
python -m venv .venv && .venv/bin/pip install -e .
log-mcpClaude Desktop Config
{
"mcpServers": {
"logs": {
"command": "/path/to/.venv/bin/log-mcp"
}
}
}Usage Examples
tail the last 50 lines of /var/log/nginx/error.log
search for "timeout" in /app/logs/api.log
filter ERROR lines from /app/logs/app.log
summarize errors in the "backend" docker container
tail 100 lines from docker container "nexavoxa-api"Running Tests
pip install -e ".[dev]"
pytestLicense
MIT
Knowledge Graph
This repo is indexed by Understand Anything — a multi-agent pipeline that builds a knowledge graph of every file, function, class, and dependency.
The graph lives at .understand-anything/knowledge-graph.json and can be explored visually:
# In Claude Code, from this repo root:
/understand-dashboardTo rebuild the graph after major changes:
~/scripts/graphify-all.shGraph covers: files · functions · classes · imports · architecture layers · plain-English summaries · guided tours.
Available Tools
7 toolsdocker_errorsB
Summarize and group errors from a Docker container's logs.
Inputs: container (required), tail. Returns: object
docker_grepC
Search Docker container logs with a regex pattern.
Inputs: pattern (required), container (required), tail. Returns: object
docker_logsB
Tail last N lines from a Docker container's logs.
Inputs: container (required), lines. Returns: object
filter_levelC
Filter log file by level: ERROR, WARN, INFO, DEBUG. Supports JSON and plain text logs.
Inputs: path (required), level (required). Returns: object
searchB
Search a log file with a regex pattern. Returns matching lines.
Inputs: path (required), pattern (required), max_results. Returns: object
summarizeC
Summarize and group errors by pattern from a log file.
Inputs: path (required), max_errors. Returns: object
tailB
Tail last N lines from a log file.
Inputs: path (required), lines. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Each tool targets a distinct source (Docker container vs. log file) and operation (tail, search, filter, summarize). Even within groups, actions are clearly differentiated. No two tools appear to do the same thing.
Docker tools follow a 'docker_<noun>' pattern, while file tools use bare verbs (search, tail) or verb_noun (filter_level). This inconsistency disrupts a predictable naming convention.
Seven tools is appropriate for log management: covering tail, search, filter, and summary for both Docker and file logs. Not too many to overwhelm, not too few to be insufficient.
Covers essential log operations like tailing, searching, filtering, and error grouping. Minor gaps exist, such as live tailing or listing available log files, but the core workflow is well-supported.
Related MCP Connectors
Syslog receiver and MCP server for homelab log intelligence.
Syslog receiver and MCP server for homelab log intelligence.
Analytics and debugging for your MCP server — explore usage and sessions, then root-cause errors.
An MCP server that provides read access to your cloud storage providers, bank accounts and more.
Related MCP Servers
- AlicenseBqualityDmaintenanceAn MCP server for managing and monitoring Docker, Docker Compose, and Kubernetes environments alongside Azure Application Insights. It enables advanced log filtering, container lifecycle management, and querying of cloud application traces and metrics.7MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server for intelligent log analysis providing semantic search, error pattern clustering, and smart error detection. It enables users to process, vectorize, and query local logs to efficiently identify issues and generate AI-powered summaries.MIT
- AlicenseAqualityDmaintenanceMCP server for log file analysis. Gives LLMs the ability to efficiently analyze large log files without loading them into context.7101MIT
- FlicenseNot gradedqualityDmaintenanceMCP server to start, monitor, search, and detect errors in logs from any project, even those without log files.-