analytics
New Relic MCP, CLI, and Lua Integration for AI Agents
New Relic integration docs for AI agents: MCP gateway setup, New Relic CLI commands, Lua API reference, credentials, and function schemas.
7 functions 6 read 1 write API key auth
New Relic for agents
Credentials can be configured manually in web or CLI hosts.
Use this integration from Lua code mode, the headless integrations CLI, or the KosmoKrator MCP gateway. The same package metadata powers all three surfaces.
Machine-Readable Metadata
- integration_slug
newrelic- route_slug
newrelic- package
newrelic- auth_strategy
api_keyAPI key- cli_setup_supported
true- cli_runtime_supported
true- mcp_gateway_supported
true- lua_supported
true- supports_multi_account
true
Quick Links
Lua APIAgent-facing namespace and function reference. New Relic CLIHeadless setup and direct function calls. New Relic MCPMCP gateway setup for external clients. Submit feedbackReport missing tools, auth problems, wrong docs, or runtime issues. ContributeAdd tools or improve metadata in the integrations repo.
New Relic MCP Client Matrix
Use these pages when a specific agent client or framework needs copy-pasteable MCP setup for New Relic.
Claude Code New Relic MCP setup for Claude Code. Cursor New Relic MCP setup for Cursor. Codex New Relic MCP setup for Codex. OpenAI Agents New Relic MCP setup for OpenAI Agents SDK. Claude Agent SDK New Relic MCP setup for Claude Agent SDK. Vercel AI SDK New Relic MCP setup for Vercel AI SDK. LangChain New Relic MCP setup for LangChain. LangGraph New Relic MCP setup for LangGraph. CrewAI New Relic MCP setup for CrewAI. MCP clients New Relic MCP setup for Generic MCP Clients.
New Relic CLI Matrix
Use these pages for direct New Relic CLI workflows in scripts, CI, cron, and agent wrappers.
CI New Relic CLI for CI. Cron Jobs New Relic CLI for cron jobs. Shell Scripts New Relic CLI for shell scripts. Headless Automation New Relic CLI for headless automation. Coding Agents New Relic CLI for coding agents.
Function Catalog
| Function | Type | Parameters | Description |
|---|---|---|---|
newrelic.newrelic_list_applications | Read read | 0 | List APM applications in the configured New Relic account. Returns application names, GUIDs, IDs, language, reporting status, and health status. |
newrelic.newrelic_get_application | Read read | 1 | Get details of a specific New Relic APM application by its application ID, including language, health status, and Apdex thresholds. |
newrelic.newrelic_list_deployments | Read read | 1 | List deployment markers for a New Relic APM application. Requires the application entity GUID. |
newrelic.newrelic_create_deployment | Write write | 5 | Record a new deployment marker in New Relic for a given application. This helps correlate deploys with performance changes. |
newrelic.newrelic_list_alert_policies | Read read | 0 | List alert policies in the configured New Relic account. Returns policy names, IDs, and incident preferences. |
newrelic.newrelic_list_dashboards | Read read | 0 | List dashboards in the configured New Relic account. Returns dashboard titles, GUIDs, timestamps, and owner information. |
newrelic.newrelic_get_current_user | Read read | 0 | Get the profile of the currently authenticated New Relic user. Useful for verifying API credentials and retrieving account information. |