Official New Relic AI MCP server
## New Relic MCP Server: Application Observability The **New Relic MCP Server** integrates New Relic's observability platform into Google Antigravity. This enables APM, infrastructure monitoring, logs, and real user monitoring in a unified platform. ### Why New Relic MCP? New Relic provides complete observability: - **Full Stack**: APM, infra, logs, RUM, synthetics - **One Platform**: All telemetry in one place - **AI-Powered**: Proactive anomaly detection - **Free Tier**: 100GB free monthly - **OpenTelemetry**: Native OTLP support ### Key Features #### 1. Send Metrics ```python import newrelic.agent newrelic.agent.initialize("newrelic.ini") newrelic.agent.record_custom_metric("Custom/API/ResponseTime", response_time_ms) newrelic.agent.record_custom_event("DeploymentEvent", { "version": "2.1.0", "environment": "production" }) ``` #### 2. Query with NRQL ```python import requests headers = {"Api-Key": api_key} response = requests.post( "https://api.newrelic.com/graphql", headers=headers, json={"query": "{ actor { nrql(query: \\\"SELECT count(*) FROM Transaction\\\") } }"} ) ``` ### Configuration ```json { "mcpServers": { "new-relic": { "command": "npx", "args": ["-y", "@anthropic/mcp-newrelic"], "env": { "NEW_RELIC_API_KEY": "NRAK-xxx", "NEW_RELIC_ACCOUNT_ID": "12345" } } } } ``` ### Use Cases **APM**: Monitor application performance. **Infrastructure**: Track servers and containers. **Log Analysis**: Correlate logs with traces. The New Relic MCP Server brings application observability to Antigravity.
{
"mcpServers": {
"new-relic": {
"mcpServers": {
"new-relic": {
"env": {
"NEW_RELIC_API_KEY": "YOUR_NEW_RELIC_API_KEY",
"NEW_RELIC_ACCOUNT_ID": "YOUR_ACCOUNT_ID"
},
"args": [
"-y",
"@newrelic/mcp-server"
],
"command": "npx"
}
}
}
}
}