/newrelic:newrelic-mcpfrom newrelic
Queries, debugs, and monitors New Relic observability data including logs, metrics, traces, APM, alerts, incidents, dashboards, and infrastructure via MCP tools and NRQL.
Ships in newrelic. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Note: The New Relic MCP server is currently in preview.
Before starting, let the user know and point them to the setup docs if they haven't connected yet.
Server URL: https://mcp.newrelic.com/mcp/
Auth: OAuth (User API Key — not Ingest key)
Account ID: Required for most calls — ask the user if not provided.
{
"mcpServers": {
"newrelic-mcp-server": {
"url": "https://mcp.newrelic.com/mcp/",
"oauth": {
"authorizationUrl": "https://login.newrelic.com/oauth2/authorize",
"tokenUrl": "https://login.newrelic.com/oauth2/token",
"scopes": ["openid", "profile", "mcp:access"],
"usePKCE": true
}
}
}
}
| Tool | What it does |
|---|---|
get_entity | Find entity by GUID or name pattern |
list_related_entities | Entities 1 hop away from a given GUID |
search_entity_with_tag | Find entities by tag key/value |
list_entity_types | Full catalog of entity domain/types |
list_available_new_relic_accounts | All accessible account IDs |
list_dashboards | All dashboards for an account |
get_dashboard | Details for a specific dashboard |
convert_time_period_to_epoch_ms | Convert relative time → epoch ms |
| Tool | What it does |
|---|---|
execute_nrql_query | Run any NRQL query against NRDB |
natural_language_to_nrql_query | Convert plain English → NRQL, execute, return results |
| Tool | What it does |
|---|---|
list_recent_issues | All currently open issues |
search_incident | Filter alert events (open/closed, priority, state) |
list_alert_policies | Alert policies, optionally filtered by name |
list_alert_conditions | Alert conditions for a specific policy |
list_synthetic_monitors | Automated synthetic availability tests |
| Tool | What it does |
|---|---|
generate_alert_insights_report | Deep analysis report for a specific issue |
generate_user_impact_report | End-user impact analysis for an issue |
analyze_deployment_impact | Performance delta before/after a deployment |
list_entity_error_groups | Error groups from Errors Inbox |
list_change_events | Deployment/config change history for an entity |
| Tool | What it does |
|---|---|
analyze_golden_metrics | Throughput, latency, error rate, saturation |
analyze_transactions | Slow and error-prone transaction breakdown |
analyze_entity_logs | Error patterns, anomalies, recurring issues |
list_recent_logs | Raw recent logs for an entity |
analyze_threads | Thread state, CPU, memory |
list_garbage_collection_metrics | JVM GC and memory metrics |
analyze_kafka_metrics | Consumer lag, producer throughput, latency, partition balance |
User asks about...
├── "what services do I have?" / "find X service" → get_entity
├── "any alerts / incidents / issues?" → list_recent_issues → search_incident
├── "how is X performing?" → analyze_golden_metrics
├── "what errors are happening?" → list_entity_error_groups → execute_nrql_query
├── "slow transactions" → analyze_transactions
├── "check logs" → analyze_entity_logs / list_recent_logs
├── "did deploy cause this?" → analyze_deployment_impact
└── anything else / complex → natural_language_to_nrql_query
1. get_entity → find the service GUID
2. analyze_golden_metrics → health snapshot
3. list_entity_error_groups → error patterns
4. analyze_entity_logs → log anomalies
5. list_change_events → recent deployments
6. execute_nrql_query → drill into specific errors
NRQL for step 6:
SELECT count(*), error.class, error.message
FROM TransactionError
WHERE entity.guid = '<guid>'
FACET error.class, error.message
SINCE 1 hour ago
LIMIT 20
1. get_entity → find the service GUID
2. analyze_transactions → slow/error-prone endpoints
3. analyze_golden_metrics → latency trend
4. list_garbage_collection_metrics → JVM health (if Java)
5. analyze_threads → thread contention
6. analyze_deployment_impact → correlate with a deploy
1. list_recent_issues → open issues
2. generate_alert_insights_report → root cause analysis
3. generate_user_impact_report → customer blast radius
4. get_entity → affected service
5. list_related_entities → upstream/downstream impact
6. analyze_entity_logs → logs during alert window
7. list_change_events → correlated changes
When the user's request is clear but the right NRQL isn't obvious, use:
natural_language_to_nrql_query(request="<user's question verbatim>")
This generates + executes NRQL automatically. Best for one-off queries.
SELECT <functions/attributes>
FROM <event_type>
WHERE <filters>
FACET <grouping>
SINCE <time>
LIMIT <n>
TIMESERIES AUTO -- optional, for trend charts
Transaction — APM spansTransactionError — app errorsSpan — distributed trace spansLog — log eventsMetric — dimensional metricsSystemSample — host infrastructureProcessSample — process metricsLatency (p95/p99):
SELECT percentile(duration, 95, 99) FROM Transaction SINCE 1 hour ago TIMESERIES AUTO
Error rate:
SELECT percentage(count(*), WHERE error IS true) FROM Transaction SINCE 1 hour ago
Throughput:
SELECT rate(count(*), 1 minute) FROM Transaction TIMESERIES AUTO SINCE 1 hour ago
Saturation:
SELECT average(cpuPercent), average(memoryUsedPercent) FROM SystemSample SINCE 1 hour ago
SINCE 30 minutes agoSINCE 1 hour ago UNTIL 5 minutes agoSINCE '2024-03-01 00:00:00'SINCE today✅ Do:
SINCE — be explicit even though default is 1 hourLIMIT to cap resultsFACET to group by service/error/hostpercentile() not average() for latency (p95/p99 is what matters)appName, service.name, or entity.guid to scope to one serviceTIMESERIES AUTO when you want to show a trend❌ Don't:
SELECT * without LIMIT (can return huge data)WHERE clause across a whole accountLIKE '%..%' patterns on high-cardinality fields| Problem | Likely Cause | Fix |
|---|---|---|
| No results | Filters too strict or wrong event type | Widen time range, remove a WHERE clause, check attribute name casing |
| Query timeout | Too complex / time range too large | Add WHERE filters, narrow SINCE, reduce FACET cardinality |
| Missing attribute | Not instrumented or wrong name | Use Data Explorer in NR UI to check available attributes |
| Incomplete traces | Distributed tracing not enabled | Verify tracing config + context propagation across services |
See references/nrql-patterns.md for:
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
new-relic, observability, monitoring, apm, nrql, incident-response
Other plugins' skills for the same job
5 skills in this plugin
/apmApplication Performance Monitoring and transaction analysis. Use when investigating application errors, slow response times, throughput issues, or transaction-level problems./finopsCloud FinOps cost analysis. Use when investigating cloud spend, cost anomalies, cost spikes, budget analysis, or any questions about AWS, Azure, GCP costs and billing. Requires a New Relic account with Cloud Cost Intelligence data ingested into the CloudCostV2Test table./kafkaKafka in New Relic: answer any question whose subject is a Kafka cluster, broker, topic, consumer group, or a producer or consumer app (nri-kafka, OpenTelemetry, AWS MSK, Confluent Cloud). Covers what exists or is reporting; a value, ranking or trend (throughput, consumer lag, request latency, disk); NRQL for a Kafka measure, since attribute names differ by provider; a client app's behaviour; the root cause of a Kafka alert (consumer lag, under-replicated or offline partitions, a broker down, rebalances, throttling, lost telemetry); and requests to change Kafka (delete a topic, reset offsets), which it answers read-only. Use it instead of a general investigation or NRQL skill whenever Kafka is the subject. Trigger on 'kafka', 'consumer lag', 'under-replicated partitions', 'Kafka broker down', 'topic throughput', 'MSK', 'Confluent'. Not for Kafka tuning or setup advice, or for non-Kafka services or queues (RabbitMQ, SQS)./kubernetesKubernetes diagnosis and debugging using New Relic telemetry. Use when investigating pod crashes, CrashLoopBackOff, OOMKills, pod evictions, scheduling failures, container restarts, node pressure, HPA/scaling issues, service disruptions, or other Kubernetes workload problems. Requires a New Relic account with nri-kubernetes / kube-state-metrics data ingested.Generated from the plugin's indexed repository (newrelic/claude-code-plugin) — no native marketplace selected
npx claudepluginhub p/newrelic-newrelic