New Relic MCP Server

New Relic MCP Server

newrelic-mcp•bycloudbring

An MCP server that integrates with New Relic's observability platform to query metrics, manage alerts, monitor applications, and search entities through a unified interface.

License: MIT License•Runtime: Awaiting documentation review•Category: cloud devops

WHAT IT DOES

  • •Executes NRQL queries and raw NerdGraph GraphQL queries against New Relic.
  • •Lists APM applications, searches entities, and fetches entity details.
  • •Lists alert policies and open incidents, and acknowledges incidents.
  • •Manages Synthetics monitors, including creating browser monitors.

BEST FOR

  • •Investigating application performance with natural-language prompts to query New Relic data.
  • •Reviewing and acknowledging alerts and incidents.
  • •Discovering infrastructure entities and synthetic monitor status.

ABOUT NEWRELIC-MCP

New Relic MCP Server is cataloged as an MCP server attributed to cloudbring. An MCP server that integrates with New Relic's observability platform to query metrics, manage alerts, monitor applications, and search entities through a unified interface. It is categorized under cloud devops. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for New Relic MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

Upstream README

View this exact version on GitHub

README.md · dc6e4261f9af · Fetched 2026-11-13 12:50:33 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

New Relic MCP Server

smithery badge

A Model Context Protocol (MCP) server that provides seamless integration with New Relic's observability platform. Query metrics, manage alerts, monitor applications, and interact with your entire observability stack through a simple, unified interface.

Disclaimer: This is an unofficial community project and is not affiliated with, endorsed by, or supported by New Relic, Inc. All trademarks are the property of their respective owners.

Features

  • 📊 NRQL Queries - Execute powerful queries to analyze your data
  • 🚀 APM Integration - Monitor application performance and health
  • 🔔 Alert Management - View and acknowledge alerts and incidents
  • 🔍 Entity Search - Discover and inspect entities across your infrastructure
  • 📈 Synthetics Monitoring - Manage synthetic monitors and checks
  • 🔧 NerdGraph API - Direct access to New Relic's GraphQL API
  • 🌐 REST v2 Tools (2.0+) - High‑value REST endpoints for deployments, APM apps, metrics, and alerts

Installation

Quick Install with Smithery

To install or deploy via Smithery, see the official docs: Deployments, Project Configuration, and smithery.yaml Reference.

To install New Relic MCP for Claude Desktop automatically via Smithery:

npx @smithery/cli install @cloudbring/newrelic-mcp --client claude

We recommend the Smithery CLI for local development, inspection, and deployment flows. Benefits:

  • Unified dev/build/deploy workflow, client‑agnostic
  • Dev server with hot‑reload and playground (optional tunnel)
  • Build bundles for stdio or shttp transports
  • Inspect a server interactively; run with supplied config
  • Simple install per client

Examples:

# Hot‑reload dev server
npx @smithery/cli dev src/server.ts --port 8181 --no-open

# Build production bundle (shttp transport)
npx @smithery/cli build src/server.ts --out .smithery/index.cjs --transport shttp

# Inspect a published server
npx @smithery/cli inspect @cloudbring/newrelic-mcp

# Run with config (env via JSON)
npx @smithery/cli run @cloudbring/newrelic-mcp --config '{"NEW_RELIC_API_KEY":"...","NEW_RELIC_ACCOUNT_ID":"...","NEW_RELIC_REGION":"US"}'

# Install into a specific client
npx @smithery/cli install newrelic-mcp --client claude

# Open playground
npx @smithery/cli playground --port 3001

Notes:

  • This repo includes a minimal smithery.yaml with runtime: "typescript" to align with TypeScript‑first deployments.
  • See the CLI reference for all commands and flags: smithery-ai/cli.

Manual Installation

Claude Desktop

Add to your Claude Desktop configuration file:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "newrelic": {
      "command": "npx",
      "args": [
        "-y",
        "newrelic-mcp"
      ],
      "env": {
        "NEW_RELIC_API_KEY": "your-api-key-here",
        "NEW_RELIC_ACCOUNT_ID": "your-account-id",
        "NEW_RELIC_REGION": "US"
      }
    }
  }
}
Cline (VS Code)

Add to your Cline settings in VS Code:

{
  "cline.mcpServers": [
    {
      "name": "newrelic",
      "command": "npx",
      "args": ["-y", "newrelic-mcp"],
      "env": {
        "NEW_RELIC_API_KEY": "your-api-key-here",
        "NEW_RELIC_ACCOUNT_ID": "your-account-id",
        "NEW_RELIC_REGION": "US"
      }
    }
  ]
}
Zed Editor

Add to your Zed configuration file at ~/.config/zed/settings.json:

{
  "language_models": {
    "mcp": {
      "servers": {
        "newrelic": {
          "command": "npx",
          "args": ["-y", "newrelic-mcp"],
          "env": {
            "NEW_RELIC_API_KEY": "your-api-key-here",
            "NEW_RELIC_ACCOUNT_ID": "your-account-id"
          }
        }
      }
    }
  }
}
Windsurf Editor

