Skip to main content
Glama
piekstra

New Relic MCP Server

by piekstra

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
NEWRELIC_REGIONNoNew Relic region - either 'US' or 'EU'US
NEWRELIC_API_KEYYesYour New Relic User API key (starts with NRAK)
NEWRELIC_ACCOUNT_IDNoYour New Relic account ID (required for some operations)

Capabilities

Server capabilities have not been inspected yet.

Tools

Functions exposed to the LLM to take actions

NameDescription
list_applicationsB

List all New Relic APM applications

get_applicationB

Get details for a specific New Relic application

get_application_metricsC

Get available metrics for an application

get_application_metric_dataC

Get metric data for an application

query_nrqlC

Execute an NRQL query

list_alert_policiesB

List all alert policies

get_alert_policyC

Get details for a specific alert policy

list_synthetic_monitorsB

List all synthetic monitors

get_synthetic_monitorB

Get details for a specific synthetic monitor

list_dashboardsB

List all dashboards for an account

get_dashboardB

Get details for a specific dashboard

search_entitiesC

Search for entities in New Relic

list_serversB

List all servers monitored by New Relic Infrastructure

get_serverB

Get details for a specific server

list_deploymentsC

List deployments for an application

create_deploymentC

Record a new deployment for an application

nerdgraph_queryB

Execute a custom NerdGraph GraphQL query

manage_credentialsA
Manage New Relic credentials securely in keychain.

Actions:
- 'status': Show current credential status
- 'store': Store new credentials (requires api_key parameter)
- 'delete': Remove all credentials from keychain
list_usersB

List all users in the New Relic account

get_userB

Get details for a specific user

list_log_parsing_rulesB

List all log parsing rules for an account

create_log_parsing_ruleD

Create a new log parsing rule

update_log_parsing_ruleD

Update an existing log parsing rule

delete_log_parsing_ruleC

Delete a log parsing rule

test_log_parsing_ruleB
Test a log parsing rule against sample logs.
If no grok_pattern is provided, it will generate one automatically.
generate_log_parsing_ruleA
Generate a log parsing rule from either a query or provided samples.

Args:
    log_query: Optional NRQL WHERE clause to fetch logs (e.g., "service = 'api'")
    log_samples: Optional list of log message samples
    time_range: Time range for log query (default: "1 hour ago")
    field_hints: Optional hints for field types (e.g., {"user_id": "UUID"})
    account_id: Optional account ID (uses default if not provided)

Returns:
    Generated GROK pattern, NRQL pattern, and analysis

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/piekstra/newrelic-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server