mcp_newrelic

mcp_newrelic

14

New Relic MCP Server is designed to query New Relic logs using NRQL, providing easy integration with Large Language Models like Claude. It features human-readable output formatting, error logging, and configurable New Relic account settings.

New Relic MCP Server

A simple 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.

Features

  • 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

Setup Instructions

Prerequisites

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

Claude Desktop Integration

Configure Claude Desktop by editing your configuration file for integration.

Usage

Example Claude Prompts

  • "Show me all transactions from the last hour"
  • "Are there any errors in our application?"
  • "What are our slowest endpoints?"

Debugging

Common Issues

  1. Authentication Errors
  • Check API key validity and permissions
  1. Query Errors
  • Verify NRQL syntax
  1. Connection Issues
  • Check network and firewall settings

Security Notes

  • Use environment variables for sensitive data

Development

Local Testing

Configure environment variables and run the server.

Troubleshooting Guide

  1. Server Not Starting
  • Check Python version and dependencies
  1. Query Not Working
  • Check logs and NRQL syntax
  1. Claude Not Connecting
  • Verify configuration and restart Claude

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Submit a pull request

License

This project is licensed under the MIT License.