New Relic MCP Server
The New Relic MCP Server provides a comprehensive interface to New Relic's monitoring, observability, and management capabilities through the Model Context Protocol.
NRQL & Core Monitoring
Execute custom NRQL queries for flexible data exploration
Retrieve application performance metrics (avg/p95 response time, throughput) and error rates
Get infrastructure host metrics (CPU, memory, disk usage)
View recent incidents, alert violations, and deployment markers
Dashboard Management
List, create, update, and delete dashboards
Add, update, and delete widgets with advanced chart configurations (dual y-axis, fixed ranges, legend control, chart styles)
Entity Management
Search for entities (APM apps, hosts, synthetic monitors, etc.) by name, type, domain, or tags
Look up a single entity by GUID with full metadata
Decode entity GUIDs to extract account ID, domain, and type
Add, update, replace, or delete entity tags
Service Level Management
List, create, update, and delete Service Level Indicators (SLIs/SLOs) with event queries and objectives
Synthetic Monitoring
List all synthetic monitors with status and success rates
Retrieve recent pass/fail check results per location for specific monitors
Alert & Notification Management
Create, update, and delete alert policies and NRQL conditions
Configure notification destinations (email, Slack, webhook, PagerDuty, ServiceNow), channels, and workflows
Create, update, and delete muting rules to suppress notifications during scheduled windows
Safety Controls
Read-only by default; write and destructive operations require explicit opt-in via environment variables or CLI flags
Supports tool allowlists and denylists to restrict which tools are exposed
Account calls are pinned to the configured account unless overrides are explicitly allowed
Provides comprehensive tools for New Relic monitoring and observability, including NRQL queries, application performance monitoring, error tracking, infrastructure monitoring, dashboard management, entity management, alert policies, and deployment tracking.
Allows configuring PagerDuty as a notification destination for alert policies.
Allows configuring Slack as a notification channel for alert workflows.
Click on "Deploy 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 Server Show me the error rate for the last hour"
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 comprehensive Model Context Protocol (MCP) server for New Relic monitoring, observability, and management operations.
Features
Core Monitoring & Observability
NRQL Query Execution: Run custom New Relic Query Language queries
Application Performance: Real-time performance metrics (response time, throughput)
Error Monitoring: Error rates, counts, and detailed error analysis
Infrastructure Monitoring: Host metrics, CPU, memory, disk usage
Incident Management: Recent incidents, violations, and alert status
Dashboard Management
Dashboard Operations: Create, read, update, and delete dashboards
Widget Management: Add, update, and remove dashboard widgets with rawConfiguration support for dual y-axis, fixed y-axis ranges, legend control, and chart styles
Search & Discovery: Find dashboards by name or GUID
Visualization Support: Line charts, bar charts, pie charts, tables, billboards
Entity Management
Entity Search: Find any New Relic entity (APM apps, hosts, synthetic monitors, browsers) by name, type, domain, or tags
Entity Tagging: Add, update, and delete tags on any entity
Service Levels: List all SLIs/SLOs with compliance data and objectives
Synthetic Monitors: List monitors with status, success rate, and location health; query recent check results
Alert & Notification System
Alert Policies: Create and manage alert policies with configurable incident preferences
NRQL Conditions: Set up custom alert conditions with thresholds and triggers
Notification Destinations: Configure email, Slack, webhook, PagerDuty integrations
Notification Channels: Link destinations to specific notification preferences
Workflows: Connect alert policies to notification channels with filtering
Deployment Tracking
Deployment Markers: Track deployment events and their impact
Release Correlation: Correlate performance changes with deployments
Related MCP server: New Relic MCP Server
Installation
Prerequisites
Python 3.11+ (recommended: use
uvfor fast dependency management)New Relic User API Key (not Ingest key)
New Relic Account ID
Quick Start
# Clone the repository
git clone <repository-url>
cd mcp-newrelic
# Install dependencies (using uv - recommended)
uv sync
# Or using pip
pip install -e .
# Configure your credentials (see Configuration section below)Setup
Getting Your Credentials
API Key: Go to New Relic API Keys → Create User API Key
Account ID: Found in your New Relic URL:
https://one.newrelic.com/accounts/{ACCOUNT_ID}/...Region: Use "EU" if your account is on
one.eu.newrelic.com, otherwise "US"
MCP Client Integration
Add the server to your MCP client config. You do not need to start the server manually — your MCP client launches it automatically.
{
"mcpServers": {
"newrelic": {
"command": "uv",
"args": ["run", "python", "/path/to/mcp-newrelic/server.py"],
"env": {
"NEW_RELIC_API_KEY": "your-api-key",
"NEW_RELIC_ACCOUNT_ID": "your-account-id"
}
}
}
}Where this config lives depends on your client (e.g., ~/.claude.json for Claude Code, claude_desktop_config.json for Claude Desktop, .cursor/mcp.json for Cursor, etc.). Replace /path/to/mcp-newrelic/server.py with the actual path to your clone.
Alternatively, use the newrelic-mcp console script instead of pointing at server.py:
{
"mcpServers": {
"newrelic": {
"command": "uv",
"args": ["run", "--directory", "/path/to/mcp-newrelic", "newrelic-mcp"],
"env": {
"NEW_RELIC_API_KEY": "your-api-key",
"NEW_RELIC_ACCOUNT_ID": "your-account-id"
}
}
}
}Advanced Configuration
If you need to run the server manually (e.g., for development or debugging), it supports flexible configuration with clear precedence (highest to lowest):
1. Command Line Arguments (Highest Priority)
uv run python server.py \
--api-key "NRAK-your-api-key" \
--account-id "your-account-id" \
--region "US"2. JSON Configuration File
# Copy and edit the example config
cp newrelic-config.json.example config/newrelic-config.json
# Run with config file
uv run python server.py --config config/newrelic-config.jsonExample newrelic-config.json:
{
"api_key": "NRAK-your-api-key",
"account_id": "your-account-id",
"region": "US",
"timeout": 30
}3. Environment Variables (Lowest Priority)
export NEW_RELIC_API_KEY="NRAK-your-api-key"
export NEW_RELIC_ACCOUNT_ID="your-account-id"
export NEW_RELIC_REGION="US" # US or EU
export NEW_RELIC_TIMEOUT="30"Keeping your API key out of config files
The env blocks above store your key in plaintext wherever your MCP client keeps its config
(~/.claude.json, claude_desktop_config.json, etc.). To keep it in an OS secret store instead,
have the client resolve it at launch:
{
"mcpServers": {
"newrelic": {
"command": "sh",
"args": ["-c", "NEW_RELIC_API_KEY=$(security find-generic-password -w -s NEW_RELIC_API_KEY -a $USER) exec uv run --directory /path/to/mcp-newrelic newrelic-mcp"],
"env": {
"NEW_RELIC_ACCOUNT_ID": "your-account-id"
}
}
}
}Store the key once with:
security add-generic-password -s NEW_RELIC_API_KEY -a "$USER" -w "NRAK-your-api-key"Substitute your platform's secret store for security: secret-tool lookup key newrelic (Linux),
pass show newrelic/api-key, op read op://vault/newrelic/key (1Password), or
vault kv get -field=api_key secret/newrelic. The command substitution happens inside sh, so the
key reaches the server's environment without ever appearing in its argv (and therefore not in ps).
On Windows, sh isn't available — use a PowerShell wrapper instead. This also doesn't apply to the
Docker setup below: the image has no secret-store client installed.
Safety Controls
The server is read-only by default. Write tools (create/update/delete) are blocked unless you opt in, and destructive tools (update/delete/replace, plus muting-rule creation) require a second opt-in on top of writes. Calls are also pinned to the configured account unless overrides are enabled.
Variable | CLI flag | Effect |
|
| Allow create/update/delete tools |
|
| Allow destructive tools (also needs writes) |
|
| Allow a call's |
|
| Comma-separated allowlist; only these tools are exposed |
|
| Comma-separated denylist |
Enable writes only for trusted MCP clients. Booleans accept true/false/1/0/yes/no/on/off.
Available Tools
NRQL & Monitoring
query_nrql: Execute custom NRQL queries with full flexibilityget_app_performance: Application performance metrics (avg/p95 response time, throughput). Takes an APMappNameor an OpenTelemetryservice.name; OTel services are read from the unsampledhttp.server.request.durationmetricget_app_errors: Error metrics, counts, and error analysis. OTel services count 5xx orerror.typerequestsget_incidents: Recent incidents with time filteringget_infrastructure_hosts: Infrastructure host metrics (CPU, memory, disk)get_alert_violations: Recent alert violations and statusget_deployments: Deployment markers and impact analysis
Dashboard Management
get_dashboards: List and search dashboards with filteringget_dashboard_widgets: Retrieve all widgets from a dashboard with their page GUIDs, types, layouts, links and queries, plus the dashboard's permissions and variablescreate_dashboard: Create new dashboards for monitoring, optionallyPUBLIC_READ_ONLYorPRIVATEupdate_dashboard: Rename a dashboard, update its description, and/or replace its template variables (dropdowns referenced as{{name}}in widget NRQL); pages, widgets and existing variables are preservedexport_dashboard: Full dashboard definition (permissions, variables, every page and widget with layout and rawConfiguration) as DashboardInput JSON; use as a backup or edit and pass toreplace_dashboardreplace_dashboard: Replace the whole dashboard with DashboardInput JSON (destructive; anything not in the JSON is removed)add_dashboard_page: Append an empty page and return its GUID foradd_widget_to_dashboard'spage_guidundelete_dashboard: Restore a dashboard removed withdelete_dashboardcreate_dashboard_snapshot_url: Public PNG/PDF snapshot link of one page, optionally rendered with template variable values (anyone with the link can view it)delete_dashboard: Delete a dashboard by GUIDadd_widget_to_dashboard: Add NRQL chart widgets (any visualization, includingstacked-bar) or markdown text widgets, to any page, with optional title links and facet-linked dashboardsupdate_widget: Update existing dashboard widgets; every field you omit keeps its current valuedelete_widget: Remove widgets from dashboards
Entity Management
entity_search: Search for any entity by name, type (APPLICATION, HOST, MONITOR, KEY_TRANSACTION), or domain (APM, INFRA, SYNTH, BROWSER, EXT). With no filters it searches APM, EXT (OpenTelemetry services), INFRA, SYNTH and BROWSER. Supportslimit(default 25, max 200) andminimal_outputto reduce response size.get_entity: Look up a single entity by GUID with full details (name, type, account, tags, permalink, type-specific metadata)decode_entity_guid: Decode a base64-encoded entity GUID to reveal account ID, domain, entity type, and domain ID without an API callget_entity_tags: Get all tags for an entity by GUIDadd_tags_to_entity: Add or update key-value tags on an entityreplace_tags_on_entity: Replace all tags on an entity (overwrites existing)delete_tags_from_entity: Remove tag keys from an entitydelete_tag_values: Delete specific tag key-value pairs from an entitylist_service_levels: List all SLIs/SLOs with compliance data and objectivesget_service_level: Get full SLI definitions (event queries, objectives, time windows) for an entitycreate_service_level: Create a Service Level Indicator on an entityupdate_service_level: Update an SLI's name, description, event queries, or objectivesdelete_service_level: Delete an SLI by its SERVICE_LEVEL entity GUIDlist_synthetic_monitors: List all synthetic monitors with status, success rate, and location healthget_synthetic_results: Get recent pass/fail check results per location for a specific monitor
Alert & Notification Management
create_alert_policy: Create alert policies with incident preferencesupdate_alert_policy: Update an existing alert policydelete_alert_policy: Delete an alert policy by IDcreate_nrql_condition: Create NRQL-based alert conditionsupdate_nrql_condition: Update an existing NRQL alert conditiondelete_nrql_condition: Delete a NRQL alert condition by IDcreate_notification_destination: Set up notification endpoints (email, Slack, webhook, PagerDuty)delete_notification_destination: Delete a notification destination by IDcreate_notification_channel: Create notification channelsdelete_notification_channel: Delete a notification channel by IDcreate_workflow: Connect alerts to notifications with filteringupdate_workflow: Update a workflow's name, enabled state, channels, or issues filterdelete_workflow: Delete a workflow by IDcreate_muting_rule: Create a muting rule to suppress alert notifications during scheduled windowslist_muting_rules: List all muting rules with their conditions and schedulesupdate_muting_rule: Update a muting rule's name, conditions, schedule, or enabled statedelete_muting_rule: Delete a muting rule by IDlist_alert_policies: List all alert policieslist_alert_conditions: List alert conditions with optional filters by policy, name, or NRQL querylist_notification_destinations: List all notification destinationslist_notification_channels: List all notification channelslist_workflows: List all alert workflows
MCP Resources
Access structured data through these MCP resources:
newrelic://applications: Complete list of monitored APM applications and OpenTelemetry servicesnewrelic://incidents/recent: Recent incidents and alert summarynewrelic://dashboards: Dashboard metadata (name, GUID, created date, URL)newrelic://alerts/policies: Alert policies and configurationsnewrelic://alerts/conditions: Alert conditions across all policiesnewrelic://alerts/workflows: Workflow configurations and notifications
Architecture
Design
Strategy Pattern: Tool handlers using pluggable strategy implementations
Composition:
NewRelicClientcomposes specialized sub-clients (monitoring,alerts,dashboards,entities) instead of using multiple inheritanceConfiguration: Hierarchical config (CLI > file > env vars) with validation
Error Handling: Typed
ApiErrordataclass for consistent error propagationPagination: Cursor-based pagination for NerdGraph queries (entity search, dashboards, alert policies, conditions, notification destinations/channels, workflows, service levels, synthetic monitors)
Resilience: Bounded retry with backoff on HTTP 429/502/503/504, honoring
Retry-After
Key Components
NewRelicClient: Unified client composing all specialized sub-clientsAlertsClient: Alert policies, conditions, and notification managementDashboardsClient: Dashboard and widget operationsEntitiesClient: Entity search, tagging, service levels, and synthetic monitorsMonitoringClient: NRQL queries and performance monitoringToolHandlers: Strategy-based dispatcher for MCP tool callsResourceHandlers: MCP resource operations and data formatting
Docker Support
Build
docker build -t newrelic-mcp-server .MCP Client Integration (Recommended)
The server speaks MCP over stdio, so your MCP client should launch the container itself with
docker run -i --rm (interactive stdin, removed on exit):
{
"mcpServers": {
"newrelic": {
"command": "docker",
"args": [
"run", "-i", "--rm",
"-e", "NEW_RELIC_API_KEY",
"-e", "NEW_RELIC_ACCOUNT_ID",
"newrelic-mcp-server"
],
"env": {
"NEW_RELIC_API_KEY": "your-api-key",
"NEW_RELIC_ACCOUNT_ID": "your-account-id"
}
}
}
}A docker-compose.yml is included, but compose keeps an idle long-running container —
since MCP clients spawn the server on demand, prefer the docker run -i --rm client
config above. Compose is mainly useful for keeping a pre-built image and env wiring
around during development.
Image Details
The Dockerfile is a single-stage build on python:3.11-slim that:
installs locked dependencies with
uv sync --frozen(dependency layer cached separately from source)copies the application source and installs the project
runs as a non-root
mcpuserstarts the stdio server via
uv run python server.py(no ports exposed — communication is over stdin/stdout)
Development
Development Setup
# Install development dependencies
uv sync --dev
# Install pre-commit hooks
uv run pre-commit install
# Run quality checks
uv run ruff check . # Linting
uv run ruff format . # Formatting
uv run mypy newrelic_mcp/ # Type checking
uv run pylint newrelic_mcp/ # Additional analysisCode Quality
This project maintains high code quality with:
Ruff: Fast linting and formatting
MyPy: Static type checking
Pylint: Additional code analysis
Pre-commit hooks: Automated quality checks
Comprehensive type annotations: Full type coverage
Testing
# Run all tests
uv run pytest tests/
# Run with verbose output
uv run pytest tests/ -vFor detailed development information, see DEVELOPMENT.md.
Example Usage
Complete Alert Setup Workflow
# 1. Create alert policy
create_alert_policy(name="High CPU Usage Policy")
# 2. Create NRQL condition
create_nrql_condition(
policy_id="policy-id-from-step-1",
name="High CPU Alert",
nrql_query="SELECT average(cpuPercent) FROM SystemSample",
threshold=80
)
# 3. Create notification destination
create_notification_destination(
name="Team Email",
type="EMAIL",
properties={"email": "alerts@company.com"}
)
# 4. Create notification channel
create_notification_channel(
name="CPU Alert Channel",
destination_id="destination-id-from-step-3",
type="EMAIL"
)
# 5. Create workflow
create_workflow(
name="CPU Alert Workflow",
channel_ids=["channel-id-from-step-4"]
)Requirements
Python: 3.11 or higher
New Relic API Key: User API key (starts with
NRAK-orNRAA-)New Relic Account: Valid account with appropriate permissions
Dependencies: Managed automatically with
uvorpip
License
This project is licensed under the MIT License. See the LICENSE file for details.
Contributing
Contributions are welcome! Please:
Read DEVELOPMENT.md for setup instructions
Follow the established code style and quality standards
Add tests for new functionality
Update documentation as needed
Support
Documentation: Check DEVELOPMENT.md for detailed guides
Issues: Report bugs and feature requests via GitHub Issues
New Relic API: Official New Relic API Documentation
MCP Protocol: Model Context Protocol Specification
Available Tools
52 toolsadd_tags_to_entityB
Add or update tags on a New Relic entity. Tags are key-value pairs.
Inputs: guid (required), tags (required).
add_widget_to_dashboardA
Add a widget to an existing dashboard (requires dashboard GUID and widget configuration).
Use the optional raw_configuration parameter to control advanced chart display settings. When provided,
it is sent as rawConfiguration to NerdGraph and takes precedence over the typed configuration.
The raw_configuration object should include nrqlQueries plus any display options.
IMPORTANT: nrqlQueries uses accountIds (array) not accountId (scalar):
"nrqlQueries": [{"accountIds": [123456], "query": "SELECT ..."}]
This is auto-populated from widget_query if omitted.
Fixed Y-Axis Range (left axis):
{"yAxisLeft": {"min": 0, "max": 500, "zero": false}}
Dual Y-Axis (second axis on right): IMPORTANT: dual y-axis requires the COMPLETE rawConfiguration (not just yAxisRight). NR automatically appends an aggregation suffix to series names: percentile() → " (99%)", average() → no suffix. The alias in the query should NOT include the suffix — NR adds it. Use the rendered name in series[].name. Example — query alias is 'My Series', NR renders it as 'My Series (99%)' for percentile():
{
"nrqlQueries": [{"accountIds": [123456], "query": "SELECT count(*) AS 'Left', percentile(duration, 99) AS 'My Series' FROM ... TIMESERIES"}],
"chartStyles": {"lineInterpolation": "linear"},
"facet": {"showOtherSeries": false},
"legend": {"enabled": true},
"markers": {"displayedTypes": {"criticalViolations": false, "deployments": true, "relatedDeployments": true, "warningViolations": false}},
"platformOptions": {"ignoreTimeRange": false},
"thresholds": {"isLabelVisible": true},
"yAxisLeft": {"zero": true},
"yAxisRight": {"zero": true, "series": [{"name": "My Series (99%)"}]}
}Hide Legend:
{"legend": {"enabled": false}}
Facet - show/hide Other series:
{"facet": {"showOtherSeries": true}}
Ignore dashboard time picker:
{"platformOptions": {"ignoreTimeRange": true}}
Threshold label visibility (shows/hides threshold labels on chart):
{"thresholds": {"isLabelVisible": true}}
Chart line style:
{"chartStyles": {"lineInterpolation": "linear"}} (or "step", "smooth")
Deployment markers:
{"markers": {"displayedTypes": {"deployments": true, "relatedDeployments": true, "criticalViolations": false, "warningViolations": false}}}
Combined example (fixed range + no legend):
{
"nrqlQueries": [{"accountIds": [123456], "query": "SELECT count(*) FROM Log TIMESERIES"}],
"yAxisLeft": {"min": 0, "max": 1000, "zero": true},
"legend": {"enabled": false}
}Note: logarithmic scale is not supported by New Relic for line/area charts.
Placement (layout): dashboards use a 12-column grid (column is 1-based; height 1 ≈ one billboard row, charts are usually 3).
Without layout, New Relic auto-places the widget full-size at the bottom — fine for one-offs, wrong for designed
dashboards. Compact KPI billboard: {"column": 1, "row": 1, "width": 2, "height": 2}; chart in a 3-across row:
{"column": 5, "row": 4, "width": 4, "height": 3}.
Inputs: dashboard_guid (required), widget_title (required), widget_query (required), widget_type, +2 more.
create_alert_policyC
Create a new alert policy
Inputs: name (required), incident_preference.
create_dashboardA
Create a new New Relic dashboard
Inputs: name (required), description.
create_muting_ruleA
Create a muting rule to suppress alert notifications during scheduled windows. Use conditions to match specific policies, condition names, or entity attributes. Use schedule for recurring windows (DAILY, WEEKLY). Condition attributes: policyId, policyName, conditionId, conditionName, entity.name, entity.type.
Inputs: name (required), conditions (required), description, enabled, +2 more.
create_notification_channelB
Create a notification channel linked to a destination
Inputs: name (required), destination_id (required), type (required), product, +1 more.
create_notification_destinationC
Create a notification destination (email, webhook, Slack, etc.)
Inputs: name (required), type (required), properties (required).
create_nrql_conditionC
Create a NRQL alert condition
Inputs: policy_id (required), name (required), nrql_query (required), threshold (required), +5 more.
create_service_levelA
Create a Service Level Indicator on an entity. For SLIs over OTEL distribution metrics (FROM Metric), never use function COUNT (it counts pre-aggregated data points, not requests): use GET_FIELD for availability and GET_CDF_COUNT with a threshold for latency.
Inputs: entity_guid (required), name (required), events (required), objectives (required), +2 more.
create_workflowC
Create a workflow to connect alert policies to notification channels
Inputs: name (required), channel_ids (required), filter_name, filter_predicates, +1 more.
decode_entity_guidA
Decode a New Relic entity GUID (base64-encoded) to reveal its components: account ID, domain (APM, EXT, INFRA, etc.), entity type (APPLICATION, KEY_TRANSACTION, HOST, etc.), and domain ID. Useful for understanding what an entity GUID refers to without making an API call.
Inputs: guid (required).
delete_alert_policyB
Delete an alert policy by ID
Inputs: policy_id (required).
delete_dashboardB
Delete a dashboard by GUID
Inputs: dashboard_guid (required).
delete_muting_ruleB
Delete a muting rule by ID
Inputs: rule_id (required).
delete_notification_channelB
Delete a notification channel by ID
Inputs: channel_id (required).
delete_notification_destinationA
Delete a notification destination by ID
Inputs: destination_id (required).
delete_nrql_conditionA
Delete a NRQL alert condition by ID
Inputs: condition_id (required).
delete_service_levelA
Delete a Service Level Indicator by its SERVICE_LEVEL entity GUID. Requires the events-to-metrics delete capability on the account.
Inputs: guid (required).
delete_tags_from_entityA
Delete tag keys (and all their values) from a New Relic entity.
Inputs: guid (required), tag_keys (required).
delete_tag_valuesA
Delete specific tag key-value pairs from an entity (keeps the key if other values remain).
Inputs: guid (required), tag_values (required).
delete_widgetB
Delete a widget from a dashboard
Inputs: page_guid (required), widget_id (required).
delete_workflowB
Delete a workflow by ID
Inputs: workflow_id (required), delete_channels.
entity_searchA
Search for New Relic entities (APM apps, hosts, synthetic monitors, browsers, etc.) by name, type, domain, or tags. Returns GUIDs, alert severity, and metadata. Use domain values: APM, INFRA, SYNTH, BROWSER, MOBILE, EXT. Use type values: APPLICATION, HOST, MONITOR, KEY_TRANSACTION, etc. Use minimal_output=true to reduce response size (omits tags and type-specific fields). Use limit to cap results (default 25, max 200).
Inputs: name, entity_type, domain, tags, +2 more.
get_alert_violationsC
Get recent alert violations and incidents
Inputs: hours.
get_app_errorsC
Get error metrics for a specific application
Inputs: app_name (required), hours.
get_app_performanceC
Get performance metrics for a specific application
Inputs: app_name (required), hours.
get_dashboardsA
Get New Relic dashboards (max 200 due to API limits). Use search parameter to find specific dashboards efficiently.
Inputs: search, guid, limit.
get_dashboard_widgetsA
Get all widgets from a dashboard with their details and IDs
Inputs: dashboard_guid (required).
get_deploymentsC
Get deployment markers and their impact
Inputs: app_name, hours.
get_entityA
Look up a single New Relic entity by its GUID. Returns full details including name, type, domain, alert severity, account info, tags, permalink, and type-specific metadata (language for APM apps, monitor type for synthetics, host metrics for infra). Use entity_search to find GUIDs, or decode_entity_guid to inspect a GUID without an API call.
Inputs: guid (required).
get_entity_tagsA
Get all tags for a New Relic entity by its GUID. Use entity_search to find GUIDs.
Inputs: guid (required).
get_incidentsC
Get recent incidents from New Relic
Inputs: hours.
get_infrastructure_hostsC
Get infrastructure hosts and their metrics
Inputs: hours.
get_service_levelA
Get the full definitions (valid/good/bad event queries, SLI functions, objectives, time windows) of the Service Level Indicators attached to an entity. Accepts the GUID of the instrumented entity or of a SERVICE_LEVEL entity itself.
Inputs: guid (required).
get_synthetic_resultsA
Get recent check results for a specific synthetic monitor. Shows pass/fail per location, duration, and error messages. Use list_synthetic_monitors to find monitor GUIDs.
Inputs: monitor_guid (required), hours, account_id.
list_alert_conditionsB
List alert conditions with optional filters by policy, name, or NRQL query
Inputs: policy_id, name, query.
list_alert_policiesA
List all alert policies in the account
Inputs: no named parameters.
list_muting_rulesA
List all muting rules in the account with their conditions and schedules
Inputs: no named parameters.
list_notification_channelsB
List all notification channels
Inputs: no named parameters.
list_notification_destinationsB
List all notification destinations
Inputs: no named parameters.
list_service_levelsA
List all Service Level Indicators (SLIs/SLOs) for the account. Shows objectives, target percentages, time windows, and the NRQL queries used to measure good/valid events.
Inputs: account_id.
list_synthetic_monitorsA
List all synthetic monitors with their current status, success rate, monitor type (simple, scripted browser, API test, etc.), check period, and location health.
Inputs: account_id.
list_workflowsA
List all alert workflows
Inputs: no named parameters.
query_nrqlA
Execute a NRQL query against New Relic. Common event types: Transaction, TransactionError, Span, Log, Metric, KeyTransaction, ExternalCall, SyntheticCheck, PageView, MobileSession. Tips: Use SINCE X hours/days ago for time ranges (e.g. SINCE 3 hours ago). For high-volume apps, use shorter time windows (1-3 hours) to avoid query timeouts. Use TIMESERIES for trend data over time. Use FACET for grouping results. Prefer uniqueCount() over uniques() for high-cardinality attributes. Use LIMIT to cap result rows (default is 10 for FACET queries). Time range formats: SINCE 1 hour ago, SINCE '2024-01-15 00:00:00', SINCE timestamp.
Inputs: query (required), account_id.
replace_tags_on_entityA
Replace ALL tags on a New Relic entity (overwrites existing tags). Use add_tags_to_entity to append instead.
Inputs: guid (required), tags (required).
update_alert_policyB
Update an existing alert policy (name and/or incident preference)
Inputs: policy_id (required), name, incident_preference.
update_dashboardA
Rename a dashboard and/or update its description by GUID. Pages and widgets are preserved unchanged.
Inputs: guid (required), name, description.
update_muting_ruleA
Update an existing muting rule. Only the provided fields are changed; condition and schedule shapes match create_muting_rule.
Inputs: rule_id (required), name, description, enabled, +3 more.
update_nrql_conditionB
Update an existing NRQL alert condition
Inputs: condition_id (required), name, description, nrql_query, +6 more.
update_service_levelA
Update a Service Level Indicator (name, description, event queries, objectives) by its SERVICE_LEVEL entity GUID. Note: changing the SLI function on an existing SLI may not reset the engine's computation pipeline; if numbers stay wrong after an update, delete and recreate the SLI.
Inputs: guid (required), name, description, events, +1 more.
update_widgetA
Update an existing widget on a dashboard.
Use the optional raw_configuration parameter to control advanced chart display settings. When provided,
it is sent as rawConfiguration to NerdGraph and takes precedence over the typed configuration.
See the add_widget_to_dashboard description for the full rawConfiguration reference.
Update-specific notes:
Omit
widget_typeto keep the widget's current visualization.Omit
layoutto keep the widget's current position and size.
Inputs: page_guid (required), widget_id (required), widget_title, widget_query, +3 more.
update_workflowA
Update an existing workflow. Only the provided fields are changed. Use destination_configurations to replace the notification channels and issues_filter to replace the filter.
Inputs: workflow_id (required), name, enabled, destination_configurations, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 52 tools
Most tools target distinct resources with clear CRUD boundaries, but several pairs overlap: get_incidents vs get_alert_violations (the latter also returns incidents), delete_tags_from_entity vs delete_tag_values (delete key vs delete key-value pair), and list_notification_destinations vs list_notification_channels. The detailed descriptions help, but an agent could still misselect between these closely related concepts.
Most tools follow a verb_noun pattern (create_/update_/delete_/list_), but the read-verb choice is inconsistent: list_alert_conditions, list_workflows, and list_muting_rules use 'list' while get_incidents, get_dashboards, and get_synthetic_results use 'get' for equivalent enumeration operations. Deviations like entity_search, decode_entity_guid, and add_widget_to_dashboard further break the convention.
At 52 tools, the set exceeds the 50+ threshold for an extreme mismatch. The tool descriptions are very long (especially add_widget_to_dashboard's rawConfiguration reference), creating heavy context overhead and making reliable tool selection difficult given the many similar list_/get_/create_ tools. Even accounting for New Relic's broad platform, this is too many tools for one server.
The set covers full CRUD for alert policies, NRQL conditions, workflows, muting rules, dashboards, widgets, entities/tags, and service levels, plus NRQL querying and read-only monitoring. Notable gaps: no update tools for notification destinations or channels, no create/update/delete for synthetic monitors, and only NRQL-type alert conditions can be created.
Maintenance
Related MCP Connectors
Access New Relic observability data through MCP - query metrics, logs, traces, entities, and more
Lets AI agents analyze API metrics, request logs, and traces, and manage apps and alerts.
Manage uptime monitors and incidents and search logs, metrics and traces from an AI assistant.
List datasets, schemas, run APL queries, and use prompts for exploration, anomalies, and monitoring.
Related MCP Servers
- AlicenseCqualityBmaintenanceEnables 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.27207 PyPI6MIT
- AlicenseAqualityDmaintenanceEnables 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.61MIT
- FlicenseNot gradedqualityDmaintenanceEnables users to query and manage New Relic account data and features through natural language or specific commands, including NRQL queries, entity search, APM, Synthetics, and alerts management.3-
- FlicenseNot gradedqualityDmaintenanceProvides New Relic observability tools for AI assistants, enabling discovery, data access, alerting, incident response, and performance analytics via natural language queries.-