Skip to main content
Glama

Niobe

Runtime intelligence for AI agents — local-first runtime observation via MCP.

Niobe answers: "What is the system doing right now, and did my change make it worse?"

Take snapshot A → deploy → snapshot B → diff. That's it.

Install

pip install niobe

Related MCP server: Nibble

Quick Start

# Register a service
niobe register myapp --port 8080 --log /var/log/myapp.log

# Take a snapshot (captures metrics + ingests logs)
niobe snapshot myapp

# Make a change, then snapshot again
niobe snapshot myapp

# Compare before/after
niobe compare <snapshot-id-1> <snapshot-id-2>

# Search logs
niobe logs --query "connection refused"

# View recent errors
niobe errors --service myapp --since 10

CLI Reference

Command

Description

niobe register <name> [--pid N] [--port N] [--log PATH...]

Register a service for observation

niobe unregister <name>

Remove a service

niobe services

List registered services

niobe snapshot [service]

Take health snapshot (one or all)

niobe compare <id_a> <id_b>

Diff two snapshots

niobe logs [--query Q] [--service S] [--level L]

Search log entries

niobe errors [--service S] [--since N]

Recent errors

niobe ingest <service> [--follow]

Ingest log files

MCP Tools

Niobe exposes 5 tools via Model Context Protocol:

Tool

Description

niobe_register

Register a service for observation

niobe_snapshot

Take health snapshot (one or all services)

niobe_compare

Compare two snapshots (before/after diff)

niobe_errors

Get recent errors from logs

niobe_logs

Full-text search across ingested logs

Claude Code Integration

Add to ~/.claude/.mcp.json:

{
  "mcpServers": {
    "niobe": {
      "command": "niobe-mcp",
      "args": []
    }
  }
}

Then in Claude Code:

  • "Register my web server on port 3000" → niobe_register

  • "How's my app doing?" → niobe_snapshot

  • "Did my last deploy break anything?" → niobe_compare

  • "Show me recent errors" → niobe_errors

  • "Search logs for timeout" → niobe_logs

Log Format Support

Niobe auto-detects log formats:

  • JSON — {"level": "error", "message": "...", "timestamp": "..."}

  • CLF — Apache/NGINX common log format (HTTP status mapped to levels)

  • Python — 2024-01-15 10:30:45,123 - myapp - ERROR - message

  • RAW — Everything else (stored as-is with level=unknown)

Configuration

Optional. Create .niobe/config.toml in your project root:

[store]
db_name = "niobe.db"

[ingestion]
tail_lines = 100
max_line_length = 8192

[snapshot]
error_window_minutes = 5
cpu_sample_interval = 0.5

[mcp]
default_error_since_minutes = 5
default_query_limit = 50

All values can be overridden with NIOBE_* environment variables.

Architecture

  • SQLite + WAL — single-file store, concurrent-read safe

  • FTS5 — full-text search across log messages with porter stemming

  • psutil — process metrics (CPU, memory, threads, connections)

  • Frozen dataclasses — immutable models, no Pydantic dependency

  • Snapshot-based — no background monitoring, entirely on-demand

Part of the EvoIntel MCP Suite

Niobe solves AI Blindness #2: Runtime Behavior — CPU, memory, error rates, and log patterns that no model can observe from code alone.

Part of the EvoIntel MCP Suite by Evolving Intelligence AI: five tools for five blindnesses no model improvement will ever fix.

Tool

Blindness

Install

Sentinel

Project History

pip install git-sentinel

Niobe

Runtime Behavior

pip install niobe

Merovingian

Cross-Service Dependencies

pip install merovingian

Seraph

Code Quality

pip install seraph-ai

Anno

Web Content

npm install -g @evointel/anno

License

MIT

Available Tools

9 tools
niobe_anomaliesA

Get active anomalies — metrics that exceed baseline mean + 2σ.

Anomalies are detected automatically during snapshots once enough baseline samples exist (minimum 3 snapshots per service).

Args: service: Filter by service name (optional) since: Look back N minutes (default 30) limit: Max entries to return (default from config)

