Back to Home
mackerelio-labs icon

mcp-server

Verified Safe

by mackerelio-labs

Overview

A Model Context Protocol (MCP) server that provides an interface for AI assistants to interact with the Mackerel monitoring and APM platform, enabling retrieval and management of alerts, hosts, services, dashboards, monitors, metrics, and distributed traces.

Installation

Run Command
npx -y @mackerel/mcp-server

Environment Variables

  • MACKEREL_APIKEY

Security Notes

The server demonstrates good security practices by loading the Mackerel API key from environment variables (`MACKEREL_APIKEY`), ensuring that sensitive credentials are not hardcoded. Extensive input validation using Zod is implemented for all tool arguments, significantly reducing the risk of injection vulnerabilities. Error handling in `buildToolResponse` provides helpful, context-specific messages for 404 errors (e.g., 'Host Not Found') without exposing excessive raw API details. A simple in-memory cache is used for GET requests, which is generally safe and improves efficiency, but it assumes that the API key remains valid for cached data. No `eval` or obfuscation was found, and dependencies are from trusted sources.

Similar Servers

Stats

Interest Score34
Security Score9
Cost ClassMedium
Avg Tokens3000
Stars4
Forks0
Last Update2025-12-15

Tags

MonitoringAPMObservabilityMackerelDevOps