Add to your Windsurf Cascade configuration:

{
  "mcpServers": {
    "newrelic": {
      "command": "npx",
      "args": ["-y", "newrelic-mcp"],
      "env": {
        "NEW_RELIC_API_KEY": "your-api-key-here",
        "NEW_RELIC_ACCOUNT_ID": "your-account-id",
        "NEW_RELIC_REGION": "US"
      }
    }
  }
}
Local Development
  1. Clone the repository:
git clone https://github.com/cloudbring/newrelic-mcp.git
cd newrelic-mcp
  1. Install dependencies and build:
npm install
npm run build
  1. Add to your MCP client configuration:
{
  "mcpServers": {
    "newrelic": {
      "command": "node",
      "args": ["/path/to/newrelic-mcp/dist/server.js"],
      "env": {
        "NEW_RELIC_API_KEY": "your-api-key-here",
        "NEW_RELIC_ACCOUNT_ID": "your-account-id",
        "NEW_RELIC_REGION": "US"
      }
    }
  }
}

Configuration

Required Environment Variables

  • NEW_RELIC_API_KEY - Your New Relic User API Key (required)
  • NEW_RELIC_ACCOUNT_ID - Your New Relic Account ID (optional, can be provided per tool call)
  • NEW_RELIC_REGION - New Relic data center region: US (default) or EU (optional)

Getting Your New Relic Credentials

  1. API Key:

    • Log in to New Relic
    • Navigate to API Keys in the left sidebar
    • Create a new User API Key with appropriate permissions
  2. Account ID:

    • Find your Account ID in the URL when logged into New Relic
    • Or navigate to Administration → Access management → Accounts
  3. Region:

    • Set NEW_RELIC_REGION=US for US data center (default)
    • Set NEW_RELIC_REGION=EU for EU data center
    • If not specified, defaults to US

For detailed setup instructions, see docs/new-relic-setup.md.

Usage Examples

Once configured, you can interact with New Relic through your MCP client:

Query Your Data

"Show me the average response time for my web application over the last hour"
"What are the top 10 slowest database queries today?"
"Display error rate trends for the production environment"

Monitor Applications

"List all my APM applications and their current status"
"Show me the health of my Node.js services"
"Which applications have active alerts?"

Manage Alerts

"Show me all open incidents"
"What critical alerts fired in the last 24 hours?"
"Acknowledge incident #12345"

Search Infrastructure

"Find all Redis databases in production"
"Show me entities with high CPU usage"
"List all synthetic monitors and their success rates"

Tool Reference

Below is a concise catalog of all MCP tools exposed by this server. See the docs folder for detailed stories/specs.

NerdGraph/GraphQL tools

ToolSummary
run_nrql_queryExecute NRQL queries (requires target_account_id)
run_nerdgraph_queryExecute raw NerdGraph GraphQL queries
list_apm_applicationsList APM applications via NerdGraph
search_entitiesSearch entities (name, type, tags)
get_entity_detailsFetch details for a GUID
list_alert_policiesList alert policies via NerdGraph
list_open_incidentsList open incidents via NerdGraph
acknowledge_incidentAcknowledge an incident (NerdGraph only)
list_synthetics_monitorsList Synthetics monitors
create_browser_monitorCreate a browser monitor
get_account_detailsFetch account metadata

REST v2 tools (added in v2.0)

ToolSummaryNotes
create_deploymentCreate deployment marker for an APM applicationInputs: application_id, revision; optional changelog, description, user; supports region
list_deployments_restList deployments for an appSupports page, auto_paginate, region
delete_deploymentDelete deployment markerRequires confirm: true; User API key must have admin role permissions
list_apm_applications_restList APM apps via RESTFilters: filter[name], filter[host], filter[ids], filter[language]; auto‑paginate
list_metric_names_for_hostList metric names/values for hostInputs: application_id, host_id, optional name; auto‑paginate
get_metric_data_for_hostGet timeslice metric data for hostInputs: application_id, host_id, names[]; optional values[], from, to, period, summarize; auto‑paginate
list_application_hostsList hosts for an APM appFilters: filter[hostname], filter[ids]; auto‑paginate
list_alert_policies_restList alert policies via RESTOptional filter_name; supports pagination
list_open_incidents_restList incidents via RESTServer has no only_open/priority filters; these are applied client‑side; auto‑paginate

