
ivlad003/mcp_newrelic
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
NRQL 쿼리를 사용하여 새로운 Relic 로그를 쿼리하는 모델 Context Protocol (MCP) 서버. 이 서버는 Claude와 같은 큰 언어 모델 (LLMs)을 활성화하여 새로운 Relic 데이터와 상호 작용합니다.
개요
NRQL 쿼리를 사용하여 새로운 Relic 로그를 쿼리하는 모델 Context Protocol (MCP) 서버. 이 서버는 Claude와 같은 큰 언어 모델 (LLMs)을 활성화하여 새로운 Relic 데이터와 상호 작용합니다. 또한 slash 명령, 기술 및 조사 에이전트와 설치 가능한 플러그인으로 사용할 수 있습니다. - MCP 서버가 필요하지 않습니다. 설치: /plugin 시장 추가 Ivlad003/plugins 다음 /plugin 설치 newrelic-observability@ivlad-plugins 세부 사항에 대 한 Ivlad003/plugins 참조. - Query New Relic logs and metrics using NRQL - 상세한 오류 로깅 - Claude Desktop과 쉽게 통합 - Human-readable output formatting - 구성 가능한 새로운 Relic 계정 ID - Python 3.10 이상 - 새로운 Relic 계정 및 API 키 - Claude 데스크탑 응용 프로그램 3. 제공된 코드로 서버 파일 newrelic logs server.py를 만듭니다. 4. 환경 변수를 구성: 설정 파일을 편집하여 Claude Desktop 구성: - macOS: ~/Library/Application Support/Claude/claude desktop config.
개요(AI 번역)
NRQL 쿼리를 사용하여 새로운 Relic 로그를 쿼리하는 모델 Context Protocol (MCP) 서버. 이 서버는 Claude와 같은 큰 언어 모델 (LLMs)을 활성화하여 새로운 Relic 데이터와 상호 작용합니다.
Claude 코드 사용자: 또한 slash 명령, 기술 및 조사 에이전트와 설치 가능한 플러그인으로 사용할 수 있습니다. - MCP 서버가 필요하지 않습니다. 설치 :
/plugin marketplace add Ivlad003/plugins다음/plugin install newrelic-observability@ivlad-plugins세부사항을 위한 Ivlad003/plugins를 보십시오.
특징
- NRQL을 사용하여 Query 새로운 Relic 로그 및 메트릭
- 상세한 오류 로깅
- Claude Desktop과 쉽게 통합
- 인간 읽기 쉬운 산출 체재
- 새로운 Relic 계정 ID 구성
설치 설명서
# 필수품
- Python 3.10 이상
- 새로운 Relic 계정 및 API 키
- Claude 데스크탑 응용
설치 단계
-
uv패키지 관리자 설치 : -
생성 및 설정 프로젝트:
-
서버 파일 생성
newrelic_logs_server.py제공된 코드로. -
환경 변수를 구성:
Claude 데스크탑 통합
설정 파일을 편집하여 Claude Desktop 구성:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
New Relic MCP Server
A Model Context Protocol (MCP) server for querying New Relic logs using NRQL queries. This server enables Large Language Models (LLMs) like Claude to interact with your New Relic data.
Claude Code users: Also available as an installable plugin with slash commands, skills, and an investigation agent — no MCP server needed. Install with:
/plugin marketplace add Ivlad003/pluginsthen/plugin install newrelic-observability@ivlad-pluginsSee Ivlad003/plugins for details.
Features
- Query New Relic logs and metrics using NRQL
- Detailed error logging
- Easy integration with Claude Desktop
- Human-readable output formatting
- Configurable New Relic account ID
Setup Instructions
Prerequisites
- Python 3.10 or higher
- New Relic account and API key
- Claude Desktop application
Installation Steps
- Install
uvpackage manager:
# On macOS/Linux
curl -LsSf https://astral.sh/uv/install.sh | sh
# On Windows (PowerShell)
powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
- Create and setup project:
# Create directory
mkdir newrelic-mcp
cd newrelic-mcp
# Create virtual environment
uv venv
# Activate virtual environment
source .venv/bin/activate # On Unix/macOS
.venv\Scripts\activate # On Windows
# Install dependencies
uv pip install "mcp[cli]" httpx
-
Create server file
newrelic_logs_server.pywith the provided code. -
Configure your environment variables:
# On Unix/macOS
export NEW_RELIC_API_KEY="your-api-key-here"
export NEW_RELIC_ACCOUNT_ID="your-account-id-here"
# On Windows (CMD)
set NEW_RELIC_API_KEY=your-api-key-here
set NEW_RELIC_ACCOUNT_ID=your-account-id-here
# On Windows (PowerShell)
$env:NEW_RELIC_API_KEY = "your-api-key-here"
$env:NEW_RELIC_ACCOUNT_ID = "your-account-id-here"
Claude Desktop Integration
Configure Claude Desktop by editing your configuration file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
Add the following configuration:
{
"mcpServers": {
"newrelic": {
"command": "uv",
"args": [
"--directory",
"/absolute/path/to/newrelic-mcp",
"run",
"app.py"
],
"env": {
"NEW_RELIC_API_KEY": "your-api-key-here",
"NEW_RELIC_ACCOUNT_ID": "your-account-id-here"
}
}
}
}
Usage
Example NRQL Queries
- Basic Transaction Query:
SELECT * FROM Transaction SINCE 1 hour ago
- Error Analysis:
SELECT * FROM Transaction WHERE error IS TRUE SINCE 1 hour ago LIMIT 10
- Performance Analysis:
설치
npx @modelcontextprotocol/inspector uv run newrelic_logs_server.py설정
{
"mcpServers": {
"newrelic": {
"command": "uv",
"args": [
"--directory",
"/absolute/path/to/newrelic-mcp",
"run",
"app.py"
],
"env": {
"NEW_RELIC_API_KEY": "your-api-key-here",
"NEW_RELIC_ACCOUNT_ID": "your-account-id-here"
}
}
}
}