neoai-agent

New Relic MCP Server

Community neoai-agent
Updated

New Relic MCP (Model Context Protocol) server which has capability to analyse your APM metrics.

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

  1. 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
    
  2. 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."
  1. 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:

  1. 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
)
  1. Get overall application metrics:
await get_application_metrics(
    application_name="your-app-name",
    time_range_minutes=30
)
  1. Get APM metrics for an application:
await get_newrelic_apm_metrics(
    application_name="your-app-name",
    time_range_minutes=30
)
  1. Get slow transaction details:
await get_application_slow_transactions_details(
    application_name="your-app-name",
    time_range_minutes=30
)
  1. Get top database operations:
await get_application_top_database_operations_details(
    application_name="your-app-name",
    time_range_minutes=30
)
  1. 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

MCP Server ยท Populars

MCP Server ยท New

    yoloshii

    ClawMem โ€” On-device memory layer for Claude Code, OpenClaw, and Hermes agents

    On-device memory layer for AI agents. Claude Code, Hermes and OpenClaw. Hooks + MCP server + hybrid RAG search.

    Community yoloshii
    socfortress

    Velociraptor MCP Server

    Repo to hold mcp server for velociraptor

    Community socfortress
    jztan

    pdf-mcp

    MCP server that lets Claude Code and other AI agents read large PDFs without hitting context limits. Chunked reading, hybrid search, OCR, table and image extraction, SQLite cache.

    Community jztan
    softdaddy-o

    soft-ue-cli (+mcp)

    Python CLI + UE plugin that lets Claude Code (AI coding agent) control Unreal Engine in real time. Spawn actors, edit blueprints, call functions, capture screenshots, manage PIE sessions, and more -- all from the terminal. Works with UE5 editor and packaged builds via an in-process HTTP bridge.

    Community softdaddy-o
    opendatalab

    MinerU Document Explorer

    Agent-native knowledge engine with MCP tools for document indexing, wiki organization, fast retrieval and deep reading across PDF/DOCX/PPTX/Markdown

    Community opendatalab