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

nr-mcp-server

v1.0.1

Published

New Relic MCP server for AI assistants - Monitor applications, infrastructure, and run NRQL queries

Downloads

6

Readme

New Relic MCP Server

A Model Context Protocol (MCP) server that integrates New Relic observability data with AI assistants like GitHub Copilot in VS Code.

Features

  • Query Applications: Get list of monitored applications
  • Application Metrics: Retrieve performance metrics for specific applications
  • Alerts & Incidents: Monitor alerts and incident status
  • NRQL Queries: Execute custom NRQL queries for advanced analysis
  • Infrastructure Monitoring: Get host and infrastructure metrics
  • Synthetics: Monitor synthetic test results

Installation

\\ash npm install -g nr-mcp-server \\

Quick Start

  1. Get your New Relic credentials:

    • API Key: Go to New Relic API Keys Create User API Key
    • Account ID: Found in your New Relic account settings
  2. Configure VS Code MCP (%APPDATA%\Code\User\globalStorage\github.copilot-chat\mcp.json): \\json { "mcpServers": { "newrelic": { "command": "nr-mcp-server", "env": { "NEW_RELIC_API_KEY": "your_api_key", "NEW_RELIC_ACCOUNT_ID": "your_account_id" } } } } \\

  3. Restart VS Code and start using New Relic data in GitHub Copilot!

Usage Examples

Get Applications

\
@newrelic get applications \\

Query Application Metrics

\
@newrelic get metrics for application "MyApp" since 1 hour ago \\

Execute NRQL Queries

\
@newrelic run NRQL: SELECT count(*) FROM TransactionError SINCE 3 days ago \\

Get Alerts

\
@newrelic get alerts with status "open" \\

Available Tools

| Tool | Description | Parameters | |------|-------------|------------| | \get_applications\ | List all monitored applications | None | | \get_application_metrics\ | Get metrics for a specific application | \pplicationId, \metricNames?, \ rom?, \ o?\ | | \get_alerts\ | Get alerts and incidents | \status?\ (open/closed/all) | |
un_nrql_query\ | Execute custom NRQL queries | \query, \ imeout?\ | | \get_infrastructure_hosts\ | Get infrastructure host metrics | \ ilter?\ | | \get_synthetics_monitors\ | Get synthetic monitor results | None |

Example NRQL Queries

Transaction Errors Analysis

\\sql SELECT count(*) FROM TransactionError SINCE 3 days ago FACET \error.class\ LIMIT 10 \\

Application Performance

\\sql SELECT average(duration), count(*) FROM Transaction WHERE appName = 'MyApp' SINCE 1 hour ago \\

Infrastructure Health

\\sql SELECT latest(cpuPercent), latest(memoryUsedPercent) FROM SystemSample FACET hostname LIMIT 100 \\

Troubleshooting

Common Issues

  1. SSL Certificate Issues: The server includes SSL certificate bypass for corporate environments
  2. MCP Integration Fails: Ensure VS Code is reloaded after updating MCP configuration
  3. API Key Invalid: Verify your API key has the correct permissions

License

MIT License - see LICENSE file for details.

Support

For issues and questions, please check: