New Relic

v1.0.0Monitoring & Observabilitystable

New Relic MCP Server - Model Context Protocol integration for New Relic monitoring, dashboards, and NRQL queries

mcp-newrelicmcpai-integration
Share:
8
Stars
0
Downloads
0
Weekly
0/5

What is New Relic?

New Relic is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to new relic mcp server - model context protocol integration for new relic monitoring, dashboards, and nrql queries

New Relic MCP Server - Model Context Protocol integration for New Relic monitoring, dashboards, and NRQL queries

This server falls under the Monitoring & Observability category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • New Relic MCP Server - Model Context Protocol integration fo

Use Cases

Query New Relic monitoring data and dashboards via NRQL.
Analyze application performance and errors.
thrashy

Maintainer

LicenseMIT
Languagepython
Versionv1.0.0
UpdatedApr 9, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx mcp-newrelic

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use New Relic

New Relic MCP Server is a Python-based server that integrates New Relic's monitoring platform with Claude via the Model Context Protocol. It exposes tools for running NRQL queries, managing dashboards and widgets, searching entities, configuring alerts and notification workflows, and listing synthetic monitors — giving you a natural-language interface to your observability data.

Prerequisites

  • Python 3.11 or higher installed
  • uv package manager (recommended) or pip
  • A New Relic account with a user API key (format: NRAK-* or NRAA-*)
  • New Relic account ID (visible in the New Relic URL after logging in)
  • Claude Desktop or Claude Code installed
1

Clone the repository

Clone the mcp-newrelic repository from GitHub. The server is not currently published to PyPI so cloning is required.

git clone https://github.com/thrashy/mcp-newrelic.git
cd mcp-newrelic
2

Install dependencies with uv

Use uv sync to create a virtual environment and install all dependencies in one step. Alternatively use pip install -e . if you prefer pip.

uv sync
# Or with pip:
pip install -e .
3

Set required environment variables

Export your New Relic credentials as environment variables. NEW_RELIC_API_KEY must be a user key (not an ingest/license key). NEW_RELIC_REGION defaults to US if not set.

export NEW_RELIC_API_KEY="NRAK-xxxxxxxxxxxxxxxxxxxx"
export NEW_RELIC_ACCOUNT_ID="1234567"
export NEW_RELIC_REGION="US"   # or EU
4

Add the server to Claude Desktop configuration

Edit your Claude Desktop config to add the New Relic server. Use uv run to launch it inside the project's virtual environment so all dependencies are available.

{
  "mcpServers": {
    "newrelic": {
      "command": "uv",
      "args": ["--directory", "/path/to/mcp-newrelic", "run", "mcp-newrelic"],
      "env": {
        "NEW_RELIC_API_KEY": "NRAK-xxxxxxxxxxxxxxxxxxxx",
        "NEW_RELIC_ACCOUNT_ID": "1234567",
        "NEW_RELIC_REGION": "US"
      }
    }
  }
}
5

Verify by running a test NRQL query

Once Claude Desktop is restarted, ask Claude to run a simple NRQL query to confirm the server is connected and credentials are valid.

New Relic Examples

Client configuration

claude_desktop_config.json entry for the New Relic MCP server using uv to manage the Python environment.

{
  "mcpServers": {
    "newrelic": {
      "command": "uv",
      "args": ["--directory", "/Users/yourname/mcp-newrelic", "run", "mcp-newrelic"],
      "env": {
        "NEW_RELIC_API_KEY": "NRAK-YOURKEYHEREXXXXXXXXXXXXXXXX",
        "NEW_RELIC_ACCOUNT_ID": "1234567",
        "NEW_RELIC_REGION": "US"
      }
    }
  }
}

Prompts to try

Example natural-language prompts for querying and managing New Relic through Claude.

- "Run a NRQL query: SELECT average(duration) FROM Transaction SINCE 1 hour ago"
- "Show me the current open incidents in New Relic"
- "List all alert policies in my account"
- "Search for entities named 'checkout-service'"
- "Create a dashboard called 'API Performance' with an error rate widget"
- "List all synthetic monitors and their statuses"

Troubleshooting New Relic

Authentication error: 'Invalid API key'

Ensure you are using a New Relic User API key (starts with NRAK- or NRAA-), not an ingest/license key. Generate one at https://one.newrelic.com/api-keys under User Keys.

NRQL queries return no data or account not found

Verify NEW_RELIC_ACCOUNT_ID is the numeric ID visible in the URL when you log into New Relic (e.g. https://one.newrelic.com/accounts/1234567). Check that NEW_RELIC_REGION matches your account (US vs EU).

uv run fails with 'no such command'

Install uv with curl -LsSf https://astral.sh/uv/install.sh | sh and ensure ~/.cargo/bin or ~/.local/bin is in your PATH. Alternatively fall back to pip install -e . and use python -m mcp_newrelic as the command.

Frequently Asked Questions about New Relic

What is New Relic?

New Relic is a Model Context Protocol (MCP) server that new relic mcp server - model context protocol integration for new relic monitoring, dashboards, and nrql queries It connects AI assistants to external tools and data sources through a standardized interface.

How do I install New Relic?

Follow the installation instructions on the New Relic GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with New Relic?

New Relic works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is New Relic free to use?

Yes, New Relic is open source and available under the MIT license. You can use it freely in both personal and commercial projects.

Browse More Monitoring & Observability MCP Servers

Explore all monitoring & observability servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "mcp-newrelic": { "command": "npx", "args": ["-y", "mcp-newrelic"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use New Relic?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides