MetorialDocs

Set up New Relic in Metorial for Claude, ChatGPT and Cursor

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'll 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

Sign-in method

MethodTypeWhat a person provides
User API KeyAPI tokenuserApiKey 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

Open Shared Resources

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

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.

Limit the tools

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

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:

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

Employee: connect New Relic

In the portal

Open New Relic in the catalog

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

Authenticate

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

Confirm

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

With the CLI

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.

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.

Check it worked

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