New Relic MCP server for AI agents

Live

API KEY

OBSERVABILITY

Monitoring

New Relic gives your agent observability data in your New Relic account: run NRQL queries, search entities, review alert issues, policies, and conditions, read dashboards and deployments, and record changes.

  • Per-user credentials: each call uses the actual user's API key, never a shared bot.
  • Encrypted per-tenant vault: AES-256, resolved at request time, never in LLM context.
  • Scoped before every call: pre-call scope check, 90-day SIEM-exportable audit chain.
New Relic
agent · Acme Q3
Run
What was the p95 response time for checkout over the last hour?
S
newrelic_nrql_query
1210ms
Observability agent
Ran the NRQL query and returned the p95 response time for the checkout service over the last hour.
Sources: New Relic NRQL, 1 account
newrelic
1 query
18:29
Message Claude...

Tools your observability agent reaches for on New Relic, scoped per user.

CALL ANY TOOL
29 tools for observability in New Relic: run NRQL queries, search entities, manage alert policies and conditions, acknowledge and resolve issues, and record deployments.
newrelic_accounts_list
List accounts
List the New Relic accounts the API key's user can access, plus that user's own profile. Returns each account's numeric id and name, and the current user's id, name and email. Use this first to find the account_id that the NRQL, alert, dashboard and synthetics tools need. NerdGraph answers HTTP 200 even when the operation fails, so check the errors array in the response.
Parameters
Name
Type
Required
Description
—
No parameters required
newrelic_alert_condition_delete
Delete alert condition
newrelic_alert_issue_acknowledge
Alert issue acknowledge
newrelic_alert_issue_resolve
Resolve alert issue
newrelic_alert_issues_list
List alert issues
newrelic_alert_nrql_condition_get
Get alert nrql condition
newrelic_alert_nrql_condition_static_create
Create alert nrql condition static
newrelic_alert_nrql_condition_static_update
Update alert nrql condition static
newrelic_alert_nrql_conditions_list
List alert nrql conditions
newrelic_alert_policies_list
List alert policies
newrelic_alert_policy_create
Create alert policy
newrelic_alert_policy_delete
Delete alert policy
newrelic_alert_policy_get
Get alert policy
newrelic_alert_policy_update
Update alert policy
newrelic_change_event_create
Create change event
newrelic_dashboard_create
Create dashboard
newrelic_dashboard_get
Get dashboard
newrelic_dashboards_list
List dashboards
newrelic_deployment_create
Create deployment
newrelic_deployments_list
List deployments
newrelic_entities_search
Search entities
newrelic_entity_get
Get entity
newrelic_entity_tags_add
Add entity tags
newrelic_entity_tags_delete
Delete entity tags
newrelic_nrql_query
Query nrql
newrelic_synthetic_monitor_delete
Delete synthetic monitor
newrelic_synthetic_monitor_simple_create
Create synthetic monitor simple
newrelic_synthetic_monitor_simple_update
Update synthetic monitor simple
newrelic_synthetic_monitors_list
List synthetic monitors
Build your Agent
Same auth pattern across LangChain, OpenAI, Anthropic, and Google ADK.
Python · LlamaIndex
import { ScalekitClient } from "@scalekit-sdk/node";
import { createReactAgent } from "@langchain/langgraph/prebuilt";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

// New Relic tools scoped to this user
const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["newrelic"], toolNames: [
    "newrelic_nrql_query",
    "newrelic_alert_issues_list",
    "newrelic_deployments_list"] },
  pageSize: 100,
});

const agent = createReactAgent({ llm, tools });
await agent.invoke({ messages: [{ role: "user", content: "Show open critical alert issues, run a NRQL query for checkout errors, and list recent deployments on the checkout service" }] });
import OpenAI from "openai";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const openai = new OpenAI();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["newrelic"] }, pageSize: 100,
});

const res = await openai.chat.completions.create({
  model: "gpt-5",
  messages: [{ role: "user", content: "Show open critical alert issues, run a NRQL query for checkout errors, and list recent deployments on the checkout service" }],
  tools,
});

// Execute the tool call with the user's vaulted New Relic API key
await sk.tools.executeTool(res.choices[0].message.tool_calls[0], "user_123");
import Anthropic from "@anthropic-ai/sdk";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const anthropic = new Anthropic();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["newrelic"] }, pageSize: 100,
});

const msg = await anthropic.messages.create({
  model: "claude-sonnet-5",
  max_tokens: 1024,
  messages: [{ role: "user", content: "Show open critical alert issues, run a NRQL query for checkout errors, and list recent deployments on the checkout service" }],
  tools,
});

// Tool call runs with the user's vaulted New Relic API key
await sk.tools.executeTool(msg.content, "user_123");
import { Agent } from "@google/adk/agents";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["newrelic"] }, pageSize: 100,
});

const agent = new Agent({
  name: "observability_agent",
  model: "gemini-2.5-pro",
  instruction: "New Relic tools scoped to this user",
  tools,
});

