npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

monitor-mcp

v1.0.2

Published

MCP server for Monitor observability platform — query events, analytics, and diagnostics

Readme

monitor-mcp

MCP server for the Monitor observability platform. Gives Claude Code direct access to query events, analyze errors, trace requests, and diagnose issues across services.

Quick Start

npx monitor-mcp --setup

This prompts for your Monitor API URL and API key, writes the config to ~/.mcp.json, and you're ready to go. Restart Claude Code after setup.

Generate an API key from the Monitor web dashboard under Settings > API Keys.

Manual Setup

Add to ~/.mcp.json:

{
  "mcpServers": {
    "monitor": {
      "command": "npx",
      "args": ["-y", "monitor-mcp"],
      "env": {
        "MONITOR_API_URL": "https://api.monitor.appleby.cloud",
        "MONITOR_API_KEY": "your-api-key"
      }
    }
  }
}

Tools

Discovery

| Tool | Description | |------|-------------| | monitor_health | API health and queue stats (enqueued, dropped, pending) | | monitor_list_services | List all services sending events | | monitor_list_environments | List all environments (prod, staging, dev) | | monitor_list_event_names | List event names, optionally filtered by service | | monitor_list_levels | List log levels in use | | monitor_list_users | List user IDs that have generated events |

Event Search

| Tool | Description | |------|-------------| | monitor_search_events | Search events with Django-style filters (field__operator=value) | | monitor_trace | Get all events for a trace ID across services | | monitor_request | Get all events for a request ID |

Data Fields

| Tool | Description | |------|-------------| | monitor_get_data_keys | List custom data field keys in events | | monitor_get_data_values | List distinct values for a data field |

Analytics

| Tool | Description | |------|-------------| | monitor_count | Count events matching filters | | monitor_analytics | Aggregation query with grouping (count, sum, avg, p99, etc.) | | monitor_timeseries | Time-bucketed trend data (minute/hour/day/week/month) | | monitor_topn | Top N values by field | | monitor_compare | Period-over-period comparison with change percentage |

Quick Diagnostics

| Tool | Description | |------|-------------| | monitor_recent_errors | Most recent error and fatal events | | monitor_error_breakdown | Error frequency grouped by name, service, or endpoint | | monitor_error_trend | Error count over time (is it getting worse?) | | monitor_service_overview | Composite health summary — total events, error count, error rate, top events, top errors |

Example Prompts

  • "What errors happened in the last hour?"
  • "Show me the error trend for forta-api today"
  • "Trace request abc-123 across services"
  • "Compare error rates this week vs last week"
  • "Give me an overview of the johnnies-api service"
  • "What are the top 10 most common errors?"
  • "Find all events where data.status_code >= 500"

Filter Syntax

Event search supports Django-style filter operators:

| Operator | Example | Description | |----------|---------|-------------| | eq (default) | service=my-api | Exact match | | neq | level__neq=info | Not equal | | contains | name__contains=error | Substring match | | startswith | name__startswith=http | Prefix match | | gt, gte, lt, lte | data.status_code__gte=400 | Numeric comparison | | in | level__in=error,fatal | Match any value |

Data fields use the data. prefix: data.endpoint__contains=/api, data.status_code__gte=500.

Environment Variables

| Variable | Required | Description | |----------|----------|-------------| | MONITOR_API_URL | Yes | Monitor API base URL | | MONITOR_API_KEY | Yes | API key for authentication (via X-Api-Key header) |

License

MIT