New Relic
About
Bridges New Relic's log querying capabilities with a Python-based server, enabling execution of NRQL queries for performance monitoring and log analysis.
Details
- Author
- ivlad003
- Repository
- Ivlad003/mcp_newrelic
- GitHub stars
- 7
- Categories
- Cloud Service, Infrastructure, Other, Database, Productivity, Developer Tools, Design, AI, Search, Project Management
- Tags
- #analytics, #web
Jump to
- 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
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
New RelicCommand (node, npx, python, etc.)uvArguments-
Argument 1
--directory -
Argument 2
/absolute/path/to/newrelic-mcp -
Argument 3
run -
Argument 4
app.py
Environment-
NEW_RELIC_API_KEY
your-api-key-here -
NEW_RELIC_ACCOUNT_ID
your-account-id-here
Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
-
Argument 1
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
1. Install uv package manager:
uv venv
source .venv/bin/activate # On Unix/macOS
.venv\Scripts\activate # On Windows
uv pip install "mcp[cli]" httpx
3. Create server file newrelic_logs_server.py with the provided code.
4. Configure your environment variables:
```bash
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"new relic": {
"env": {
"NEW_RELIC_API_KEY": "your-api-key-here",
"NEW_RELIC_ACCOUNT_ID": "your-account-id-here"
},
"args": [
"--directory",
"/absolute/path/to/newrelic-mcp",
"run",
"app.py"
],
"command": "uv"
}
}
}
Linux
{
"env": {
"NEW_RELIC_API_KEY": "your-api-key-here",
"NEW_RELIC_ACCOUNT_ID": "your-account-id-here"
},
"args": [
"--directory",
"/absolute/path/to/newrelic-mcp",
"run",
"app.py"
],
"command": "uv"
}
Macos
{
"env": {
"NEW_RELIC_API_KEY": "your-api-key-here",
"NEW_RELIC_ACCOUNT_ID": "your-account-id-here"
},
"args": [
"--directory",
"/absolute/path/to/newrelic-mcp",
"run",
"app.py"
],
"command": "uv"
}
Windows
{
"env": {
"NEW_RELIC_API_KEY": "your-api-key-here",
"NEW_RELIC_ACCOUNT_ID": "your-account-id-here"
},
"args": [
"--directory",
"/absolute/path/to/newrelic-mcp",
"run",
"app.py"
],
"command": "uv"
}
New Relic 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 interact with your New Relic data.
> Claude Code users: Also available as an installable plugin with slash commands, skills, and an investigation agent — no MCP server needed.
> Install with: /plugin marketplace add Ivlad003/plugins then /plugin install newrelic-observability@ivlad-plugins
> See Ivlad003/plugins for details.
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
Installation Steps
1. Install uv package manager:
```bash
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.




