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)

Tools

Functions exposed to the LLM to take actions

NameDescription
list_applications

List all New Relic APM applications

get_application

Get details for a specific New Relic application

get_application_metrics

Get available metrics for an application

get_application_metric_data

Get metric data for an application

query_nrql

Execute an NRQL query

list_alert_policies

List all alert policies

get_alert_policy

Get details for a specific alert policy

list_synthetic_monitors

List all synthetic monitors

get_synthetic_monitor

Get details for a specific synthetic monitor

list_dashboards

List all dashboards for an account

get_dashboard

Get details for a specific dashboard

search_entities

Search for entities in New Relic

list_servers

List all servers monitored by New Relic Infrastructure

get_server

Get details for a specific server

list_deployments

List deployments for an application

create_deployment

Record a new deployment for an application

nerdgraph_query

Execute a custom NerdGraph GraphQL query

manage_credentials
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_users

List all users in the New Relic account

get_user

Get details for a specific user

list_log_parsing_rules

List all log parsing rules for an account

create_log_parsing_rule

Create a new log parsing rule

update_log_parsing_rule

Update an existing log parsing rule

delete_log_parsing_rule

Delete a log parsing rule

test_log_parsing_rule
Test a log parsing rule against sample logs. If no grok_pattern is provided, it will generate one automatically.
generate_log_parsing_rule
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