Inputs: limit, since, service. Returns: result

niobe_auditB

Query the local audit log of all Niobe tool invocations.

Args: tool_name: Filter by tool name (optional) since: Look back N minutes (optional) limit: Max entries to return (default from config)

Inputs: limit, since, tool_name. Returns: result

niobe_compareA

Compare two snapshots to see what changed (before/after diff).

Args: snapshot_a: Snapshot ID (or 8+ char prefix) for the "before" state snapshot_b: Snapshot ID (or 8+ char prefix) for the "after" state

Inputs: snapshot_a (required), snapshot_b (required). Returns: result

niobe_errorsB

Get recent errors from ingested logs.

Args: service: Filter by service name (optional) since: Look back N minutes (default from config) limit: Max entries to return (default from config)

Inputs: limit, since, service. Returns: result

niobe_feedbackB

Submit feedback on a snapshot or comparison result.

Helps Niobe learn which observations are useful.

Args: target_id: Snapshot ID or comparison key to give feedback on outcome: One of: accepted, rejected, modified target_type: Type of target: snapshot or comparison (default: snapshot) context: Optional explanation of why

Inputs: outcome (required), target_id (required), context, target_type. Returns: result

niobe_logsB

Full-text search across ingested log entries.

Args: query: FTS5 search query (supports AND, OR, NOT, phrase "quotes") service: Filter by service name (optional) level: Filter by log level: critical, error, warning, info, debug (optional) limit: Max entries to return (default from config)

Inputs: query (required), level, limit, service. Returns: result

niobe_registerB

Register a service for runtime observation.

Args: name: Service name (unique identifier) pid: Process ID (optional — can be resolved from port) port: Network port the service listens on (optional) log_paths: Paths to log files to monitor (optional)

Inputs: name (required), pid, port, log_paths. Returns: result

niobe_snapshotA

Take a health snapshot of one or all registered services.

Captures process metrics, ingests recent logs, and computes error rates.

Args: service: Service name (omit for all services)

Inputs: service. Returns: result

niobe_usageA

Aggregate MCP tool usage stats (per-tool calls, bytes, findings hit rate).

Answers: which MCP tools are burning context, and which ones produce actionable findings vs. return empty. Use this to measure tool ROI and decide whether to keep/disable/calibrate a tool in the loop.

Args: tool_name: Filter to a single tool (optional, default: all tools) since_minutes: Look back N minutes (default 1440 = last 24h)

Inputs: tool_name, since_minutes. Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 9 tools

    Disambiguation4/5

    Each tool targets a distinct resource or lifecycle step: register services, take snapshots, diff them, query errors/logs/anomalies, and give feedback. The main overlap is niobe_audit (raw invocation log) vs niobe_usage (aggregated ROI metrics), and niobe_errors vs niobe_logs, but the descriptions clarify the boundaries well enough.

    Naming Consistency4/5

    All tools share the niobe_ prefix and snake_case, which is highly predictable. The only minor deviation is mixing action verbs (register, snapshot, compare) with resource nouns (errors, logs, anomalies, audit, usage), but that's a natural and readable split.

    Tool Count5/5

    Nine tools is well-scoped for a runtime observability server, with each tool covering a distinct capability (registration, snapshotting, comparison, log/error/anomaly querying, feedback, and self-measurement). No redundant or clearly superfluous tools.

    Completeness3/5

    The observation lifecycle is well covered, but there's no unregister/remove-service tool and no explicit list-services or get-snapshot-by-ID tool (compare is the only way to retrieve a stored snapshot). These are notable gaps that could force agents to work around missing operations.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI agents to investigate production incidents by exposing service health, logs, and deployment data through MCP tools.
      ISC
    • A
      license
      A
      quality
      D
      maintenance
      Provides read-only access to host system metrics (CPU, memory, disk), Docker container health/logs, and sandboxed log file analysis via MCP tools, enabling AI agents to monitor enterprise infrastructure safely.
      3
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables coding agents to access live runtime observability data such as logs, deploys, and health metrics for evidence-based incident triage.
      1
      MIT