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
- A portal 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, 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
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:
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
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.
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 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. Needsnrql.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. NeedsdataType.create_change_tracking_marker: Record a deployment or change event for an entity. NeedsentityGuidandversion.
Destructive tools (5)
manage_synthetic_monitor: Create, update, or delete synthetic monitors. Needsaction.manage_entity_tags: Add, replace, or delete tags on a New Relic entity. NeedsentityGuidandaction.manage_dashboard: Create, read, update, or delete New Relic dashboards. Needsaction.manage_alert_condition: Create, update, or delete NRQL-based alert conditions. Needsaction.manage_alert_policy: List, get, create, update, or delete New Relic alert policies. Needsaction.
Triggers
New Relic has 2 triggers, which fire on events in New Relic:
inbound_webhookalert_issues: Triggers when alert issues are created, updated, acknowledged, or closed in New Relic.
Next steps
- Claude Code, Cursor, Codex and ChatGPT: connect each client to your portal and use New Relic there
- Tool permissions: tool filters and what employees see
- New Relic on metorial.com: the integration overview