mcp_newrelic
14
New Relic MCP Server is designed to query New Relic logs using NRQL, providing easy integration with Large Language Models like Claude. It features human-readable output formatting, error logging, and configurable New Relic account settings.
New Relic MCP Server
A simple 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.
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
Claude Desktop Integration
Configure Claude Desktop by editing your configuration file for integration.
Usage
Example Claude Prompts
- "Show me all transactions from the last hour"
- "Are there any errors in our application?"
- "What are our slowest endpoints?"
Debugging
Common Issues
- Authentication Errors
- Check API key validity and permissions
- Query Errors
- Verify NRQL syntax
- Connection Issues
- Check network and firewall settings
Security Notes
- Use environment variables for sensitive data
Development
Local Testing
Configure environment variables and run the server.
Troubleshooting Guide
- Server Not Starting
- Check Python version and dependencies
- Query Not Working
- Check logs and NRQL syntax
- Claude Not Connecting
- Verify configuration and restart Claude
Contributing
- Fork the repository
- Create a feature branch
- Submit a pull request
License
This project is licensed under the MIT License.