MCP Newrelic MCP Server

A Model Context Protocol (MCP) server for querying New Relic logs using NRQL queries. This server enables Large Language Models (LLMs) like Claude to

Local serverstdioPython

What is the MCP Newrelic MCP server?

MCP Newrelic MCP server is a locally run integration for AI assistants that speak the Model Context Protocol. A Model Context Protocol (MCP) server for querying New Relic logs using NRQL queries. This server enables Large Language Models (LLMs) like Claude to interact with your New Relic data.

What you get

  • Query New Relic logs and metrics using NRQL
  • Detailed error logging
  • Easy integration with Claude Desktop
  • Human-readable output formatting
  • Configurable New Relic account ID

What the assistant can call

Once MCP Newrelic is connected, these are the calls the assistant has available:

  • Prerequisites — The Prerequisites tool exposed by this server

Setting it up

@modelcontextprotocol/inspector on npm is all you need. Most clients run it directly, so configuration is a few lines and a restart.

Configuration and credentials

You will need 2 environment variables: NEW_RELIC_API_KEY, NEW_RELIC_ACCOUNT_ID. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.

  • Python 3.10 or higher - New Relic account and API key - Claude Desktop application

Choosing this one

Among the monitoring and observability options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. MCP Newrelic's toolset — Prerequisites — is a fair guide to whether it matches your workflow. It is maintained by Ivlad003; worth a glance at recent repository activity before you build anything load-bearing on it.

SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.

Before you rely on it

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the mcp newrelic mcp server does with a few real requests.

Available tools

ToolWhat it does
PrerequisitesThe Prerequisites tool exposed by this server.

How to install the MCP Newrelic MCP server

{
  "mcpServers": {
    "newrelic": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/inspector"],
      "env": {
        "NEW_RELIC_API_KEY": "your-value",
        "NEW_RELIC_ACCOUNT_ID": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

  • Python 3.10 or higher - New Relic account and API key - Claude Desktop application
VariableDescriptionRequired
NEW_RELIC_API_KEYCredential the server authenticates with.Yes
NEW_RELIC_ACCOUNT_IDConfiguration value read at startup.Optional

Example prompts to try

  • Use MCP Newrelic to Prerequisites.

Frequently asked questions

It connects MCP Newrelic to MCP-compatible AI assistants such as Claude and Cursor, exposing 1 tool (Prerequisites) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with MCP Newrelic directly.