Sponsored by Deepsite.site

New Relic MCP Server

Created By
@cloudbring4 months ago
Run NRQL, NerdGraph, and REST v2 operations to query data, manage incidents, create synthetics, and annotate deployments — all from your MCP client. A full‑featured New Relic MCP server that goes far beyond basic NRQL. It exposes safe, typed tools for APM discovery, alert policy/incident workflows (including acknowledge), entity search and deep details, creating Synthetics Browser monitors, and New Relic REST v2 coverage for deployments and metrics with region awareness and auto‑pagination.
Content

Install

  • One‑liner: npx -y newrelic-mcp

Server config (drop-in for most MCP clients)

{
  "mcpServers": {
    "newrelic": {
      "command": "npx",
      "args": ["-y", "newrelic-mcp"],
      "env": {
        "NEW_RELIC_API_KEY": "YOUR_API_KEY",
        "NEW_RELIC_ACCOUNT_ID": "YOUR_ACCOUNT_ID"
      }
    }
  }
}

Environment variables

  • NEW_RELIC_API_KEY: New Relic User API Key (required)
  • NEW_RELIC_ACCOUNT_ID: Default account ID (optional; can be provided per tool call)

Tools (copy for MCP.so "Tools" section)

  • run_nrql_query: Execute NRQL against an account.
  • run_nerdgraph_query: Run arbitrary NerdGraph GraphQL.
  • search_entities: Search across entities (type, tags, account).
  • **get_entity_details: **Deep detail for any entity GUID (relationships, golden metrics, alert context).
  • list_apm_applications: List APM apps via GraphQL.
  • list_synthetics_monitors: List Synthetics monitors (filter by type).
  • create_browser_monitor: Create a Synthetics Browser monitor.
  • list_alert_policies: Enumerate alert policies.
  • list_open_incidents: Fetch open incidents (filter by priority).
  • acknowledge_incident: Acknowledge a specific incident.

REST v2 (region-aware, auto‑pagination)

  • create_deployment
  • list_deployments_rest
  • delete_deployment (requires confirm: true)
  • list_apm_applications_rest
  • list_metric_names_for_host
  • get_metric_data_for_host
  • list_application_hosts
  • get_account_details: Convenience account info
You are an SRE copilot using New Relic via MCP tools. Follow these rules:
1) Choose the right interface:
   - Use run_nrql_query for aggregate analytics and timeseries.
   - Use run_nerdgraph_query for graph-shaped data and entities/alerts APIs.
   - Prefer REST v2 tools for deployments and legacy APM metrics; set region as needed.
2) Always include target_account_id unless a default is configured.
3) For large result sets, enable auto_paginate and surface page info.
4) Be safe: require explicit user confirmation for delete_deployment (confirm=true).
5) For incidents:
   - Use list_open_incidents to triage by priority.
   - Use acknowledge_incident only after user approval.
6) For synthetics:
   - Use create_browser_monitor with name, url, frequency, locations.
7) Return concise summaries with a short “What I did” and “What next” suggestion.

Example Prompts

  • “Run NRQL to get requests and error rate for app ‘web’ over the last 30 minutes; include a short analysis.”
  • “List open incidents with priority CRITICAL and HIGH; summarize by policy.”
  • “Acknowledge incident 1234 with comment ‘false positive after deploy rollback’.”
  • “Create a Synthetics Browser monitor named ‘Homepage SLA’ for https://example.com every 5 mins from US_EAST_1 and EU_WEST_1.”
  • “Record deployment for application_id 987654 with revision 9f3c2ab; include changelog and user.”
  • “List APM applications via REST; filter language=nodejs; auto-paginate across regions US then EU.”
  • “For app 987654 host 321, list metric names, then fetch CPU and memory timeslices in the last 30 minutes.”

Testing

  • Tested to 90%+ Code Coverage
  • Behavior defined in Gherkin; evaluated with AI evals testing.
  • Tool discovery and input schema validation covered. Pagination, error handling, and performance scenarios included.

Server Config

{
  "mcpServers": {
    "newrelic": {
      "command": "npx",
      "args": [
        "-y",
        "newrelic-mcp"
      ],
      "env": {
        "NEW_RELIC_API_KEY": "your-api-key-here",
        "NEW_RELIC_ACCOUNT_ID": "your-account-id"
      }
    }
  }
}
Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
CursorThe AI Code Editor
WindsurfThe new purpose-built IDE to harness magic
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
Playwright McpPlaywright MCP server
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
ChatWiseThe second fastest AI chatbot™
Tavily Mcp
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
DeepChatYour AI Partner on Desktop
Amap Maps高德地图官方 MCP Server
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Serper MCP ServerA Serper MCP Server