References:

  • Detailed specs and schemas: docs/REST_ENDPOINT_TOOL.md and docs/rest-tools-stories/*

Troubleshooting

Connection Issues

If you're having trouble connecting:

  1. Verify your API key is valid:

    For US region:

    curl -X POST https://api.newrelic.com/graphql \
      -H 'Content-Type: application/json' \
      -H 'API-Key: YOUR_API_KEY' \
      -d '{"query":"{ actor { user { email } } }"}'
    

    For EU region:

    curl -X POST https://api.eu.newrelic.com/graphql \
      -H 'Content-Type: application/json' \
      -H 'API-Key: YOUR_API_KEY' \
      -d '{"query":"{ actor { user { email } } }"}'
    
  2. Check that your Account ID is correct

  3. Ensure your API key has the necessary permissions

  4. Check the MCP client logs for detailed error messages

Permission Errors

If you receive permission errors:

  1. Verify your API key has the required permissions:

    • For NRQL queries: NRQL query permission
    • For APM data: APM read permissions
    • For alerts: Alerts read/write permissions
  2. Create a new API key with broader permissions if needed

Development

Project Structure

src/
├── server.ts           # Main MCP server implementation
├── client/
│   └── newrelic-client.ts  # New Relic API client
└── tools/
    ├── nrql.ts         # NRQL query tool
    ├── apm.ts          # APM applications tool
    ├── entity.ts       # Entity management tools
    ├── alert.ts        # Alert and incident tools
    ├── synthetics.ts   # Synthetics monitoring tools
    └── nerdgraph.ts    # NerdGraph query tool

Setup Development Environment

  1. Clone the repository:
git clone https://github.com/cloudbring/newrelic-mcp.git
cd newrelic-mcp
  1. Install dependencies:
npm install
  1. Create a .env file:
NEW_RELIC_API_KEY=your-api-key-here
NEW_RELIC_ACCOUNT_ID=your-account-id
NEW_RELIC_REGION=US
  1. Build the project:
npm run build

Development Commands

# Start development server with hot reload
npm run dev

# Build for production
npm run build

# Run tests
npm test

# Run tests with coverage
npm run test:coverage

# Run linting
npm run lint

# Format code
npm run format

# Test server startup
npm run test:server

Testing

The project uses Test-Driven Development (TDD) with:

  • Vitest for unit testing
  • Gherkin for BDD testing
  • Evalite for LLM response validation
# Run all tests
npm test

# Run with coverage
npm run test:coverage

# Run BDD tests only
npm run test:bdd

# Run integration tests with real API
USE_REAL_ENV=true npm test

Debugging

Use the MCP Inspector to test and debug the server:

# Run with MCP Inspector
npm run inspect

# Run with development server
npm run inspect:dev

# Run with environment variables
npm run inspect:env

See docs/mcp-inspector-setup.md for detailed instructions.

Architecture

The server follows a modular architecture with:

  • Client Layer: Handles New Relic API communication
  • Tools Layer: Implements MCP tool specifications
  • Server Layer: Manages MCP protocol and tool routing

Each tool:

  • Has a single, focused purpose
  • Validates inputs using Zod schemas
  • Returns structured, typed responses
  • Includes comprehensive error handling

Contributing

We welcome contributions! Please see our Contributing Guidelines for details.

Development Workflow

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Write tests first (TDD approach)
  4. Implement your feature
  5. Ensure all tests pass (npm test)
  6. Maintain >90% code coverage
  7. Run linting (npm run lint)
  8. Commit your changes (commits will be auto-formatted)
  9. Push to your branch
  10. Open a Pull Request

Code Style

This project uses:

  • Biome for linting and formatting
  • TypeScript with strict mode
  • 2 spaces for indentation
  • Single quotes for strings
  • Semicolons always

Documentation

Comparisons

We researched other public New Relic MCP servers and did not find any actively maintained, feature‑complete alternatives at the time of writing. If you know of one, please open an issue to add it here.

ProjectStatusTransport(s)DeploymentsAPM AppsMetricsAlertsSyntheticsNotes
This project (newrelic-mcp)ActiveNerdGraph + REST v2Create/List/DeleteList (NerdGraph + REST)Host names + timeslices (REST)Policies + Incidents (NG + REST)List/Create (browser)Comprehensive tests and docs

Planned enhancements (based on REST v2 catalog and user demand):

  • Alerts: violations and conditions management via REST where available
  • Metrics: broader app‑level metrics endpoints (names/data) beyond per‑host
  • Additional REST coverage: labels, key transactions, mobile apps (prioritized by feedback)

Support

License

This project is licensed under the MIT License - see the LICENSE file for details.

Disclaimer

This project is not affiliated with, endorsed by, or supported by New Relic, Inc. It is an independent open-source project that uses New Relic's public APIs.

Acknowledgments


Made with ❤️ by @cloudbring using Cursor and Claude Code

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for New Relic MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/newrelic-mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related cloud devops MCP Servers

Alternative and complementary servers in the same category

View all in cloud devops →
Huawei MCP Server
mcp-server-huaweiclouddeveloper•huaweiclouddeveloper

A Model Context Protocol server built on Huawei Cloud services that enables AI assistants to operate Huawei Cloud resources within conversational workflows, supporting ECS, OBS, GaussDB, and other cloud products.

Repository stats unavailable
Cloud & DevOps
Coolify MCP Server
coolify-mcp-server•wrediam

An MCP server that exposes the Coolify v4.3.1 REST API so AI clients can manage applications, databases, services, servers, deployments, and more.

Repository stats unavailable
Cloud & DevOps

A deprecated Model Context Protocol server for interacting with Kong Konnect APIs, enabling AI assistants to query and analyze Kong Gateway configurations, traffic, and analytics.

Repository stats unavailable
Cloud & DevOps