New Relic MCP Server
v1.0.0Secure, self-hosted New Relic observability and administration tools for MCP clients
Runs scripts at install time.
Values you need
| Variable | What it is | |
|---|---|---|
NEW_RELIC_API_KEY | required secret | New Relic user key. Create a dedicated least-privilege key. |
NEW_RELIC_REGION | optional | New Relic data region: US, EU, or JP. Default: US |
NEW_RELIC_DEFAULT_ACCOUNT_ID | optional | Optional default account ID used when a tool omits accountId. |
NEW_RELIC_ACCOUNT_ALLOWLIST | optional | Optional comma-separated account IDs this deployment may access. |
npm (npx) discovery passed
Requires Node.js 18+
Run in a terminal
claude mcp add newrelic-mcp -e 'NEW_RELIC_API_KEY=<NEW_RELIC_API_KEY>' -- npx -y @meet-bhalodiya/newrelic-mcp@1.0.0Add to
claude_desktop_config.json{
"mcpServers": {
"newrelic-mcp": {
"args": [
"-y",
"@meet-bhalodiya/newrelic-mcp@1.0.0"
],
"command": "npx",
"env": {
"NEW_RELIC_API_KEY": "<NEW_RELIC_API_KEY>"
}
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"newrelic-mcp": {
"args": [
"-y",
"@meet-bhalodiya/newrelic-mcp@1.0.0"
],
"command": "npx",
"env": {
"NEW_RELIC_API_KEY": "<NEW_RELIC_API_KEY>"
}
}
}
}Add to
.vscode/mcp.json{
"inputs": [
{
"description": "NEW_RELIC_API_KEY",
"id": "new-relic-api-key",
"password": true,
"type": "promptString"
}
],
"servers": {
"newrelic-mcp": {
"args": [
"-y",
"@meet-bhalodiya/newrelic-mcp@1.0.0"
],
"command": "npx",
"env": {
"NEW_RELIC_API_KEY": "${input:new-relic-api-key}"
},
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.newrelic-mcp]
command = "npx"
args = ["-y", "@meet-bhalodiya/newrelic-mcp@1.0.0"]
env = { "NEW_RELIC_API_KEY" = "<NEW_RELIC_API_KEY>" }For AI agents
- Ask the user for: NEW_RELIC_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: connection_check, accounts_list, nrql_query, nrql_async_start, nrql_async_status, logs_query, metrics_query, traces_query, ….
- If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.
Machine-readable: install.md · manifest.json