New Relic NerdGraph MCP Server

by ulucaydin

3 380 downloads Not rated yet

About

A Model Context Protocol (MCP) server that lets MCP clients like Claude Desktop interact with the New Relic NerdGraph API using natural language or commands. It is built with the fastmcp framework and is for anyone managing New Relic data and features.

Explore

This MCP server exposes various New Relic capabilities as tools and resources, including:

Account Details: Fetch basic information about the configured account.
Generic NerdGraph Queries: Execute arbitrary NerdGraph queries.
NRQL Queries: Run specific NRQL queries against your account data.
Entity Management: Search for entities (Applications, Hosts, Monitors, etc.) and retrieve detailed information by GUID.
APM: List Application Performance Monitoring (APM) applications.
Synthetics: List Synthetic monitors and create simple browser monitors.

  • Alerts: List alert policies, view open incidents, and acknowledge incidents.

Prerequisites

Python: Python 3.10+ recommended (as required by fastmcp).
pip: Python package installer.
New Relic Account: Access to a New Relic account.
New Relic User API Key: A User API key is required for authentication. You can generate one here. Keep this key secure!

  • New Relic Account ID: Your New Relic Account ID is needed for most operations. You can find it in the New Relic UI (often in the URL or account settings).


Setup & Installation

1. Clone the Repository:

    git clone <repository_url> # Replace <repository_url> with the actual URL
cd mcp-server-newrelic

2. Install Dependencies:

    pip install -r requirements.txt

This will install fastmcp, requests, and their dependencies.

Configuration

The server requires your New Relic API Key and Account ID to function. Configure these using environment variables before running the server:

```bash

The server provides the following functions accessible via the Model Context Protocol:

---

License: MIT <!-- Add license if applicable -->

This repository provides a Model Context Protocol (MCP) server for interacting with the New Relic NerdGraph API. It allows MCP clients (like Claude Desktop) to use natural language or specific commands to query and interact with your New Relic account data and features.

Built using the fastmcp framework.

Features

This MCP server exposes various New Relic capabilities as tools and resources, including:

Account Details: Fetch basic information about the configured account.
Generic NerdGraph Queries: Execute arbitrary NerdGraph queries.
NRQL Queries: Run specific NRQL queries against your account data.
Entity Management: Search for entities (Applications, Hosts, Monitors, etc.) and retrieve detailed information by GUID.
APM: List Application Performance Monitoring (APM) applications.
Synthetics: List Synthetic monitors and create simple browser monitors.
Alerts: List alert policies, view open incidents, and acknowledge incidents.

Prerequisites

Python: Python 3.10+ recommended (as required by fastmcp).
pip: Python package installer.
New Relic Account: Access to a New Relic account.
New Relic User API Key: A User API key is required for authentication. You can generate one here. Keep this key secure!
New Relic Account ID: Your New Relic Account ID is needed for most operations. You can find it in the New Relic UI (often in the URL or account settings).

Setup & Installation

1. Clone the Repository:

    git clone <repository_url> # Replace <repository_url> with the actual URL
cd mcp-server-newrelic

2. Install Dependencies:

    pip install -r requirements.txt

This will install fastmcp, requests, and their dependencies.

Configuration

The server requires your New Relic API Key and Account ID to function. Configure these using environment variables before running the server:

```bash

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.