mcp-server-newrelic
The New Relic NerdGraph MCP Server enables Project Context Protocol clients to interact with New Relic account data using natural language and specific commands. It's built using the fastmcp framework and allows access to New Relic's querying capabilities, entity management, performance monitoring, synthetics, and alert management.
New Relic NerdGraph MCP Server
This repository provides a Model Context Protocol (MCP) server to interface with the New Relic NerdGraph API, allowing clients to interact with New Relic account data through natural language or specific commands.
Features
- Account Details: Fetch basic account information.
- Generic NerdGraph Queries: Execute NerdGraph queries.
- NRQL Queries: Run NRQL queries on account data.
- Entity Management: Search and retrieve detailed information about entities using GUIDs.
- APM: List Application Performance Monitoring applications.
- Synthetics: List Synthetic monitors and create browser monitors.
- Alerts: Manage alerts, view open incidents, and acknowledge them.
Prerequisites
- Python 3.10+
- pip: For installing dependencies.
- New Relic Account: Credentials required.
Setup & Installation
- Clone the repository.
- Install dependencies with pip.
Configuration
Set your New Relic API Key and Account ID using environment variables before running the server.
Running the Server
Start the server using fastmcp
to enable MCP connections.
Usage with MCP Clients
Connect clients like Claude Desktop to interact with your New Relic account.
Available Tools & Resources
MCP protocols for executing queries, managing entities, and handling alerts are available for use.