> Documentation index: https://metorial.com/llms.txt. Every page is available as Markdown by adding .md to its URL.

# Set up New Relic in Metorial for Claude, ChatGPT and Cursor
URL: https://metorial.com/docs/integrations/new-relic
Last updated: 2026-11-24

Share New Relic with your team in Claude, ChatGPT and Cursor through Metorial: user API key sign-in, 10 tools (3 read-only).

---

To give your team New Relic in Claude, ChatGPT, Cursor and other AI clients, an admin shares the New Relic integration in a Metorial portal, and each person connects with a user API key. Agents can query telemetry data using NRQL across metrics, events, logs, and traces. The integration has 10 tools, 3 read-only, 2 write and 5 destructive, plus 2 triggers.

**What you will learn**

- How an admin shares New Relic in a portal and how each person connects
- What New Relic asks for when you connect, and where to find it
- How to keep the 3 read-only tools and reject the other 7

**Before you start**

- A [portal](https://metorial.com/docs/platform/workforce/portals) with at least one access group
- A user API key from New Relic for each person, or one for a shared connection
- For the CLI steps: the [Metorial CLI](https://metorial.com/docs/platform/cli), signed in to your portal

## Sign-in method

| Method | Type | What a person provides |
| --- | --- | --- |
| **User API Key** | API token | `userApiKey` and `licenseKey` |

### User API Key

To connect, a person enters these values:

- `userApiKey`: New Relic User API Key (also called Personal API Key). Required for querying data and managing resources.
- `licenseKey` (optional): New Relic License Key (Ingest Key). Required only if you need to ingest metrics, events, logs, or traces.

### Setup settings

Setup also asks for:

- `region` (optional): New Relic data center region. US or EU. One of "us", "eu".
- `accountId`: New Relic Account ID. Required for most operations.

## Admin: share New Relic in a portal

### In the dashboard

1. **Open Shared Resources**

   Open **Workforce**, choose the portal, and select **Shared Resources** under **Access**.

2. **Share a new integration**

   Select **Share a Resource**, then **New Integration**, and choose New Relic. For how members connect, choose **Each person connects** so everyone enters their own user API key, or **Shared connection** to enter one user API key for everyone.

3. **Limit the tools**

   Under **Tool Filters**, set the write and destructive groups to **Reject** if agents should only read from New Relic.

4. **Choose who gets it**

   Add the access groups that should see New Relic. When a person asks for access from the portal, the request appears under **Access Requests**.

### With the CLI

The CLI cannot create the per-user New Relic integration. Once it exists, check which groups have it:

```bash
metorial-admin portals access list <portal-id> --type provider_template --search "new relic"
```

## Employee: connect New Relic

### In the portal

1. **Open New Relic in the catalog**

   Sign in to your portal and open New Relic. The status reads **Available**.

2. **Authenticate**

   Under **Quick setup**, select **Authenticate**. In the setup window, enter your user API key (userApiKey).

3. **Confirm**

   The status changes to **Configured**. If it later reads **Needs reconnect**, select **Reconnect** and sign in again.

### With the CLI

```bash
metorial catalog search "new relic"
metorial setup <catalog-item-id>
```

`catalog search` prints the catalog item ID. 

### Add it to your AI client

`metorial install` adds your New Relic connection to a local MCP client such as Claude Code, Cursor or Codex. `metorial list` prints the integration ID and `metorial client list` the client identifiers.

```bash
metorial list "new relic"
metorial client list
metorial install <client-identifier> <integration-id>
```

For a client that takes a server URL, such as ChatGPT, `metorial install custom <integration-id>` creates an installation token and shows the endpoint details.

## Make it read-only

Open the integration's **Tool Filters** and set the write and destructive groups to **Reject**. Agents keep the 3 read-only tools, such as `run_nrql_query` and `search_entities`, and lose the 2 write tools, such as `ingest_data` or `create_change_tracking_marker`, and the 5 destructive tools, such as `manage_dashboard` or `manage_entity_tags`.

Employees see the result on the integration's page in the portal under **Tool access**. For the full walkthrough, see [Tool permissions](https://metorial.com/docs/platform/guides/tool-permissions).

## Check it worked

```bash
metorial list "new relic"
metorial tools <integration-id>
metorial call <integration-id> list_alert_issues -d '{}'
```

`metorial tools` lists the 10 tools, minus any you rejected. `list_alert_issues` takes no input. It lists and filter New Relic alert issues for the configured account.

To see every input a tool takes, run `metorial schema <integration-id> <tool-key>`.

## Tools

### Read-only tools (3)

- `search_entities`: Search and discover entities monitored by New Relic.
- `run_nrql_query`: Execute an NRQL (New Relic Query Language) query against your telemetry data. Needs `nrql`.
- `list_alert_issues`: List and filter New Relic alert issues for the configured account.

### Write tools (2)

- `ingest_data`: Send custom telemetry data to New Relic. Needs `dataType`.
- `create_change_tracking_marker`: Record a deployment or change event for an entity. Needs `entityGuid` and `version`.

### Destructive tools (5)

- `manage_synthetic_monitor`: Create, update, or delete synthetic monitors. Needs `action`.
- `manage_entity_tags`: Add, replace, or delete tags on a New Relic entity. Needs `entityGuid` and `action`.
- `manage_dashboard`: Create, read, update, or delete New Relic dashboards. Needs `action`.
- `manage_alert_condition`: Create, update, or delete NRQL-based alert conditions. Needs `action`.
- `manage_alert_policy`: List, get, create, update, or delete New Relic alert policies. Needs `action`.

## Triggers

New Relic has 2 triggers, which fire on events in New Relic:

- `inbound_webhook`
- `alert_issues`: Triggers when alert issues are created, updated, acknowledged, or closed in New Relic.

## Next steps

- [Claude Code](https://metorial.com/docs/platform/clients/claude-code), [Cursor](https://metorial.com/docs/platform/clients/cursor), [Codex](https://metorial.com/docs/platform/clients/codex) and [ChatGPT](https://metorial.com/docs/platform/clients/chatgpt): connect each client to your portal and use New Relic there
- [Tool permissions](https://metorial.com/docs/platform/guides/tool-permissions): tool filters and what employees see
- [New Relic on metorial.com](https://metorial.com/integrations/new-relic): the integration overview