LABSCO SUMMARY
A single query door into New Relic — you still write the NRQL.
This is deliberately thin: one query path, your key, your account. It suits questions you already know how to phrase in NRQL, like slowest endpoints by average duration or transactions where error is true in the last hour. It does not manage alerts, dashboards or deployments, and it will not invent the query for you beyond what the model already knows about NRQL syntax.
What it is
A small Python server that sends an NRQL query to your New Relic account through its GraphQL endpoint and returns the result as readable text.
What you get
- Any NRQL query run against your account — transactions, errors, durations, logs
- Results formatted for reading rather than handed over as raw API JSON
- The account ID taken from configuration, so the same query text works across accounts
- Errors surfaced with detail, and logged, when a query or a key is wrong
Requirements
A New Relic account, an API key and your account ID, supplied as NEW_RELIC_API_KEY and NEW_RELIC_ACCOUNT_ID. Python 3.13 or higher, installed and run with uv.
Setup effort
Build from source — git clone https://github.com/Ivlad003/mcp_newrelic.git
USE CASES
01
Checking whether the app is throwing errors right now
Query transactions where error is true over the last hour and read the result without opening the New Relic UI.
02
Finding the slow endpoint during an incident
Average duration faceted by name, ordered descending — the same NRQL you would type, answered in the conversation.
03
Pulling production numbers into a write-up
Run the query while you are drafting and paste real figures instead of switching tools to look them up.
BEFORE YOU INSTALL
What to know first
Requires
- Python 3.13+
- NEW_RELIC_API_KEY in your environment
- NEW_RELIC_ACCOUNT_ID in your environment
Where it runs
The documented client runs the server on your machine.
INSTALLATION
Connect your client
You clone this one yourself.
Server setup
TERMINAL
curl -LsSf https://astral.sh/uv/install.sh | sh
git clone https://github.com/Ivlad003/mcp_newrelic.git
cd mcp_newrelicMCP Clients
Claude Desktop
CLAUDE DESKTOP · JSON
{
"mcpServers": {
"newrelic": {
"command": "uv",
"args": [
"--directory",
"<YOUR_PATH_TO_MCP_NEWRELIC>",
"run",
"app.py"
],
"env": {
"NEW_RELIC_API_KEY": "<YOUR_NEW_RELIC_API_KEY>",
"NEW_RELIC_ACCOUNT_ID": "<YOUR_NEW_RELIC_ACCOUNT_ID>"
}
}
}
}