Skip to main content
Glama
metrics-dashboard-mcp

metrics-dashboard-mcp

by syamai
README.md
# @frontpoint/metrics-dashboard-mcp

MCP (Model Context Protocol) server for generating Grafana dashboards and Prometheus alerting rules.

## Features

- **Dashboard Generation**: Create Grafana dashboard JSON files from templates
- **Alert Rules**: Generate Prometheus alerting rules YAML
- **Multiple Templates**: Node.js, HTTP API, Database, Redis, Kubernetes, Docker, System
- **Ready to Import**: Generated files can be directly imported into Grafana/Prometheus

## Installation

```bash
npm install -g @frontpoint/metrics-dashboard-mcp
```

Or with npx:
```bash
npx @frontpoint/metrics-dashboard-mcp [project-path]
```

## Usage with Claude Code / MCP

Add to your MCP configuration:

```json
{
  "mcpServers": {
    "metrics-dashboard": {
      "command": "npx",
      "args": ["@frontpoint/metrics-dashboard-mcp", "/path/to/project"]
    }
  }
}
```

## Available Tools

| Tool | Description |
|------|-------------|
| `metrics-init` | Initialize Metrics Dashboard configuration |
| `metrics-status` | Show current configuration status |
| `metrics-generate-dashboard` | Generate Grafana dashboard JSON |
| `metrics-generate-alerts` | Generate Prometheus alerting rules |

## Dashboard Templates

- **nodejs**: Node.js application metrics (CPU, memory, event loop, heap)
- **http-api**: HTTP API metrics (request rate, latency, errors)
- **database**: Database metrics (queries, connections, errors)
- **redis**: Redis metrics (commands, memory, hit rate)
- **kubernetes**: Kubernetes cluster metrics (pods, nodes, resources)
- **docker**: Docker container metrics (CPU, memory, network)
- **system**: System metrics (CPU, memory, disk)

## Example

```bash
# Initialize
metrics-init

# Generate Node.js dashboard
metrics-generate-dashboard --template nodejs --title "My App Dashboard"

# Generate HTTP API alerts
metrics-generate-alerts --template http-api --name "API Alerts"
```

## Generated Files

- Dashboards: `.metrics-mcp/dashboards/*.json`
- Alerts: `.metrics-mcp/alerts/*.yml`

Import dashboards via Grafana UI or API. Add alert rules to Prometheus configuration.

## License

MIT

TDQS

A3.5/5.0

Scored across 4 tools

Disambiguation5/5

Each tool has a clearly distinct purpose: initialization, status inspection, dashboard generation, and alert rule generation. There is no meaningful overlap between generating Grafana dashboards and Prometheus alerts, and init/status are easily distinguished.

Naming Consistency4/5

All tool names consistently use kebab-case with the metrics- prefix. However, the action pattern is slightly mixed: metrics-init and metrics-status use simple actions/nouns, while metrics-generate-dashboard and metrics-generate-alerts use verb-noun phrasing.

Tool Count5/5

Four tools is well-scoped for a metrics dashboard bootstrap/generation server. Each tool earns its place without redundant operations or excessive surface area.

Completeness4/5

The surface covers initialization, status inspection, and generation of the two main artifacts: Grafana dashboards and Prometheus alert rules. Minor gaps remain around validation, reset/cleanup, or updating existing generated files, but core workflows are covered.

Maintenance

ActivityInactive
ResponsivenessSyncing