New Relic MCP Server — Hosted Api Connectors Integration
MCP Server language Hosted language PublicQuery APM metrics, infrastructure data, run NRQL queries, manage dashboards and alerts with New Relic.
Use with AI AssistantsMCP
Connect Claude, Cursor, or any MCP-compatible client — then call tools directly
① Add This MCP Server
Paste into your AI client config — then all its tools are available instantly.
{
"mcpServers": {
"newrelic": {
"url": "https://mcp.aerostack.dev/s/aerostack/mcp-newrelic",
"headers": {
"Authorization": "Bearer YOUR_AEROSTACK_TOKEN"
}
}
}
}Replace YOUR_AEROSTACK_TOKEN with your API token from the dashboard.
② Call a Tool
Ask your AI assistant to call a specific tool, or send raw JSON-RPC:
Natural Language Prompt
“Use the _ping tool to verify new relic credentials by calling a lightweight read endpoint. used internally by aerostack to validate credentials”
Using a Workspace?
Add this MCP to your Workspace — your team shares one token, secrets are stored securely, and every AI agent in the workspace can call it without per-user setup.
description Overview
mcp-newrelic — New Relic MCP Server
Query APM metrics, run NRQL, manage dashboards, inspect alert incidents, and list infrastructure entities — all from any AI agent via the New Relic GraphQL API.
New Relic is a leading observability platform used by engineering and SRE teams worldwide to monitor applications, infrastructure, and user experience. This MCP server gives your agents full access to New Relic's NerdGraph GraphQL API: searching and inspecting entities, running arbitrary NRQL queries, using pre-built APM/infra metric shortcuts, managing dashboards, and inspecting alert policies and open incidents.
Live endpoint: https://mcp.aerostack.dev/s/aerostack/mcp-newrelic
What You Can Do
- Run any NRQL query against your New Relic account for custom monitoring, alerting threshold analysis, or data extraction
- Get response time, throughput, and error rate for any APM application without writing NRQL
- Inspect CPU and memory usage for infrastructure hosts instantly
- List open incidents and alert policies to triage production issues
- Create, list, and delete dashboards programmatically
Available Tools
| Tool | Description |
|---|---|
list_entities |
List entities by type: HOST, APPLICATION, BROWSER, MOBILE, MONITOR, DASHBOARD |
get_entity |
Get full entity details by GUID including tags and alert severity |
search_entities |
Search all entities by name substring |
get_golden_metrics |
Get golden metrics (response time, throughput, error rate) for an entity |
get_entity_tags |
Get all tags on a New Relic entity |
run_nrql |
Execute an arbitrary NRQL query against a New Relic account |
run_nrql_timeseries |
Run NRQL with TIMESERIES appended — returns time-bucketed chart data |
query_apm_metrics |
Pre-built APM query: response time + throughput for a named application |
query_error_rate |
Pre-built error rate query for a named application |
query_infrastructure |
Pre-built infra query: CPU and memory for a named host |
list_dashboards |
List all dashboards with optional name filter |
get_dashboard |
Get a dashboard by GUID including pages and widget count |
create_dashboard |
Create a new empty dashboard (PUBLIC_READ_WRITE) |
delete_dashboard |
Delete a dashboard by GUID (irreversible) |
list_alert_policies |
List alert policies for an account |
get_alert_conditions |
Get NRQL alert conditions for a specific alert policy |
list_incidents |
List open/active/closed alert incidents for an account |
get_incident_details |
Get detailed information about a specific incident |
list_accounts |
List all New Relic accounts accessible by the API key |
get_current_user |
Get the authenticated user associated with the API key |
get_account_info |
Get details for a specific account by ID |
Configuration
| Variable | Required | Description | How to Get |
|---|---|---|---|
NEW_RELIC_API_KEY |
Yes | New Relic User API Key | New Relic → Profile → API Keys → Create a key (type: User). Do not use the License key. |
The API key must be a User key, not a License (Ingest) key. User keys have read/write access to NerdGraph. License keys are for data ingestion only and will return 401.
Quick Start
Add to Aerostack Workspace
- Go to aerostack.dev → Your Project → MCPs
- Search for "New Relic" and click Add to Workspace
- Add your
NEW_RELIC_API_KEYunder Project → Secrets
Once added, every AI agent in your workspace can query New Relic observability data automatically.
Example Prompts
"Show me the response time and throughput for the checkout-service over the last hour"
"List all open alert incidents in account 1234567"
"Run a NRQL query to find the top 5 slowest database operations in the last 30 minutes"
"What's the error rate for payment-api over the past 24 hours?"
"Create a new New Relic dashboard called 'Platform Health'"
Direct API Call
# Get current user (ping / auth check)
curl -X POST https://mcp.aerostack.dev/s/aerostack/mcp-newrelic \
-H 'Content-Type: application/json' \
-H 'X-Mcp-Secret-NEW-RELIC-API-KEY: your-user-api-key' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_current_user","arguments":{}}}'
# Run a NRQL query
curl -X POST https://mcp.aerostack.dev/s/aerostack/mcp-newrelic \
-H 'Content-Type: application/json' \
-H 'X-Mcp-Secret-NEW-RELIC-API-KEY: your-user-api-key' \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"run_nrql","arguments":{"account_id":1234567,"nrql":"SELECT count(*) FROM Transaction SINCE 1 hour ago"}}}'
# Get APM metrics without writing NRQL
curl -X POST https://mcp.aerostack.dev/s/aerostack/mcp-newrelic \
-H 'Content-Type: application/json' \
-H 'X-Mcp-Secret-NEW-RELIC-API-KEY: your-user-api-key' \
-d '{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"query_apm_metrics","arguments":{"account_id":1234567,"app_name":"checkout-service","since":"30 minutes ago"}}}'
Technical Notes
- GraphQL only. New Relic has no REST API for most operations. All 21 tools POST to
https://api.newrelic.com/graphql. - Auth header is
API-Key, notAuthorization: Bearer. This is a New Relic-specific convention. - NRQL is New Relic Query Language — similar to SQL. See NRQL docs.
- Entity GUIDs are base64-encoded strings like
MTIzNDU2N3xBUE18QVBQTElDQVRJT058MTIzNDU2Nzg5. Uselist_entitiesorsearch_entitiesto discover them. - Account IDs are integers, visible in your New Relic URL or via
list_accounts.
License
MIT
terminal Tools (22)
Available tools on this MCP server. Each tool can be called directly from any AI agent.
_ping #1 Verify New Relic credentials by calling a lightweight read endpoint. Used internally by Aerostack to validate credentials.
list_entities #2 List New Relic entities by type (HOST, APPLICATION, BROWSER, MOBILE, MONITOR, DASHBOARD). Returns guid, name, accountId, entityType, alertSeverity.
get_entity #3 Get full details of a New Relic entity by GUID including name, accountId, entityType, alertSeverity, and tags.
search_entities #4 Search New Relic entities by name across all entity types. Returns matching entities with guid, name, accountId, entityType.
get_golden_metrics #5 Get golden metrics (response time, throughput, error rate) for a specific entity GUID. Returns the metric queries, titles, and units.
get_entity_tags #6 Get all tags on a New Relic entity by GUID. Returns key-value pairs used for filtering and grouping.
run_nrql #7 Execute an arbitrary NRQL query against a New Relic account. Use for custom data exploration, alerting thresholds, or ad-hoc analysis.
run_nrql_timeseries #8 Run an NRQL query with TIMESERIES appended automatically. Returns time-bucketed results suitable for charting.
query_apm_metrics #9 Pre-built APM query: returns response time and throughput for a named application. Simpler than writing NRQL directly.
query_error_rate #10 Pre-built error rate query for a named application or service. Returns percentage of transactions with errors.
query_infrastructure #11 Pre-built infrastructure query: returns CPU and memory usage for a named host. Uses SystemSample event type.
list_dashboards #12 List all New Relic dashboards accessible by the API key. Returns guid, name, accountId, and entityType.
get_dashboard #13 Get a New Relic dashboard by GUID including page count and widget count.
create_dashboard #14 Create a new empty New Relic dashboard with PUBLIC_READ_WRITE permissions.
delete_dashboard #15 Delete a New Relic dashboard by GUID. This is irreversible.
list_alert_policies #16 List alert policies for a New Relic account. Returns id, name, and incidentPreference for each policy.
get_alert_conditions #17 Get NRQL alert conditions for a specific alert policy. Returns condition id, name, enabled status, and NRQL query.
list_incidents #18 List open/active alert incidents for a New Relic account. Returns incident id, state, and timestamps.
get_incident_details #19 Get detailed information about a specific New Relic alert incident by incident ID.
list_accounts #20 List all New Relic accounts accessible by the API key. Returns id and name for each account.
get_current_user #21 Get the authenticated New Relic user associated with the API key. Returns name, email, and user ID.
get_account_info #22 Get details for a specific New Relic account by account ID.
Details
language Live Endpoint
https://mcp.aerostack.dev/s/aerostack/mcp-newrelic
Sub-50ms globally · Zero cold start
Publisher
Pre-built functions for the most common MCP tool patterns. Clone, extend, and deploy.
More in API Connectors
Browse API Connectors MCPs →Aerostack Registry
by @aerostack
Discover and invoke any MCP, Function, or Skill published to the Aerostack marketplace — the universal AI capability hub.
Algolia
by @aerostack
Search indexes, manage records, browse data, and configure ranking in Algolia — AI-native instant search access.
Arangodb
by @aerostack
Query documents, run AQL, traverse graphs, and manage collections in your ArangoDB database — AI-native multi-model database access.
Ayrshare
by @aerostack
Post, schedule, and analyze social media across 13 platforms — Facebook, Instagram, X, LinkedIn, TikTok, Bluesky, Threads, Reddit, Pinterest, YouTube, Telegram, Snapchat, Google Business.
Basecamp
by @aerostack
Manage projects, to-dos, messages, schedules, and campfire chats in Basecamp — AI-native project management.
Bigquery
by @aerostack
Run SQL queries, list datasets and tables, inspect schemas, and export results from Google BigQuery — AI-native data warehouse access.
Frequently asked questions
What is the New Relic MCP server and what can it do? +
The New Relic MCP server is hosted on Aerostack and exposes these tools to your AI agent: `_ping`, `list_entities`, `get_entity`, `search_entities`, `get_golden_metrics`. You get one hosted URL — no self-hosting — that works from Claude, Cursor, ChatGPT, Gemini, VS Code, or any MCP-compatible client, and you can share it with your team or combine it with other MCP servers in a workspace.
Is the New Relic MCP server hosted, or do I have to run it myself? +
It's hosted on Aerostack's edge infrastructure — you don't deploy or maintain anything. Add it to a workspace and you get one authenticated URL, with secrets encrypted, that any AI agent or editor can connect to. Use it solo or share the same URL across your whole team.
Which AI agents and editors can use the New Relic MCP server? +
Any MCP client: Claude and Claude Code, Cursor, ChatGPT, Gemini, Windsurf, Cline, VS Code, and custom agents. Because it's one hosted URL, the same New Relic MCP server works everywhere — and you can compose it with other MCP servers, skills, and functions behind a single workspace URL.
How do I install the New Relic MCP server in Claude Desktop? +
Add the following to your Claude Desktop config (`claude_desktop_config.json`): ```json { "mcpServers": { "@aerostack/mcp-newrelic": { "command": "npx", "args": ["-y", "@aerostack/@aerostack/mcp-newrelic"] } } } ``` Then restart Claude Desktop and the tools will appear automatically.
How do I use the New Relic MCP server in Cursor? +
In Cursor, open **Settings → MCP** and add: ```json { "name": "@aerostack/mcp-newrelic", "command": "npx", "args": ["-y", "@aerostack/@aerostack/mcp-newrelic"] } ``` Save and reload Cursor. The MCP tools will be available in Agent mode.
Does New Relic MCP require authentication? +
Yes. New Relic requires authentication. Check the MCP's documentation for the required credentials.