await agent.run("Show open critical alert issues, run a NRQL query for checkout errors, and list recent deployments on the checkout service");
Try these prompts
Copy any prompt into your agent. Each maps directly to a New Relic tool. Click to copy, paste into your agent, done.
Query and explore
Copy the prompt
Copied
Run a NRQL query for error rate by service over the last hour.
Copy the prompt
Copied
Find the entity for the checkout service.
Copy the prompt
Copied
List my dashboards with checkout in the name.
Alerts
Copy the prompt
Copied
List open alert issues with critical priority.
Copy the prompt
Copied
Acknowledge this alert issue.
Copy the prompt
Copied
Show the NRQL conditions in my production alert policy.
Deployments and monitors
Copy the prompt
Copied
List the deployments recorded on the checkout service.
Copy the prompt
Copied
Record a deployment marker for version 2.4.1.
Copy the prompt
Copied
List my synthetic monitors.
SEE HOW AUTH WORKS
Each user connects their own New Relic API key once, and Scalekit sends it with every call. Keys stay vaulted, every call is scope checked, and every action is logged.
1
Authorize
Your user connects
New Relic
once. We tie it to their identity and the access they approved, with no shared bot account and no org-wide access
Who:
user ‘A’
when:
Once per user
access:
Limited to user
2
Store
Their
New Relic
credential lives in a vault scoped to them. User A's data is never reachable by an agent acting for user B, even on the same connection
vault:
encrypted
scope:
per-user
tenants:
isolated
3
Resolve
When your agent calls a
New Relic
tool, we fetch the right credential server-side. It never touches your agent, never appears in the LLM context, never shows up in your logs
speed:
~40ms
check:
before every call
seen by:
nobody
4
Audit
Every
New Relic
tool call is logged: who triggered it, which tool ran, what came back. 90 days of history, tied to the user who authorized it
history:
90 days
export:
SIEM-ready
logged:
every call
Test other agents
See the same per-user auth pattern across other monitoring connectors.
Engineering Teams
DevOps assistant agent
Polls GitHub for failing checks and stale PRs, opens Linear issues for the ones that need work, and posts a daily digest to Slack. It acts as the engineer, not a shared service account.
Test other agents
See the same per-user auth pattern across other monitoring connectors.
ENGINEERING
DevOps assistant agent
Poll GitHub for failing checks and stale pull requests, open Linear issues for the ones that need work, and digest to Slack.
Why Scalekit
Secure your agent's access. Connectors ship in minutes
01.
Shared tokens break per-user analytics
A shared New Relic API key looks fine in a demo. In production every alert change looks like one service account, and you cannot tell which user triggered it. Scalekit resolves the credential of the actual user who triggered the agent, never a shared bot.
// shared key
audit → bot_service_account

// scalekit
audit → user_abc ✓
02.
Authentication is not authorization
03.
Multi-tenancy is architectural
04.
New Relic today. Ten connectors tomorrow.
“Our agents act across Salesforce, Gong, Google Drive, and more, on behalf of every customer. Scalekit behind the scenes meant we can keep adding tools without ever rebuilding how credentials or tool calling work.”
Venu Madhav Kattagoni
Head of Engineering / Von
FAQs
Frequently Asked Questions
Does the agent access New Relic as the user or through a shared key?
As the user. Each user connects their own New Relic API key once, and Scalekit sends it with every call. Audit logs attribute every query and alert change to that user, not a shared service account.
Where is the New Relic API key stored?
In Scalekit's managed AES-256 token vault, namespaced per tenant. To rotate it, the user reconnects with a new API key. Revocation is a single dashboard action. Credentials never appear in prompts, logs, or LLM context.
Can I limit what the agent does in New Relic?
Yes. Filter by tool name in listScopedTools to expose only what you want, for example the query, search, and list tools without newrelic_alert_policy_delete, which deletes a policy and every condition in it, or newrelic_synthetic_monitor_delete. Neither deletion can be undone. Scalekit also enforces scope checks before every API call.
What happens when a user revokes New Relic access?
The connection is invalidated on the next tool call. Subsequent requests for that user fail closed with a clear error. Other users in the tenant remain unaffected. The event is logged for audit.
How does the agent work with alert issues?
newrelic_alert_issues_list lists issues in an account and filters them by state and priority. newrelic_alert_issue_acknowledge marks an open issue as handled, and newrelic_alert_issue_resolve closes it. Policies and NRQL conditions have their own get, list, create, and update tools.
Start in your coding agent
Up and running in one command
Install the Scalekit skill in your editor of choice. Connector, auth, tools, prompt, all wired up
Claude Code REPL
/plugin marketplace add scalekit-inc/claude-code-authstack
/plugin install agentkit@scalekit-auth-stack
Cursor Code REPL
# ~/.cursor/mcp.json
{
""mcpServers"": {
""newrelic"": {
""url"": ""https://mcp.scalekit.com/newrelic"",
""headers"": { ""Authorization"": ""Bearer $SCALEKIT_TOKEN"" }
}
}
}
Codex Code REPL
# ~/.codex/config.toml
[mcp_servers.newrelic]
url = ""https://mcp.scalekit.com/newrelic""
auth_env = ""SCALEKIT_TOKEN""
Copilot Code REPL
# .vscode/mcp.json
{
""servers"": {
""newrelic"": {
""url"": ""https://mcp.scalekit.com/newrelic"",
""type"": ""http""
}
}
}