New Relic MCP Server
Provides comprehensive access to New Relic's observability platform, enabling AI agents to query NRQL, manage APM applications, alerts, dashboards, synthetic monitors, logs, infrastructure metrics, workflows, notifications, service levels, tags, entities, and workloads through the NerdGraph API.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@New Relic MCP Servershow me the top 5 slowest transactions"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
New Relic MCP Server
A Go-native MCP (Model Context Protocol) server for the New Relic observability platform, providing comprehensive access to APM, infrastructure, logs, traces, alerts, dashboards, synthetics, workflows, notifications, service levels, tags, entities, and workloads — all through a single GraphQL endpoint.
Overview
55 registered MCP tools covering the full NerdGraph API surface
Safety-first design: every tool carries
EnforcerProfilemetadata (risk, impact, resource cost, PII flag, idempotency) for automated policy enforcement via MCP BridgeWrite protection: all mutation tools gated behind a
-write-enabledflag; disabled by defaultMulti-region: US and EU data center support (
NEWRELIC_REGION=us|eu)TDD-built: 80%+ test coverage across all tools
Related MCP server: NewRelic MCP Server
Registries
This server is published on the following MCP registries:
Smithery:
karldane/newrelic-mcpMCP Registry:
io.github.karldane/newrelic-mcp
API Architecture
All tools communicate with a single NerdGraph endpoint:
Region | Endpoint |
US (default) |
|
EU |
|
Internal query helpers determine the response-scope:
Helper | Returns | Used For |
|
| Entity queries, cross-account NRQL |
|
| Account-scoped queries (alerts, workflows, etc.) |
|
| All mutations |
| Parsed NRQL results | NRQL-based tools |
Tools
NRQL Querying
Tool | Description | GraphQL Operation | Risk | Impact |
| Execute arbitrary NRQL queries |
| Med | Read |
APM & Applications
Tool | Description | GraphQL Operation | Risk | Impact |
| List all APM-monitored applications |
| Low | Read |
| Get APM performance metrics |
| Low | Read |
| Get detailed metrics for a specific app |
| Low | Read |
| Query distributed traces |
| Low | Read |
| Get transaction trace details | NRQL via executeNRQL | Low | Read |
| Get specific trace details | NRQL via executeNRQL | Low | Read |
Alert Policies & Conditions
Tool | Description | GraphQL Operation | Risk | Impact |
| List all alert policies |
| Low | Read |
| Get a single alert policy by ID |
| Low | Read |
| Get conditions for a policy |
| Low | Read |
| Get active alert violations |
| Low | Read |
| List NRQL conditions for a policy |
| Low | Read |
| Create a new alert policy |
| Low | Write |
| Update an alert policy |
| Low | Write |
| Delete an alert policy |
| High | Write |
| Create an NRQL alert condition |
| Med | Write |
| Acknowledge an alert violation |
| Med | Write |
Synthetic Monitoring
Tool | Description | GraphQL Operation | Risk | Impact |
| List all synthetic monitors |
| Low | Read |
| Get a synthetic monitor by GUID |
| Low | Read |
| List private locations |
| Low | Read |
| Create a simple ping monitor |
| Low | Write |
| Delete a synthetic monitor |
| Med | Write |
Dashboards
Tool | Description | GraphQL Operation | Risk | Impact |
| List all dashboards |
| Low | Read |
| Get full dashboard configuration by GUID |
| Low | Read |
| Get dashboard widget data |
| Low | Read |
| Create a new dashboard |
| Low | Write |
| Update an existing dashboard |
| Low | Write |
| Delete a dashboard |
| Med | Write |
| Add a widget to a dashboard |
| Med | Write |
Logs
Tool | Description | GraphQL Operation | Risk | Impact |
| Search logs with Lucene syntax |
| Med | Read |
| Stream recent log entries |
| Med | Read |
Infrastructure
Tool | Description | GraphQL Operation | Risk | Impact |
| Get host/container metrics |
| Low | Read |
Alert Workflows (aiWorkflows)
Tool | Description | GraphQL Operation | Risk | Impact |
| List alert notification workflows |
| Low | Read |
| Get a workflow by ID |
| Low | Read |
| Create a new alert workflow |
| Low | Write |
| Update a workflow |
| Low | Write |
| Delete a workflow |
| High | Write |
Notification Channels & Destinations (aiNotifications)
Tool | Description | GraphQL Operation | Risk | Impact |
| List all notification channels |
| Low | Read |
| List notification destinations |
| Low | Read |
| Create a Slack notification channel |
| Low | Write |
| Create an email notification channel |
| Low | Write |
| Delete a notification channel |
| High | Write |
Service Levels
Tool | Description | GraphQL Operation | Risk | Impact |
| List SLIs for an entity |
| Low | Read |
| Create an SLI with SLO |
| Med | Write |
| Update an SLI's SLO target |
| Low | Write |
Tag Management (tagging)
Tool | Description | GraphQL Operation | Risk | Impact |
| Get all tags for an entity |
| Low | Read |
| Add tags to an entity |
| Low | Write |
| Remove tags from an entity |
| Med | Write |
| Replace all tags on an entity |
| Med | Write |
Entity Operations
Tool | Description | GraphQL Operation | Risk | Impact |
| Advanced entity search |
| Low | Read |
| Delete entities by GUID |
| High | Write |
Cross-Account NRQL
Tool | Description | GraphQL Operation | Risk | Impact |
| Run NRQL across multiple accounts |
| Med | Read |
Workloads
Tool | Description | GraphQL Operation | Risk | Impact |
| List all workloads for an account |
| Low | Read |
| Get a workload by GUID |
| Low | Read |
NerdGraph Reference
All tools access the New Relic NerdGraph API. The following NerdGraph query/mutation names are used:
GraphQL Operation | Documentation |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
Installation
Prerequisites
Go 1.22 or later
New Relic account with API access
Building from Source
git clone https://github.com/karldane/newrelic-mcp.git
cd newrelic-mcp
makeBuild Options
make # Download deps and build (default)
make deps # Download dependencies only
make build # Build binary only (assumes deps exist)
make build-all # Build for Linux, macOS, and Windows
make test # Run tests
make clean # Remove build artifacts
make install # Install to GOPATH/bin
make help # Show all optionsConfiguration
Environment Variables
Variable | Description | Required | Default |
| New Relic API key (User or Admin) | Yes | - |
| Data center region ( | No |
|
Obtaining an API Key
Log in to your New Relic account
Go to API Keys in the account settings
Create a User Key (for read-only) or Admin Key (for write operations)
Copy the key and set it as
NEWRELIC_API_KEY
Usage
Basic Usage (Read-Only)
export NEWRELIC_API_KEY="your-api-key"
./newrelic-mcpEnable Write Operations
Write operations require the -write-enabled flag:
export NEWRELIC_API_KEY="your-api-key"
./newrelic-mcp -write-enabledWrite tools are disabled by default. When -write-enabled is set, all mutations (create, update, delete, acknowledge) become available. Each write tool carries an EnforcerProfile with ImpactWrite so MCP Bridge operators can enforce policies independently.
Tools List
Query the full tool list via MCP:
{
"tool": "tools/list"
}Safety Features
EnforcerProfile Metadata
Every tool declares its safety profile:
Field | Description | Values |
| Potential impact of misuse | low, med, high, critical |
| What the tool affects | read, write |
| API call weight (1-10) | integer |
| Whether tool returns sensitive data | true / false |
| Whether retries are safe | true / false |
This metadata enables automated policy enforcement by MCP Bridge without hardcoding tool lists.
Risk Classification
Low Risk: Read-only queries, log searches, metric retrieval, listing operations
Medium Risk: Creating non-destructive resources (alert conditions, service levels, dashboards, channels), acknowledging alerts
High Risk: Deleting resources (policies, entities, dashboards, workflows, channels)
Write Protection
Write tools are disabled by default and require:
Valid New Relic API key with appropriate permissions
-write-enabledcommand-line flag
Examples
Query Application Performance
{
"tool": "nrql_query",
"arguments": {
"query": "SELECT average(duration) FROM Transaction WHERE appName = 'MyApp' TIMESERIES SINCE 1 hour ago"
}
}List Active Alerts
{
"tool": "get_alert_violations",
"arguments": {}
}Create a Ping Monitor
{
"tool": "create_ping_monitor",
"arguments": {
"name": "My Monitor",
"uri": "https://example.com/health",
"locations": "US_EAST_1,US_WEST_1",
"period": "EVERY_5_MINUTES"
}
}Cross-Account NRQL Query
{
"tool": "cross_account_nrql",
"arguments": {
"query": "SELECT count(*) FROM Transaction",
"account_ids": "1234567,7654321"
}
}Architecture
The server wraps the New Relic GraphQL client and registers each tool through the MCP Framework. The tools map 1:1 to NerdGraph operations — no REST API calls are made.
Client (MCP Host)
│
▼
newrelic-mcp (MCP Server)
│
├── actorGraphQuery → actor.* (entities, entitySearch, cross-account NRQL)
├── nerdGraphQuery → actor.account.* (alerts, workflows, notifications, workloads)
├── rawGraphQuery → mutation results
└── executeNRQL → actor.account.nrql (NRQL query tools)
│
▼
New Relic NerdGraph (api.newrelic.com/graphql)Testing
go test ./newrelic -vTests cover:
Happy path (mock NerdGraph responses)
Empty/no-results responses
Missing required parameters
Write-enabled / write-disabled gating
API error responses
Unexpected response format
License
This project is licensed under the Functional Source License, Version 1.1, ALv2 Future License.
Copyright 2026 Karl Dane
See LICENSE file for full terms.
References
MCP Framework — Base framework with EnforcerProfile support
New Relic API Explorer — Interactive GraphQL playground
Tool Inventory
The server registers 55 tools total:
6 NRQL / APM / Trace tools: nrql_query, list_applications, get_apm_metrics, get_application_metrics, query_traces, get_transaction_traces, get_trace_details
10 Alert tools: list_alerts, get_alert_policy, get_alert_conditions, get_alert_violations, list_nrql_alert_conditions, create_alert_policy, update_alert_policy, delete_alert_policy, create_alert_condition, acknowledge_alert_violation
5 Synthetic Monitoring tools: list_synthetic_monitors, get_synthetic_monitor, list_private_locations, create_ping_monitor, delete_synthetic_monitor
7 Dashboard tools: list_dashboards, get_dashboard, get_dashboard_data, create_dashboard, update_dashboard, delete_dashboard, add_dashboard_widget
2 Log tools: search_logs, tail_logs
1 Infrastructure tool: get_infrastructure_metrics
5 Workflow tools: list_workflows, get_workflow, create_workflow, update_workflow, delete_workflow
5 Notification tools: list_notification_channels, list_destinations, create_slack_channel, create_email_channel, delete_notification_channel
3 Service Level tools: list_service_levels, create_service_level, update_service_level
4 Tag tools: get_entity_tags, add_entity_tags, remove_entity_tags, replace_entity_tags
2 Entity tools: search_entities, delete_entity
1 Cross-account NRQL tool: cross_account_nrql
2 Workload tools: list_workloads, get_workload
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityBmaintenanceEnables AI assistants to interact with New Relic monitoring and observability data through programmatic access to New Relic APIs. Supports APM management, NRQL queries, alert policies, synthetic monitoring, dashboards, infrastructure monitoring, and deployment tracking.Last updated266MIT
- AlicenseAqualityDmaintenanceA comprehensive MCP server providing over 26 tools for querying, monitoring, and analyzing NewRelic data through NRQL queries and entity management. It enables interaction with NewRelic's NerdGraph API for managing alerts, logs, and incidents directly within Claude Code sessions.Last updated242282MIT
- FlicenseAqualityDmaintenanceEnables AI agents to access New Relic logs and APM data through the NerdGraph API. It allows users to execute NRQL queries, retrieve application performance metrics, and analyze transaction traces using natural language.Last updated61
- Flicense-qualityBmaintenanceExecutes NRQL queries against New Relic via the NerdGraph API, enabling monitoring and observability data retrieval through natural language.Last updated
Related MCP Connectors
34 production API tools over one hosted MCP endpoint.
Monday.com MCP — wraps the Monday.com GraphQL API (BYO API key)
Connect any two APIs and keep them in sync — 45 MCP tools with shadow previews and diagnostics.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/karldane/newrelic-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server