Log Intelligence MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| ELASTIC_URL | No | Elasticsearch endpoint URL that credentials may be sent to for live queries. | |
| ELASTIC_API_KEY | No | API key used to authenticate live Elasticsearch queries. | |
| ELASTIC_PASSWORD | No | Password for basic authentication to live Elasticsearch queries. | |
| ELASTIC_USERNAME | No | Username for basic authentication to live Elasticsearch queries. | |
| LOG_INTELLIGENCE_CONFIG | No | Path to the log-intelligence.config.json configuration file. Defaults to ./log-intelligence.config.json. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Log analysis server. Start with ingest_logs (or list_sources if sources were pre-configured), then summarise_errors for the big picture, get_error_timeline with detectAnomalies for spikes, regression_after_date to evaluate a deployment, and get_log_context / search_logs to drill into specific events.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| logging | {} |
| prompts | {
"listChanged": true
} |
| resources | {
"listChanged": true
} |
| completions | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| ingest_logsA | Ingest log entries from a data source (Serilog CLEF/JSON, Elasticsearch dump or live endpoint, SQLite database, or flat text file). Re-ingesting a source with the same name replaces its previous entries unless mode is "append". |
| list_sourcesA | List all ingested log sources with entry counts, error counts and time ranges. |
| clear_logsA | Remove ingested log entries from memory: a single source by name, or everything when no source is given. |
| summarise_errorsA | Cluster error- and fatal-level entries by normalised message and list the top patterns with counts, time spans, sources and sample messages. |
| detect_new_error_patternA | Find error patterns present in a comparison window that never occurred in a baseline window. Useful for spotting novel failures after a change. |
| group_by_propertyA | Count log entries by the value of a structured property (e.g. Application, StatusCode, user.id). Use level, source or fingerprint as pseudo-properties. Defaults to error/fatal entries only. |
| regression_after_dateA | Compare error patterns before and after a deployment date. Reports new errors, errors whose hourly rate increased, and errors that disappeared. |
| search_logsA | Search message and exception text across all ingested entries. Case-insensitive substring match by default, or a regular expression. |
| get_log_contextA | Show the log entries immediately before and after a point in time, across all levels. Use it to see what led up to an error and what happened next. |
| get_error_timelineB | Error frequency bucketed over time as an ASCII chart, optionally with z-score spike detection. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| analyse-logs | Guided workflow to ingest logs, summarise errors, identify anomalies, and highlight patterns |
| investigate-error | Deep dive into a specific error pattern: search, timeline, context, and root cause analysis |
| review-deployment | Check whether a deployment introduced regressions by comparing errors before and after it |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| log-sources | All ingested log sources with entry counts, error counts and time ranges |
| log-summary | Current log store stats: total entries, error count, unique error patterns, time range |
TDQS
Scored across 10 tools
Most tools have clearly distinct purposes (ingest vs search vs context vs timeline vs grouping). The main overlap is between detect_new_error_pattern and regression_after_date, which both compare error patterns across two time windows and could easily be confused. The rest are distinguishable from descriptions.
Nine of ten tools follow a verb_noun snake_case pattern (ingest_logs, list_sources, summarise_errors, etc.). The outlier is regression_after_date, which starts with a noun rather than a verb, slightly breaking the consistent verb-first convention.
Ten tools is a well-scoped size for a log intelligence server, covering ingestion, source management, search, context, and several error-analysis angles without bloat. Each tool appears to earn its place.
The surface covers ingestion, listing, clearing, searching, context retrieval, and multiple error-analysis workflows, which is strong lifecycle coverage. Minor gaps exist, such as no explicit scoped search by source/time or export/raw-entry pagination, but core log intelligence workflows are well supported.