- Home
- MCP servers
- New Relic
New Relic
- python
5
GitHub Stars
python
Language
6 months ago
First Indexed
2 months ago
Catalog Refreshed
Documentation & install
Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.
You can run the New Relic MCP Server to programmatically access New Relic APIs and interact with monitoring and observability data. This server enables AI assistants and other tools to list, query, and manage APM data, dashboards, alerts, logs, deployments, and more through a streamlined MCP interface.
How to use
To use the MCP server with an MCP client, start the server and connect using the provided command. The server runs locally and exposes a set of endpoints you can call through your client to perform common New Relic operations, such as listing applications, querying NRQL, retrieving dashboards, managing users, and testing log parsing rules. For secure access, configure credentials via the recommended keychain setup on macOS or use environment variables when needed.
How to install
Prerequisites you need before installation: Python 3.10 or newer and a working Python package environment. You should have pip available to install Python packages.
Option 1: Install from PyPI (Recommended)
pip install newrelic-mcp-server
Option 2: Install from source
# Clone this repository
git clone https://github.com/piekstra/newrelic-mcp-server.git
cd newrelic-mcp-server
# Install in development mode
pip install -e .
Additional setup and usage notes
To start the MCP server directly use the following command.
newrelic-mcp-server
Available tools
list_applications
List all APM applications available in your account.
get_application
Retrieve detailed information for a specific APM application.
get_application_metrics
Fetch available metrics for an application.
get_application_metric_data
Obtain metric data for an application within a time range.
query_nrql
Execute NRQL queries to analyze data.
nerdgraph_query
Run custom NerdGraph GraphQL queries.
list_alert_policies
List all alert policies for the account.
get_alert_policy
Get details for a specific alert policy.
list_synthetic_monitors
List all synthetic monitors.
get_synthetic_monitor
Retrieve a single synthetic monitor.
list_dashboards
List all dashboards in the account.
get_dashboard
Get a dashboard configuration and its widgets.
list_servers
List monitored infrastructure servers.
get_server
Get details for a specific monitored server.
search_entities
Search across all New Relic entities.
list_deployments
List application deployments that have been recorded.
create_deployment
Record a new deployment marker for an application.
list_users
List users who have access to the account.
get_user
Get details for a specific user.
list_log_parsing_rules
List all log parsing rules for the account.
create_log_parsing_rule
Create a new log parsing rule with GROK pattern and NRQL filter.
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 GROK pattern against sample logs.
generate_log_parsing_rule
Intelligently generate GROK patterns from log samples.
manage_credentials
Securely manage API credentials in keychain (status/store/delete).