newrelic-mcp
A command-line tool for monitoring and analyzing New Relic application metrics using MCP.
README
New Relic MCP Server
A command-line tool for monitoring and analyzing New Relic application metrics using MCP (Model Control Protocol).
Installation
Install directly from GitHub using pipx:
# Install
pipx install git+https://github.com/neoai-agent/newrelic-mcp.git
# Or run without installation
pipx run git+https://github.com/neoai-agent/newrelic-mcp.git
Quick Start
-
Set up your environment variables:
Method: Using .env file
# Create a .env file in your project directory cat > .env << EOL # New Relic Credentials NEWRELIC_API_KEY=your-newrelic-api-key-here NEWRELIC_INSIGHTS_KEY=your-newrelic-insights-key-here NEWRELIC_ACCOUNT_ID=your-newrelic-account-id-here # OpenAI Credentials OPENAI_API_KEY=your-openai-api-key-here # Optional: Model Configuration MODEL=openai/gpt-4o-mini EOL -
Create
agent.yaml:
- name: "New Relic Agent"
description: "Agent to get all details of New Relic"
mcp_servers:
- name: "New Relic MCP Server"
args: ["--api-key=${NEWRELIC_API_KEY}", "--insights-key=${NEWRELIC_INSIGHTS_KEY}", "--account-id=${NEWRELIC_ACCOUNT_ID}", "--openai_api_key=${OPENAI_API_KEY}"]
command: "newrelic-mcp"
system_prompt: "You are a SRE devops engineer specialising in New Relic to get APM metrics at performance level. You can use the tools provided to you to get the details of the performnace of apm. Precisely use the tools to get the details of necessary metrics to get the valuable information."
- Run the server:
newrelic-mcp --api-key "YOUR_API_KEY" --insights-key "YOUR_INSIGHTS_KEY" --account-id "YOUR_ACCOUNT_ID" --openai_api_key "YOUR_OPENAI_API_KEY"
Available Tools
The server provides the following tools for New Relic APM analysis:
- Get transaction details for a specific endpoint:
await get_transaction_details_by_url_path(
application_name="your-app-name",
url_path="/api/v1/endpoint",
time_range_minutes=30
)
- Get overall application metrics:
await get_application_metrics(
application_name="your-app-name",
time_range_minutes=30
)
- Get APM metrics for an application:
await get_newrelic_apm_metrics(
application_name="your-app-name",
time_range_minutes=30
)
- Get slow transaction details:
await get_application_slow_transactions_details(
application_name="your-app-name",
time_range_minutes=30
)
- Get top database operations:
await get_application_top_database_operations_details(
application_name="your-app-name",
time_range_minutes=30
)
- Get transaction breakdown segments:
await get_transaction_breakdown_segments(
application_name="your-app-name",
time_range_minutes=30
)
Development
For development setup:
git clone https://github.com/neoai-agent/newrelic-mcp.git
cd newrelic-mcp
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -e ".[dev]"
License
MIT License - See LICENSE file for details
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.