npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

mcp-newrelic

v1.1.1

Published

MCP server for New Relic — query data, search entities, inspect alerts, deployments and dashboards via NerdGraph

Downloads

350

Readme

mcp-newrelic

npm

Non-official MCP server for New Relic -- query data, search entities, inspect alerts, deployments and dashboards via NerdGraph.

Built on the Model Context Protocol so any MCP-compatible client (Cursor, Claude Desktop, etc.) can talk to your New Relic account through natural language.

Tools

| Tool | Description | |------|-------------| | run_nrql_query | Run an arbitrary NRQL query against an account and return raw result rows. | | search_entities | Search entities by name, type, tags, or any NerdGraph entity-search query. | | get_entity_tags | Fetch tags, metadata, and APM summary (error rate, throughput, response time) for a single entity. | | get_alert_violations | List recent alert incidents with optional filters for entity name, priority, and time range. | | get_deployments | List deployment events, optionally filtered by app name, entity GUID, or time range. | | list_dashboards | Search dashboard entities by name. | | get_dashboard | Get full dashboard detail -- pages, widgets, and their underlying NRQL queries. |

Prerequisites

Install

npm install -g mcp-newrelic

Or run directly with npx:

npx mcp-newrelic

From source

git clone https://github.com/victorcarrico/mcp-newrelic.git
cd mcp-newrelic
npm install
npm run build

Configuration

Set the following environment variables (or place them in a .env file in the project root):

| Variable | Required | Default | Description | |----------|----------|---------|-------------| | NEW_RELIC_API_KEY | Yes | -- | New Relic User API key. | | NEW_RELIC_ACCOUNT_ID | Yes | -- | Default account ID for queries. | | NEW_RELIC_REGION | No | US | Set to EU for EU-region accounts. | | PORT | No | 3000 | HTTP server port (only used with --http). |

Running

Stdio transport (typical for Cursor / Claude Desktop)

npm start
# or
NEW_RELIC_API_KEY=NRAK-... NEW_RELIC_ACCOUNT_ID=123456 node dist/index.js

HTTP transport

npm run start:http
# MCP endpoint: POST http://localhost:3000/mcp
# Health check:  GET http://localhost:3000/health

Development (watch mode)

npm run dev

Using with Cursor

Add the server to your MCP config (.cursor/mcp.json):

{
  "mcpServers": {
    "newrelic": {
      "command": "npx",
      "args": ["mcp-newrelic"],
      "env": {
        "NEW_RELIC_API_KEY": "NRAK-...",
        "NEW_RELIC_ACCOUNT_ID": "123456"
      }
    }
  }
}

Using with Claude Desktop

Add to your Claude Desktop config (claude_desktop_config.json):

{
  "mcpServers": {
    "newrelic": {
      "command": "npx",
      "args": ["mcp-newrelic"],
      "env": {
        "NEW_RELIC_API_KEY": "NRAK-...",
        "NEW_RELIC_ACCOUNT_ID": "123456"
      }
    }
  }
}

License

MIT