New Relic MCP Server

v1.0.0
io.github.Meet-Bhalodiya/newrelic-mcp Checked 1 day ago Published 3 months ago

Secure, self-hosted New Relic observability and administration tools for MCP clients

Runs scripts at install time.

Values you need

VariableWhat it is
NEW_RELIC_API_KEYrequired secret New Relic user key. Create a dedicated least-privilege key.
NEW_RELIC_REGIONoptional New Relic data region: US, EU, or JP. Default: US
NEW_RELIC_DEFAULT_ACCOUNT_IDoptional Optional default account ID used when a tool omits accountId.
NEW_RELIC_ACCOUNT_ALLOWLISToptional 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.0
Add 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

  1. Ask the user for: NEW_RELIC_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. 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).
  3. Restart or reload the client so it starts the server.
  4. 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, ….
  5. 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